atam510 ATMEL Corporation, atam510 Datasheet - Page 45

no-image

atam510

Manufacturer Part Number
atam510
Description
Marc4 4-bit Mtp Universal Microcontroller
Manufacturer
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
Timer
Clock
T0OUT1
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
x x x
x x x
x x x
x x x
4
5 6
7
x x x
x x x
x x x
x x x
0
Timer = compare register (= 4)
1
2
Timer = compare register (= 7)
Resets timer
OUT
3
4
= fIN/2 × (n+1) where
5 6
255
x x x
x x x
x x x
x x x
7 0
0
1
1
2
2
3
3
4
x x x
x x x
x x x
x x x
4
5 6
5 6
7 0
x x x
x x x
x x x
x x x
Figure
255
3-15). The counter counts
0
1
2
ATAM510
3
x x x
x x x
x x x
x x x
4
5 6
45

Related parts for atam510