I have posted a demonstration program to how to implement sleep and to determine a reset from sleep has occurred for the following microprocessors:
10f200, 10f202, 10f204, 10f206, 10f220, 10f222, 12c508, 12c508a, 12c509, 12c509a, 12ce518, 12ce519, 12cr509a, 12cr509a, 12f508, 12f509, 12f510, 16f506, RF509AF and RF509AG.
This is based on 'Understanding Reset Events On The PIC10F20X' document TB082-DS91082A from Microchip Technology Inc. This document has more information on the details on the reset events.
The example I haved has an LED attached to GPIO.1 and a switch to GPIO.3 (which is pulled high). GPIO.3 is NOT used as the master reset. The code handles the sleep event correctly with power consumption at 00.09µA in standby. See here
The method shown in the demonstration is required for versions of the compiler prior to v0.95 for the microprocessors above.
This posting is a enable users to search for the 'specific' microprocessors and 'sleep' in the forum.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have posted a demonstration program to how to implement sleep and to determine a reset from sleep has occurred for the following microprocessors:
10f200, 10f202, 10f204, 10f206, 10f220, 10f222, 12c508, 12c508a, 12c509, 12c509a, 12ce518, 12ce519, 12cr509a, 12cr509a, 12f508, 12f509, 12f510, 16f506, RF509AF and RF509AG.
This is based on 'Understanding Reset Events On The PIC10F20X' document TB082-DS91082A from Microchip Technology Inc. This document has more information on the details on the reset events.
The example I haved has an LED attached to GPIO.1 and a switch to GPIO.3 (which is pulled high). GPIO.3 is NOT used as the master reset. The code handles the sleep event correctly with power consumption at 00.09µA in standby. See here
The method shown in the demonstration is required for versions of the compiler prior to v0.95 for the microprocessors above.
This posting is a enable users to search for the 'specific' microprocessors and 'sleep' in the forum.