Good afternoon, I'm doing a design with PIC10F200, enabled him asleep with the function "Sleep" but I can not wake up the micro.
Anyone know how to awaken the micro activating an interrupt.
thanks
PIC10F200
Moderator: Benj
-
- Flowcode v5 User
- Posts: 211
- Joined: Tue Feb 19, 2013 9:51 pm
- Has thanked: 72 times
- Been thanked: 177 times
Re: PIC10F200
Here are a few options: wake up from a pin change, comparator output change and wdt timeout. To use the wake up from pin change, the gpwu bit of the option register needs to be clear. To wake from sleep using the comparator, bit0 of the cmcon0 register must be cleared. To wake up from sleep using wdt, set the wdte bit in the configuration and the time can be adjusted by using the psa and ps bits in the option register. By checking the status register you can determine what caused the wake from sleep reset and appropriate action can then be taken (similar to in your words "activating an interrupt"). All the above was determined by just quickly reading the device data sheet so there may be mistakes.
If you 'have to have' an interrupt vector or you just don't want to deal with the coding required that's described above, you could look into the 12 series micros.
If you 'have to have' an interrupt vector or you just don't want to deal with the coding required that's described above, you could look into the 12 series micros.
Re: PIC10F200
Sorry, I do not quite understand, can send me an example.
I need that when the GP2 this entry to "0" and the micro sleep when you change this to "1" to wake up.
thanks
I need that when the GP2 this entry to "0" and the micro sleep when you change this to "1" to wake up.
thanks