
XI.6- HDLCMode
XI.6.1- Description
In HDLC mode the ST75C530/540 transmits the
data bytes contained into the DUAL Ram buffer
packedinside an HDLC frame. The mechanismis
as follows :
- While the Host has no frame to transmit, that is:
as
long
as
DTTBSx
equals $00, the
ST75C530/540transmitsthe HDLC Flag $7E.
- Whenthe Hostwantsto sendsome data,it feeds
the buffer with some data bytes to transmit (be-
tween 1 and 8) and set the
BUFF_SFRM
bit in
the
DTTBSx
status buffer. At that time the
ST75C530/540 start sending data contained in
the Buffer, computin the CRC and performing
“zero intertion”if needed.
- When the host wants to send additional data
(within the same frame) it feeds the buffers just
likein synchronousmode. If an Underflowcondi-
tion occurs, the ST75C530/540 will abort the
framebysending8 consecutive“1”,andtheHost
must restart the whole parallel initialization.
- When the host wants to closea frame, it set the
BUFF_EFRM
bit in the
DTTBSx
statusbuffer.At
that time the ST75C530/540 will send the con-
tents of the buffer, then send the CRC and an
HDLC closing flag $7E.
- If the Host,wantstoabort a frame(while sending
a frame)itsetthe
BUFF_FRAB
bitinthe
DTTBSx
statusbuffer.Atthattime,assoonasthelastbuffer
will be transmitted, the ST75C530/540 will send
8 consecutive“1” and wait for the next buffer.
XI.6.2 - Status WordFormat
DTTBSx in HDLC Mode
Pos. Value
0
1
Field
Definition
BUFF_LENG 3 .. 0
2
..
8
other
0
1
Buffer empty.
1 Byte to transmit
(
DTTBFx[0]
).
2 Bytes to transmit
(
DTTBFx[0]
and
DTTBFx[1]
).
..
8 Bytes to transmit
(
DTTBFx[0 .. 7]
).
Not allowed.
Data stream.
Start of frame : the buffer
is a beginning of frame.
Data stream.
End of frame : the buffer
will be followed by the
transmission of the CRC
and closing flag.
Data stream.
Abort frame :
8 consecutive “1” will be
transmitted (whatever
BUFF_LENG
is).
Reserved, must be 0.
BUFF_SFRM
4
BUFF_EFRM
5
0
1
BUFF_FRAB
6
0
1
Other
7
0
Notes : 1. A buffer can have
BUFF_SFRM
and
BUFF_EFRM
set
in the same
DTTBSx
byte, this means that the frame
transmitted is short (between 1 and 8 Bytes long).
2. An ending frame (with
BUFF_EFRM
set) must have at
least ONE byte of data to transmit.
XI- TRANSMITTING DATA IN PARALLEL MODE
(continued)
TRANSMITTED
DATA
BUFF_FRAB
BUFF_SFRM
BUFF_EFRM
BUFF_LENG
(BUFF_DATA)
$7E
D0
CRC
D1
D2
D3
0
6
2
8
5
$7E
CRC
CRC
CRC
$7E
$7E
$7E
D0
D1
D2
D3
0
0
0
7
Figure 32
XI.6.3- Single Short Frame
(seeFigure 32)
ST75C530- ST75C540
67/84