ATAM510X-ILQY ATMEL [ATMEL Corporation], ATAM510X-ILQY Datasheet - Page 45

no-image

ATAM510X-ILQY

Manufacturer Part Number
ATAM510X-ILQY
Description
MARC4 4-bit MTP Universal Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Figure 3-14. Timer 0 Free Running Counter Mode
3.5.3.7
Figure 3-15. Timer 0 Counter Reload Mode
4711B–4BMCU–01/05
Timer
State
Overflow
Interrupt
T0OUT1
(BP41)
Timer
Clock
Timer
T0OUT1
Timer
Clock
Compare
Interrupt
State
(BP41)
Timer 0 Counter Reload Modes (Strobe and 50% Duty Cycle)
50% duty
cycle
strobe
50% duty
cycle
strobe
Timer resets
on overflow
As in the free running mode, the counter can also be clocked from either an external signal on
BP40 or from an internal clock source. In this mode, the counter repetition period is completely
defined by the contents of the compare register (T0CP) (see
up with the selected clock frequency. When it reaches the value held in the compare register,
the counter then returns to the zero state. At the same time, depending on the selected timer
mode, the BP41 either toggles or generates a strobe pulse. If the Timer 0 interrupt is unmasked,
a compare interrupt is also generated.
The resultant output frequency f
n = compare value (n = 1 - 255).
255
0
1
0
2
1
3
2
4
3
5 6
4
5 6
7
0
Timer = compare register (= 4)
1
2
Timer = compare register (= 7)
Resets timer
OUT
3
4
= fIN/2
5 6
255
7 0
0
1
(n+1) where
1
2
2
3
3
4
4
5 6
5 6
7 0
Figure
255
3-15). The counter counts
0
1
2
ATAM510
3
4
5 6
45

Related parts for ATAM510X-ILQY