English
Language : 

Z85233 Datasheet, PDF (107/317 Pages) Zilog, Inc. – The Zilog SCC Serial Communication Controller
SCC™/ESCC™ User’s Manual
Data Communication Modes
4.3 BYTE-ORIENTED SYNCHRONOUS MODE (Continued)
4.4.4.3 SDLC Loop Initialization
The initialization sequence for the SCC in SDLC Loop
mode is similar to the sequence used in SDLC mode, ex-
cept that it is longer. The processor should program WR4
first to select SDLC mode, and then WR10 to select the
CRC preset value and program the Mark/Flag idle bit.
The Loop Mode and Go-Active-On-Poll bits in WR10
should not be set to 1 yet. The flag is written in WR7 and
the various options are selected in WR3 and WR5. At
this point, the other registers are initialized as necessary
(Table 4-12).
Table 4-12. SDLC Loop Mode Initialization
Bit Number
Reg
WR4
WR3
WR5
WR7
WR6
D7 D6 D5 D4 D3 D2 D1 D0 Description
0 0 1 0 0 0 0 0 Select x1 clock, SDLC mode, enable sync mode
r
x
0
1
1
1
0 0 rx=# of Rx bits/char, No auto enable, enter Hunt,
Enable Rx CRC, Address Search, No sync character
load inhibit
d
t
x000
r
1 d=inverse of DTR pin, tx=# of Tx bits/char, use SDLC
CRC, r=inverse state of /RTS pin, CRC enable
0 1 1 1 1 1 1 0 SDLC Flag
x x x x x x x x Receiver secondary address
WR15 x x x x x x x 1 Enable access to new register
WR7' 0 1 1 d 1 r 1 1 Enable extended read, Tx INT on FIFO empty,
d=REQUEST timing mode, Rx INT on 4 char, r=RTS
deactivation, auto EOM reset, auto flag tx
WR10 c
d
e
1
i
0
1 0 Enable Loop Mode, Go Active On Poll, c=CRC preset,
de=data encoding method, i=idle line
WR3
r
x
0
1
1
1
0 1 Enable Receiver
WR5 d
t
x010
r
1 Enable Transmitter
WR0 1 0 0 0 0 0 0 0 Reset CRC generator
The Loop Mode bit (D1) in WR10 is set to 1. When all of
this is complete, the transmitter is enabled by setting bit D3
of WR5 to 1. Now that the transmitter is enabled, the CRC
generator is initialized by issuing the Reset Tx CRC Gen-
erator command in WR0. The receiver is enabled by set-
ting the Go-Active-On-Poll bit (D4) in WR10 to 1. The SCC
goes on the loop when seven consecutive 1s are received,
and signals this by setting the On-Loop bit in RR10. Note
that the seven consecutive 1s will set the Break/Abort and
Hunt bits in RR0 also. Once the SCC is on the loop, the
Go-Active-On-Poll bit should be set to 0 until a message is
to be transmitted on the loop. To transmit a message on
the loop, the Go-Active-On-Poll bit should be set to 1. At
this point, the processor may either write the first character
to the transmit buffer and wait for a transmit buffer empty
condition, or wait for the Break/Abort and Hunt bits to be
set in RR10 and the Loop Sending bit to be set in RR10 be-
fore writing the first data to the transmitter. The Go-Active-
On-Poll bit should be set to 0 after the transition of the
frame has begun. To go off of the loop, the processor
should set the Go-Active-On-Poll bit in WR10 to 0 and then
wait for the Loop Sending bit in RR10 to be set to 0. At this
point, the Loop Mode bit (D1) in WR10 is set to 0 to request
an orderly exit from the loop. The SCC exits SDLC Loop
mode when seven consecutive 1s have been received; at
the same time the Break/Abort and Hunt bits in RR0 are
set to 1, and the On Loop bit in RR10 is set to 0.
4-32
UM010901-0601