English
Language : 

ATAR892_14 Datasheet, PDF (42/107 Pages) ATMEL Corporation – Bi-phase-, Manchester- and Pulse-width Modulator and Demodulator
5.3.2.4
5.3.2.5
Timer 2 Registers
Timer 2 has 6 control registers to configure the timer mode, the time interval, the input clock and
its output function. All registers are indirectly addressed using extended addressing as
described in section “Addressing Peripherals”. The alternate functions of the Ports BP41 or
BP42 must be selected with the Port 4 control register P4CR, if one of the Timer 2 modes
require an input at T2I/BP41 or an output at T2O/BP42.
Timer 2 Control Register (T2C)
Bit 3
Bit 2
Bit 1
T2C T2CS1 T2CS0 T2TS
Bit 0
T2R
Address: '7'hex - Subaddress: '0'hex
Reset value: 0000b
T2CS1 Timer 2 Clock Select bit 1
T2CS0 Timer 2 Clock Select bit 0
Table 5-8. Timer 2 Clock Select Bits
T2CS1
0
0
1
1
T2CS0
0
1
0
1
Input Clock (CL 2/1) of Counter Stage 2/1
System clock (SYSCL)
Output signal of Timer 1 (T1OUT)
Internal shift clock of SSI (SCL)
Output signal of Timer 3 (TOG3)
5.3.2.6
T2TS
T2R
Timer 2 Toggle with Start
T2TS = 0, the output flip-flop of Timer 2 is not toggled with the timer start
T2TS = 1, the output flip-flop of Timer 2 is toggled when the timer is started with T2R
Timer 2 Run
T2R = 0, Timer 2 stop and reset
T2R = 1, Timer 2 run
Timer 2 Mode Register 1 (T2M1)
T2M1
Bit 3
T2D1
Bit 2
T2D0
Bit 1
T2MS1
Bit 0
T2MS0
Address: '7'hex - Subaddress: '1'hex
Reset value: 1111b
T2D1
T2D0
Timer 2 Duty cycle bit 1
Timer 2 Duty cycle bit 0
42 ATAR092/ATAR892
4535E–4BMCU–05/07