English
Language : 

C515C_9711 Datasheet, PDF (130/268 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
On-Chip Peripheral Components
C515C
When the SSC is enabled and in master mode, pins P4.2 / SRI, P4.3 / STO, and P4.1 / SCLK will
be switched to the SSC control function. P4.3 / STO and P4.1 / SCLK actively will drive the lines
P4.4 / SLS will remain a regular I/O pin.
The output latches of port pins dedicated to alternate functions must be programmed to logic 1
(= state after reset).
In slave mode all four control pins will be switched to the alternate function. However, STO will stay
in the tristate state until the transmitter is enabled by SLS input being low and the TEN control bit is
set to 1. This allows for more than one slave to be connected to one select line and the final
selection of the slave will be done by a software protocol.
6.4.3 Baudrate Generation (Master Mode only)
The baudrate clock is generated out of the processor clock (fosc). This clock is fed into a resetable
divider with seven outputs for different baudrate clocks (fosc/4 to fosc/256). One of these eight
clocks is selected by the bits BRS2,1, 0 in SSCCON and provided to the shift control logic.
Whenever the shift register is loaded with a new value, the baudrate generation is restarted with the
trailing edge of the write signal to the shift register. In the case of CPHA = 0 the baudrate generator
will be restarted in a way, that the first SCLK clock transisition will not occur before one half transmit
clock cycle time after the register load. This ensures that there is sufficient setup time between MSB
or LSB valid on the data output and the first sample clock edge and that the MSB or LSB has the
same length than the other bits. (No special care is necessary in case of CPHA=1, because here the
first clock edge will be used for shifting).
6.4.4 Write Collision Detection
When an attempt is made to write data to the shift register while a transfer is in progress, the WCOL
bit in the status register will be set. The transfer in progress continues uninterrupted, the write will
not access the shift register and will not corrupt data.
However, the data written erroneously will be stored in a shadow register and can be read by
reading the STB register.
Depending on the operation mode there are different definitions for a transfer being considered to
be in progress:
Master Mode :
CPHA=0: from the trailing edge of the write into STB until the last sample clock edge
CPHA=1: from the first SCLK clock edge until the last sample clock edge
Note, that this also means, that writing new data into STB immediately after the transfer
complete flag has been set (also initiated with the last sample clock edge) will not generate a
write collision. However, this may shorten the length of the last bit (especially at slow baudrates)
and prevent STO from switching to the forced "1" between transmissions.
Slave Mode :
CPHA=0: while SLS is active
CPHA=1: from the first SCLK clock edge until the last sample clock edge
Semiconductor Group
6-67
1997-11-01