English
Language : 

C541U_99 Datasheet, PDF (75/192 Pages) Siemens Semiconductor Group – 8-BIT CMOS MICROCONTROLLER
On-Chip Peripheral Components
C541U
Bit
CPOL
CPHA
BRS2,
BRS1,
BRS0
Function
Clock polarity
This bit controls the polarity of the shift clock and in conjunction with the CPHA bit
which clock edges are used for sample and shift.
CPOL=0 : SCLK idle state is low.
CPOL=1 : SCLK idle state is high.
Clock phase
This bit controls in conjunction with the CPOL bit controls which clock edges are
used for sample and shift
CPHA=0 : The first clock edge of SCLK is used to sample the data, the second
to shift the next bit out at STO.
In master mode the transmitter will provide the first data bit on STO
immediately after the data was written into the STB register.
In slave mode the transmitter (if enabled via TEN) will shift out the
first data bit with the falling edge of SLS .
CPHA=1 : The first data bit is shifted out with the first clock edge of SCLK and
sampled with the second clock edge
Baudrate selection bits
These bits select one of the possible divide factors for generating the baudrate out
of the micrcontroller clock rate fosc . The baudrate is defined by .
Baudrate
=
-----------f--o---s---c------------
Dividefactor
=
2-----•----2---B-f--o-R--s--S-c--(--2----–---0---)
for BRS (2-0) ≠ 0
BRS(2-0)
0
1
2
3
4
5
6
7
Divide
Factor
reserved
reserved
8
16
32
64
128
256
Example:
Baudrate for fosc
= 12 MHz
reserved
reserved
1.5 MBaud
750 kBaud
375 kBaud
187.5 kBaud
93.75 kBaud
46.875 kBaud
Note:
SSCCON must be programmed only when the SSC is idle. Modifying the contents of
SSCCON while a transmission is in progress will corrupt the current transfer and will lead
to unpredictable results.
Semiconductor Group
6-30
1999-04-01