ATAM894X-TNQY ATMEL [ATMEL Corporation], ATAM894X-TNQY Datasheet - Page 39

no-image

ATAM894X-TNQY

Manufacturer Part Number
ATAM894X-TNQY
Description
8k-flash Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
6.3.2.3
6.3.2.4
4679D–4BMCU–05/05
Timer 2 Output Modes
Timer 2 Output Signals
The signal at the timer output is generated via modulator 2. In the toggle mode, the compare
match event toggles the output T2O. For high resolution duty cycle modulation 8 bits or 12 bits
can be used to toggle the output. In the duty-cycle burst modulator modes the DCG output is
connected to T2O and switched on and off either by the toggle flip-flop output or the serial data
line of the SSI. Modulator 2 also has 2 modes to output the content of the serial interface as Bi-
phase or Manchester code.
The modulator output stage can be configured by the output control bits in the T2M2 register.
The modulator is started with the start of the shift register (SIR = 0) and stopped either by carry-
ing out a shift register stop (SIR = 1) or compare match event of stage 1 (CM1) of Timer 2. For
this task, Timer 2 mode 3 must be used and the prescaler has to be supplied with the internal
shift clock (SCL).
Figure 6-14. Timer 2 Modulator Output Stage
Timer 2 Output Mode 1
Toggle Mode A: A Timer 2 compare match toggles the output flip-flop (M2)
Figure 6-15. Interrupt Timer/Square Wave Generator — the Output Toggles with Each Edge
CONTROL
Counter 2
Counter 2
SSI
INT4
Input
CMx
T2O
T2R
Compare Match Event
DCGO
SO
TOG2
RE
FE
OMSK
0
0
Manchester
Bi-phase/
modulator
0
1
2
T2M2
3
4
T2OS2, 1, 0
0
S1
1
2
RES/SET
T2TOP
Toggle
3
4
M2
0
1
M2
2
S2
3
ATAM894
4
T2O
Modulator 3
0
S3
1
T2O
39

Related parts for ATAM894X-TNQY