xyzabcpqr
Junior Member level 3
- Joined
- Mar 22, 2012
- Messages
- 26
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,523
I am using PIC16LF1936 and HI-TECH C Compiler.
I want to run my code on 2xAA battery and want to calculate battery life. So I implemented SLEEP module and Watch dog timer to awake it every 8sec.
I used I2C to configure my RF chip which works as Transmitter and PIC Hardware UART module to communicate with RF chip.Else 2 switches and 2 led are used as ip/op .There are 5-6 unused pins. when i configured those unused pins as o/p and latched it as 0 ,it draws 5mA .so i left those unused pins as non- configured. Before executing Sleep instruction, I had disabled above mentioned modules and after awaking pic, I enabled those.
It seems like it is drawing 2.3mA in SLEEP and 10mA in normal operations. . I am very confused where i am doing wrong.
How can i achieve in uA Current consumption in sleep mode.?
Please guide me.
I want to run my code on 2xAA battery and want to calculate battery life. So I implemented SLEEP module and Watch dog timer to awake it every 8sec.
I used I2C to configure my RF chip which works as Transmitter and PIC Hardware UART module to communicate with RF chip.Else 2 switches and 2 led are used as ip/op .There are 5-6 unused pins. when i configured those unused pins as o/p and latched it as 0 ,it draws 5mA .so i left those unused pins as non- configured. Before executing Sleep instruction, I had disabled above mentioned modules and after awaking pic, I enabled those.
It seems like it is drawing 2.3mA in SLEEP and 10mA in normal operations. . I am very confused where i am doing wrong.
How can i achieve in uA Current consumption in sleep mode.?
Please guide me.