Question Regarding Pic16F690.

peterdeco

Joined Oct 8, 2019
484
The current drain depends largely on the program. My software has a nap feature that puts the PIC to sleep to reduce current drain. If the PIC is waiting for a button press it draws 5mA. When I add a nap command to sleep for 17mS while waiting for the button press, it reduces the current drain to 500uA.
This draws 5mA:
START:
if porta.0 = 0 then high portb.0
goto start
This draws 500uA:
START:
if porta.0 = 0 then high portb.0
nap 0
goto start
 
Top