fairiesrcrazies
New Member
Hi,
In relation to the setting up of using the postscaler for using the watchdog timer for sleep.
I'm using the internal oscillator at 4MHz and I have the postscaler set up to 1:256 which I know puts my PIC to sleep for around 4s. I only know this value through trial and error
But what I don't know is how to calculate to the postscaler value. Say for example I want the PIC to got to sleep for an hour....what is the formula for finding this out?????..
Could really use some help
The PIC I'm using is in the link below (PIC 18f4620)
https://ww1.microchip.com/downloads/en/DeviceDoc/39626e.pdf
In relation to the setting up of using the postscaler for using the watchdog timer for sleep.
I'm using the internal oscillator at 4MHz and I have the postscaler set up to 1:256 which I know puts my PIC to sleep for around 4s. I only know this value through trial and error
But what I don't know is how to calculate to the postscaler value. Say for example I want the PIC to got to sleep for an hour....what is the formula for finding this out?????..
Could really use some help
The PIC I'm using is in the link below (PIC 18f4620)
https://ww1.microchip.com/downloads/en/DeviceDoc/39626e.pdf