English
Language : 

ADUC824BSZ Datasheet, PDF (55/68 Pages) Analog Devices – MicroConverter®, Dual-Channel 16-/24-Bit ADCs with Embedded FLASH MCU
T2CON
SFR Address
Power-On Default Value
Bit Addressable
Timer/Counter 2 Control Register
C8H
00H
Yes
TF2
EXF2
RCLK
TCLK
EXEN2
TR2
ADuC824
CNT2
CAP2
Bit
Name
7
TF2
6
EXF2
5
RCLK
4
TCLK
3
EXEN2
2
TR2
1
CNT2
0
CAP2
Table XXV. T2CON SFR Bit Designations
Description
Timer 2 Overflow Flag
Set by hardware on a Timer 2 overflow. TF2 will not be set when either RCLK or TCLK = 1.
Cleared by user software.
Timer 2 External Flag
Set by hardware when either a capture or reload is caused by a negative transition on T2EX and
EXEN2 = 1.
Cleared by user user software.
Receive Clock Enable Bit
Set by user to enable the serial port to use Timer 2 overflow pulses for its receive clock in serial
port Modes 1 and 3.
Cleared by user to enable Timer 1 overflow to be used for the receive clock.
Transmit Clock Enable Bit
Set by user to enable the serial port to use Timer 2 overflow pulses for its transmit clock in serial
port Modes 1 and 3.
Cleared by user to enable Timer 1 overflow to be used for the transmit clock.
Timer 2 External Enable Flag
Set by user to enable a capture or reload to occur as a result of a negative transition on T2EX if
Timer 2 is not being used to clock the serial port.
Cleared by user for Timer 2 to ignore events at T2EX.
Timer 2 Start/Stop Control Bit
Set by user to start Timer 2.
Cleared by user to stop Timer 2.
Timer 2 Timer or Counter Function Select Bit
Set by user to select counter function (input from external T2 pin).
Cleared by user to select timer function (input from on-chip core clock).
Timer 2 Capture/Reload Select Bit
Set by user to enable captures on negative transitions at T2EX if EXEN2 = 1.
Cleared by user to enable auto-reloads with Timer 2 overflows or negative transitions at T2EX
when EXEN2 = 1. When either RCLK = 1 or TCLK = 1, this bit is ignored and the timer is
forced to autoreload on Timer 2 overflow.
Timer/Counter 2 Data Registers
Timer/Counter 2 also has two pairs of 8-bit data registers associated with it. These are used as both timer data registers and timer
capture/reload registers.
TH2 and TL2
Timer 2, data high byte and low byte.
SFR Address = CDhex, CChex respectively.
RCAP2H and RCAP2L
Timer 2, Capture/Reload byte and low byte.
SFR Address = CBhex, CAhex respectively.
REV. B
–55–