English
Language : 

C501_1 Datasheet, PDF (66/121 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller
On-Chip Peripheral Components
C501
6.3.3 Baud Rates Generation
There are several possibilities to generate the baud rate clock for the serial port depending on the
mode in which it is operating.
For clarification some terms regarding the difference between “baud rate clock” and “baud rate”
should be mentioned. The serial interface requires a clock rate which is 16 times the baud rate for
internal synchronization. Therefore, the baud rate generators have to provide a “baud rate clock” to
the serial interface which - there divided by 16 - results in the actual “baud rate”. However, all
formulas given in the following section already include the factor and calculate the final baud rate.
Further, the abrevation fOSC refers to the external clock frequency (oscillator or external input clock
operation).
The baud rate of the serial port is controlled by bit SMOD which is located in the special function
register PCON as shown below.
Special Function Register PCON (Address 87H)
Reset Value : 0XXX0000B
Bit No. MSB
LSB
7
6
5
4
3
2
1
0
87H SMOD –
–
– GF1 GF0 PDE IDLE PCON
The shaded bits are not used for controlling the baud rate.
Bit
SMOD
Function
Double baud rate
When set, the baud rate of serial interface in modes 1, 2, 3 is doubled. After reset
this bit is cleared.
Mode 0
The baud rate in mode 0 is fixed:
Mode 0 baud rate = oscillator frequency/12 = fOSC/12
Mode 2
The baud rate in mode 2 depends on the value of bit SMOD in special function register PCON. If
SMOD = 0 (which is the value on reset), the baud rate is fOSC/64. If SMOD = 1, the baud rate is fOSC/
32.
Mode 2 baud rate = 2SMOD/64×(fOSC)
Modes 1 and 3
The baud rates in mode 1 and 3 are determined by the timer overflow rate. These baud rates can
be determined by timer 1 or by timer 2 or by both (one for transmit and the other for receive).
Semiconductor Group
6-32