C509-L_97 SIEMENS [Siemens Semiconductor Group], C509-L_97 Datasheet - Page 167

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Using timer 1 to generate baud rates:
In mode 1 and 3 of serial interface 0 timer 1 can be used for generating baud rates. Then the baud
rate is determined by the timer 1 overflow rate and the value of SMOD as follows:
The timer 1 interrupt is usually disabled in this application. Timer 1 itself can be configured for either
“timer” or “counter” operation, and in any of its operating modes. In most typical applications, it is
configured for “timer” operation in the auto-reload mode (high nibble of TMOD = 0010 B ). In this
case the baud rate is given by the formula:
Very low baud rates can be achieved with timer 1 if leaving the timer 1 interrupt enabled, configuring
the timer to run as 16-bit timer (high nibble of TMOD = 0001 B ), and using the timer 1 interrupt for a
16-bit software reload.
Semiconductor Group
PRSC is the prescaler ratio
which is selected via the bits
T1P1 and T1P0 in the special
function register PRSC.
Mode 1, 3 baud rate =
Mode 1, 3 baud rate =
Timer 1 Prescaler Bits
T1P1
0
0
1
1
32 x 6 x PRSC x (256 – (TH1))
2
2
SMOD
32
SMOD
6-89
x oscillator frequency
x
(timer 1 overflow rate)
On-Chip Peripheral Components
T1P0
0
1
0
1
PRSC Value in
the forrmula above
1
2
4
8
1997-10-01
C509-L

Related parts for C509-L_97