English
Language : 

C161RI_1 Datasheet, PDF (205/317 Pages) Siemens Semiconductor Group – 16-Bit CMOS Single-Chip Microcontroller
The High-Speed Synchronous Serial Interface
C161RI
SSCCON (FFB2H / D9H)
SFR
Reset Value: 0000H
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SSC SSC
SSC SSC SSC SSC SSC
EN=1 MS - BSY BE PE RE TE -
-
-
-
SSCBC
rw rw - rw rw rw rw rw -
-
-
-
r
Bit
SSCBC
SSCTE
SSCRE
SSCPE
SSCBE
SSCBSY
SSCMS
SSCEN
Function (Operating Mode, SSCEN = ‘1’)
SSC Bit Count Field
Shift counter is updated with every shifted bit. Do not write to!!!
SSC Transmit Error Flag
1:
Transfer starts with the slave’s transmit buffer not being updated
SSC Receive Error Flag
1:
Reception completed before the receive buffer was read
SSC Phase Error Flag
1:
Received data changes around sampling clock edge
SSC Baudrate Error Flag
1:
More than factor 2 or 0.5 between Slave’s actual and expected
baudrate
SSC Busy Flag
Set while a transfer is in progress. Do not write to!!!
SSC Master Select Bit
0:
Slave Mode. Operate on shift clock received via SCLK.
1:
Master Mode. Generate shift clock and output it via SCLK.
SSC Enable Bit = ‘1’
Transmission and reception enabled. Access to status flags and M/S control.
Note: • The target of an access to SSCCON (control bits or flags) is determined by the state of
SSCEN prior to the access, i.e. writing C057H to SSCCON in programming mode
(SSCEN = ’0’) will initialize the SSC (SSCEN was ‘0’) and then turn it on (SSCEN = ’1’).
• When writing to SSCCON, make sure that reserved locations receive zeros.
The shift register of the SSC is connected to both the transmit pin and the receive pin via the pin
control logic (see block diagram). Transmission and reception of serial data is synchronized and
takes place at the same time, i.e. the same number of transmitted bits is also received. Transmit
data is written into the Transmit Buffer SSCTB. It is moved to the shift register as soon as this is
empty. An SSC-master (SSCMS = ’1’) immediately begins transmitting, while an SSC-slave
(SSCMS = ’0’) will wait for an active shift clock. When the transfer starts, the busy flag SSCBSY is
set and a transmit interrupt request (SSCTIR) will be generated to indicate that SSCTB may be
reloaded again. When the programmed number of bits (2 … 16) has been transferred, the contents
of the shift register are moved to the Receive Buffer SSCRB and a receive interrupt request
(SSCRIR) will be generated. If no further transfer is to take place (SSCTB is empty), SSCBSY will
be cleared at the same time. Software should not modify SSCBSY, as this flag is hardware
controlled.
Semiconductor Group
12-4
1998-05-01