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

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
which is independent from the oscillator frequency of the MCU (fosc). The value of Nb is nine,
because one start bit plus eight data bits are measured. The resulting formula then is
This equation contains the constant factor
So the formula can be written as
To avoid complicated float point arithmetic the factor 0.0417 is scaled by multiplying it with 4096
(result is 171) and then performing an integer multiplication with T0. In the next step the product is
rescaled by a integer division with 4096, which can be simply achieved by a twelve bit right-shift
operation. The final formula for calculating the reload value S0REL including scaling and rescaling
is therefore:
Additionally, the result of the division is rounded by a simple bit comparison of the last right shifted
bit. After setting S0REL to the calculated value and activating the baud rate generator of the serial
interface 0, the bootstrap loader sends an acknowledge byte (55 H ) to the host. If this byte is
received correctly, it will be assured, that both serial interfaces are working with the same baud rate.
The flowchart in figure 10-8 shows the calculation of the reload value S0REL for the baud rate
generator of the serial interface 0.
Semiconductor Group
S0REL
S0REL
S0REL
-------------- -
32
=
=
12
1024
1024
=
10-10
9
1024
=
0.0147
0.0417
171
---------------------
4096
T0
------------------
32
T0
12
9
T0
(3)
Bootstrap Loader
1997-10-01
C509-L

Related parts for C509-L_97