
XII - RECEIVINGIN PARALLEL MODE
(continued)
XII.5- SynchronousMode
XII.5.1- Description
In synchronous mode the ST75C530/540 writes
thereceived bit into the DUALRAM Bufferwithout
any modification. It starts with the Bit 0 of the
DTRBF0[0]
byte.
XII.5.2- Status Word Format
ThereceiveStatusByte
DTRBS0
or
DTRBS1
have
the same following meaning(See Table below).
The BUFF_LENG is always 8 except when a lost
of carrier (
STA_109
goingto 0) happens.
This status byte is set by the ST75C530/540,just
beforegeneratingthe
IT3
interrupt.
XII.6- HDLCMode
XII.6.1- Description
In HDLC mode the ST75C530/540 extracts from
the received HDLC frame the Data information
only. It reports, troughthe DUAL Ram buffer,only
data information and frame validity. The mecha-
nismis as follows:
- As long as the ST75C530/540receives continu-
ous HDLCFlag $7E,nothinghappens.Note that
the ST75C530/540allows zero sharing between
adjacent flags.
- When the ST75C530/540 receives somedata, it
removes inserted “zero” if needed, and starts to
compute the CRC. As soon as its internal buffer
is full,theST75C530/540writesthereceiveddata
into
the
DTRBFx
buffer and sets the
BUFF_SFRM
inside the
DTRBSx
statusbyte.
- When
receiving
additional data, the
ST75C530/540 feeds the buffer just like in syn-
chronous mode.
- When the ST75C530/540receivesa closingflag
(which can be shared with the following opening
flag)it comparesthe received CRC with its inter-
nal computation. It writes the contents of the
received last data into the
DTRBFx
buffer,sets
the
BUFF_EFRM
bitand reportsany frameerror
in the
DTRBSx
registerviathe
BUFF_ERRS
bits.
Reported errorsare :
CRC error (lowest priority): the received CRC
is not equal to the computed CRC.Some bits,
inside the frame, are erroneous.
Non Byte-Aligned frame (middle priority): the
received data bit count (after deletion of the
“zero inserted”), betweenthe opening and the
closing flag, is not a multipleof 8.
Abortedframe(highestpriority):the framewas
abortedwith at least 7 consecutive“1”
- An abortframecan be also detected,while in the
interframemode,if insteadof receiving$7Eflag,
theST75C530/540receivemorethan7consecu-
tive “1”. In this case only one Aborted frame is
signaled, event if the”1” conditionis maintained.
DTRBSx in Synchronous Mode
Pos. Value
BUFF_LENG 3 .. 0
Field
Definition
0
1
2
..
8
Other
0
Buffer empty.
1 Byte received
(
DTRBFx[0]
).
2 Bytes received
(
DTRBFx[0]
and
DTRBFx[1]
).
..
8 Bytes received
(
DTRBFx[0 .. 7]
).
Not used.
Not used.
Other
7 .. 4
XII.6.2 - StatusWord Format
DTRBSx in HDLC Mode
Pos. Value
0
1
Field
Definition
BUFF_LENG 3 .. 0
2
..
8
other
0 0
0 1
1 0
1 1
0
1
Buffer empty.
1 Byte received
(
DTRBFx[0]
).
2 Bytes received
(
DTRBFx[0]
and
DTRBFx[1]
).
..
8 Bytes received
(
DTRBFx[0 .. 7]
).
Not allowed.
No error.
CRC error.
Non Byte-Aligned frame.
Aborted frame.
Data stream.
Start of frame : the buffer
is a beginning of frame.
Data stream.
End of frame : the buffer
is a closing frame.
BUFF_ERRS 5 .. 4
BUFF_SFRM
6
BUFF_EFRM
7
0
1
ST75C530 - ST75C540
72/84