![Dallas DS87C550 Скачать руководство пользователя страница 77](http://html1.mh-extra.com/html/dallas/ds87c550/ds87c550_user-manual-supplement_3298646077.webp)
DS87C550 High-Speed Microcontroller User’s Guide Supplement
77 of 93
From the drawings, Table 11-1 can be derived. This table shows that when the timer/counter is used as a
timer (i.e., it counts some number of system clocks), the frequency of timer clocks is a function of the
crystal oscillator (or external oscillator) and timer clock source settings. The bits CD1, CD0, and
4X/
X
2
determine the system clock available to the timer, and the bits TxM (i.e., T0M and T1M)
determine the clock source. The specific timer mode (8-bit, 16-bit, reload, etc.) does not affect the
number of oscillator clocks per timer clock.
OSCILLATOR CLOCKS PER TIMER 0 or 1 CLOCK :
Table 11-1
CD1
CD0
4X/
X
2
TxM = 0
TxM = 1
0
0
1
12
1
0
0
0
12
2
0
1
X
Reserved
Reserved
1
0
X
12
4
1
1
X
3,072
1,024
Where TxM is either the T0M or T1M SFR bit
TIMER 2
As stated earlier, the functionality of Timer/Counter 2 in the DS87C550 is a superset of the functions
found on earlier members of the High-Speed Microcontroller family. However, for the same functions,
the clock selection options are slightly different. The available clock selection options for various Timer 2
modes are shown in the drawings below.
TIMER/COUNTER 2, BAUD RATE GENERATOR MODE:
Figure 11-4.
OSC
T2 = P1.4
C/T2 = T2CON.1
0
1
TL2
RLOADL
TR2 = T2CON.2
TH2
RLOADH
EXF2 =
T2CON.6
T2EX = P1.5
EXEN2 = T2CON.3
DIVIDE
BY 16
DIVIDE
BY 16
DIVIDE
BY 2
0
1
0
1
Serial
Port 0 Rx
CLOCK
Serial
Port 0 Tx
CLOCK
TIMER 2
INTERRUPT
1
0
TIMER 1
OVERFLOW
RCLK =
T2CON.5
TCLK =
T2CON.4
SMOD1 =
PCON.7
0
7
8
15
0
7
8
15
/CLK
4X/
2X CD1:0 CLK OUT
1 00 /2
0 00 /2
x 10 /2
x 11 /512
T2P1 T2P0 Divisor
0 0 /1
0 1 /2
1 0 /4
1 1 /8
/RL2(T2CON.0) = 0; RCLK(T2CON.5) = 1 or TCLK(T2CON.4) = 1