8XC251SA, SB, SP, SQ USER’S MANUAL
8-2
Figure 8-1. Basic Logic of the Timer/Counters
The C\Tx# control bit selects timer operation or counter operation by selecting the divided-down
system clock or external pin Tx as the source for the counted signal.
Table 8-1. Timer/Counter and Watchdog Timer SFRs
Mnemonic
Description
Address
TL0
TH0
Timer 0 Timer Registers. Used separately as 8-bit counters or in cascade
as a 16-bit counter. Counts an internal clock signal with frequency F
OSC
/12
(timer operation) or an external input (event counter operation).
S:8AH
S:8CH
TL1
TH1
Timer 1 Timer Registers. Used separately as 8-bit counters or in cascade
as a 16-bit counter. Counts an internal clock signal with frequency F
OSC
/12
(timer operation) or an external input (event counter operation).
S:8BH
S:8DH
TL2
TH2
Timer 2 Timer Registers. TL2 and TH2 connect in cascade to provide a
16-bit counter. Counts an internal clock signal with frequency F
OSC
/12
(timer operation) or an external input (event counter operation).
S:CCH
S:CDH
TCON
Timer 0/1 Control Register. Contains the run control bits, overflow flags,
interrupt flags, and interrupt-type control bits for timer 0 and timer 1.
S:88H
TMOD
Timer 0/1 Mode Control Register. Contains the mode select bits,
counter/timer select bits, and external control gate bits for timer 0 and
timer 1.
S:89H
T2CON
Timer 2 Control Register. Contains the receive clock, transmit clock, and
capture/reload bits used to configure timer 2. Also contains the run control
bit, counter/timer select bit, overflow flag, external flag, and external enable
for timer 2.
S:C8H
T2MOD
Timer 2 Mode Control Register. Contains the timer 2 output enable and
down count enable bits.
S:C9H
RCAP2L
RCAP2H
Timer 2 Reload/Capture Registers (RCAP2L, RCAP2H). Provide values
to and receive values from the timer registers (TL2,TH2).
S:CAH
S:CBH
WDTRST
Watchdog Timer Reset Register (WDTRST). Used to reset and enable
the WDT.
S:A6H
A4121-02
TR
x
TL
x
(8 Bits)
TH
x
(8 Bits)
TF
x
Interrupt
Request
12
T
x
Overflow
x = 0, 1, or 2
XTAL1
C/T
x#
0
1
Содержание 8XC251SA
Страница 2: ......
Страница 3: ...May 1996 8XC251SA 8XC251SB 8XC251SP 8XC251SQ Embedded Microcontroller User s Manual...
Страница 18: ......
Страница 19: ...1 Guide to This Manual...
Страница 20: ......
Страница 30: ......
Страница 31: ...2 Architectural Overview...
Страница 32: ......
Страница 41: ...3 Address Spaces...
Страница 42: ......
Страница 63: ...4 Device Configuration...
Страница 64: ......
Страница 81: ...5 Programming...
Страница 82: ......
Страница 102: ......
Страница 103: ...6 Interrupt System...
Страница 104: ......
Страница 120: ......
Страница 121: ...7 Input Output Ports...
Страница 122: ......
Страница 132: ......
Страница 133: ...8 Timer Counters and Watchdog Timer...
Страница 134: ......
Страница 153: ...9 Programmable Counter Array...
Страница 154: ......
Страница 170: ......
Страница 171: ...10 Serial I O Port...
Страница 172: ......
Страница 187: ...11 Minimum Hardware Setup...
Страница 188: ......
Страница 197: ...12 Special Operating Modes...
Страница 198: ......
Страница 206: ......
Страница 207: ...13 External Memory Interface...
Страница 208: ......
Страница 239: ...14 Programming and Verifying Nonvolatile Memory...
Страница 240: ......
Страница 250: ......
Страница 251: ...A Instruction Set Reference...
Страница 252: ......
Страница 390: ......
Страница 391: ...B Signal Descriptions...
Страница 392: ......
Страница 400: ......
Страница 401: ...C Registers...
Страница 402: ......
Страница 436: ......
Страница 437: ...Glossary...
Страница 438: ......
Страница 446: ......
Страница 447: ...Index...
Страница 448: ......
Страница 458: ......