|
|
View previous topic :: View next topic |
Author |
Message |
Ttelmah
Joined: 11 Mar 2010 Posts: 19258
|
|
Posted: Sun Mar 12, 2017 1:50 am |
|
|
He doesn't need them.
On this chip the only sleep options are 'full', and 'idle'. On this compiler version, you enable idle, by setting the OSC_IDLE_MODE bit with setup_oscillator, before calling sleep (exactly as the data sheet says!...).
He is complaining that he thinks the chip is not sleeping, because it draws a lot of power, and also seems to wake up. These imply that either he has an interrupt flag set (which would stop it going to sleep), or one is becoming set (which would wake it), or other things in his circuit are drawing power (which would explain the current)..... |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9134 Location: Greensville,Ontario
|
|
Posted: Sun Mar 12, 2017 7:22 am |
|
|
I just downloaded the datasheet and that PIC only draws 20 nanoamps while in sleep yet his draws 10 milliamps. Thats a huge difference !
I suspect 'other' devices are the culprits. The line 'mdm_inti();' implies there a modem attached to the PIC. Without seeing the schematic or a parts list,odds are good it's the 'other stuff' that's the real power drain.
Jay |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|