|
Prescaler requested by user. TIMER2_CLOCK_FREQ is set to the external crystal frequency in Hz, Usually 32768Hz. TIMER2_RTC_UPDATE_TIME should be set to the time between updates to the RTC (Real Time Clock). Usually 1000 ms. When using a crystal to clock the core the chip waits 35ms for the clock to stabilize before any code is executed. The 35ms is default but can be changed to 1ms if using a ceramic resonator by changing a fuse bit. See the application note AN1259 about the RTC clock. Larger updates times give lower power consumption but less accurate timers. Lower values gives more accurate timers but higher power consumption. Accuracy of the RTC is only affected by the accuracy of the crystal not by the selected TIMER2_RTC_UPDATE_TIME. The resolution of the RTC is TIMER2_RTC_UPDATE_TIME/256. PRECISION/RESOLUTION/ACCURACY |
|
Timer is expired.
|
|
Update all did not want any timers.
|
|
Special type used by update function.
|
|
Update the timers
|
|
Triggers an interrupt so that timers are updated |
|
Decreases all timers with delta ms
|
|
The output match compare interrupt.
|
|
Timer2 overflow interrupt.
|
|
All the timers.
|