Jim,
Your post was empty. I'm desperate and I'm out of ideas.
Thanks,
Richard
--- In AVR-Chat@yahoogroups.com, "Jim Wagner" <jim_d_wagner@...> wrote:
>
> On Sun, 22 Jul 2007 20:28:47 -0000
> "Richard Cooke" <rcooke@...> wrote:
> > Hi Folks,
> >
> > How do you set up the external interrupt on change to get
> > the chip to
> > come out of powerdown mode?
> >
> > I'm having trouble with getting my Mega48V to come out of
> > powerdown.
> > I need to read/debounce 4 tactile switches, power up a
> > nRF905 chip,
> > send the command and then go back to sleep.
> >
> > I've sucessfully run the program if I don't go into sleep
> > mode but now
> > that I need to test the power consumption I've enabled
> > the powerdown
> > section.
> >
> > Here is the external pin change ISR:
> >
> > // Pin change 8-14 interrupt service routine
> > interrupt [PCINT1] void pin_change_isr1(void)
> > {
> > EXT_PIN_INTR_DISABLE; // Disable any more
> > external pin change
> > interrupts
> > PWR_UP = 1; // Power up the nRF905 chip
> > Switch_State = (PINC & 0x0f); // PC0, PC1, PC2, PC3
> > connected to the
> > switches
> > }
> >
> > Here is where I set up the external pin change interrupt
> > enable:
> >
> > // External Interrupt(s) initialization
> > // INT0: Off
> > // INT1: Off
> > // Interrupt on any change on pins PCINT0-7: Off
> > // Interrupt on any change on pins PCINT8-14: On
> > // Interrupt on any change on pins PCINT16-23: Off
> > EICRA = 0x00;
> > EIMSK = 0x00;
> > PCICR = 0x02;
> > PCMSK1 = 0x0f;
> > PCIFR=0x02;
> >
> >
> > What else do I have to do?
> >
> > Thanks,
> >
> > Richard Cooke
> > Lake Forest, CA USA
> >
> >
>
> ---------------------------------------------------------------
> The Think Different Store
> http://www.thinkdifferentstore.com/
> For All Your Mac Gear
> ---------------------------------------------------------------
>Message
Re: Mega48V pwerdown troubles?
2007-07-22 by Richard Cooke
Attachments
- No local attachments were found for this message.