English
Language : 

ATAR092-C Datasheet, PDF (42/108 Pages) ATMEL Corporation – Low-current Microcontroller for Wireless Communication
Timer 2 Output Mode 5
Manchester Modulator: Timer 2 Modulates the SSI internal data output (SO) to
Manchester-code
Figure 5-21. Manchester Modulation
TOG2
SC
SO
T2O
0
0
Bit 7
0
0
Bit 7
Data: 00110101
1
1
8-bit SR Data
1
0
1
0
1
Bit 0
1
0
1
0
1
Bit 0
Timer 2 Output Mode 7
In this mode the timer overflow defines the period and the compare register defines the duty
cycle. During one period only the first compare match occurrence is used to toggle the timer out-
put flip-flop, until the overflow all further compare match are ignored. This avoids the situation
where changing the compare register causes the occurrence of several compare matches dur-
ing one period. The resolution at the pulse-width modulation Timer 2 mode 1 is 12-bit and all
other Timer 2 modes are 8-bit.
PWM Mode: Pulse-width modulation output on Timer 2 output pin (T2O)
Figure 5-22. PWM Modulation
Input clock
Counter 2/2
T2R
0
Counter 2/2
CM2
OVF2
INT4
T2O
0 50
255 0
100
255 0
150 255 0 50
255 0
100
load the next
compare value
T2CO2 = 150
load
load
T1
T
T2
T
T3
T1
T
T
T2
T
42 ATAR092-C/ATAR892-C
4593D–4BMCU–05/06