eshatara
- 2nd July 2008, 07:28
I'm trying to implement a simple timer with PBPro using the 18F252. I need to know when 30 minutes are up after a given event. I figured I'd use the timer function to give me a 1 sec or 6 second "overflow" and use that to increment a software counter until I get to the desired time lapse.
I understand the concept of pre-loading the TMR0L and TMR0H bytes. I'm using a 4MHz oscillator. Not clear what clock rate the Timer is operating at (1 MHz?)
Also does the prescaler basically reduce this clocking frequency by the prescale value, for example if I use a prescale of 100, would the frequency into the time become the clockrate/32?
Thanks...Chris Shatara
[email protected]
I understand the concept of pre-loading the TMR0L and TMR0H bytes. I'm using a 4MHz oscillator. Not clear what clock rate the Timer is operating at (1 MHz?)
Also does the prescaler basically reduce this clocking frequency by the prescale value, for example if I use a prescale of 100, would the frequency into the time become the clockrate/32?
Thanks...Chris Shatara
[email protected]