Hi all,
I have built an rf remote using a pic18f452, an external clock running at 10MHz with PLL, an hd44780, and an nrf24l01 wireless chip.
If the button(RB4) is not pressed within 15 seconds the pic will fall asleep. I have the lcd power and contrast wires powered from one of the pics pins. If the button is pressed while the pic is awake it will reset the 15 second timer. If the button is pressed while the pic is asleep it will wake it up and start the 15 second timer.
When the pic is asleep the circuit sucks .4mA. If I pull power and take the pic out of the circuit and then plug power back in, the circuit consumes .1mA. All measurements are taken straight off the 9V battery.
My problem is the .3mA that the pic is using while in sleep mode. The datasheet says the pic uses less than .2uA in standby mode, which I am assuming is sleep mode, no?
Before putting the pic to sleep I:
Set all of my pins to outputs and set them low.
Closed SPI.
Disabled timer.
Put the nrf24L01 in sleep mode((.13mA)(leaving .17mA))
What else can I do/disable to conserve battery life? Should I, or can I disable the external clock? If so, how? I am using C18.
Any help is much appreciated.
Thanks a lot.
I have built an rf remote using a pic18f452, an external clock running at 10MHz with PLL, an hd44780, and an nrf24l01 wireless chip.
If the button(RB4) is not pressed within 15 seconds the pic will fall asleep. I have the lcd power and contrast wires powered from one of the pics pins. If the button is pressed while the pic is awake it will reset the 15 second timer. If the button is pressed while the pic is asleep it will wake it up and start the 15 second timer.
When the pic is asleep the circuit sucks .4mA. If I pull power and take the pic out of the circuit and then plug power back in, the circuit consumes .1mA. All measurements are taken straight off the 9V battery.
My problem is the .3mA that the pic is using while in sleep mode. The datasheet says the pic uses less than .2uA in standby mode, which I am assuming is sleep mode, no?
Before putting the pic to sleep I:
Set all of my pins to outputs and set them low.
Closed SPI.
Disabled timer.
Put the nrf24L01 in sleep mode((.13mA)(leaving .17mA))
What else can I do/disable to conserve battery life? Should I, or can I disable the external clock? If so, how? I am using C18.
Any help is much appreciated.
Thanks a lot.