
X - PARALLEL DATA EXCHANGE
X.1 - Overview
While transmiting (respectively receiving) data to
(from) the telephone line data are exchanged be-
tween the host and the ST75C530/540.
Two totaly independentchannels are provived for
transmit and receive data. Even while using half
duplex modes of operation, the transmitted data
comes from the transmit buffers and the receive
dataarrives in the receive buffers.
Two independentinterrupts,
IT2
(for transmit) and
IT3
(forreceive)areavailablefor synchronizingthe
ST75C530/540 and the host. An additional
IT0
interruptwillsignaltheerrorsinthesynchronization
mechanism.
The equivalent data flow is as follows (see Fig-
ure 20).
The ST75C530/540has a buit-inHDLC capability.
This feature automatically performs HDLC fram-
ing/deframing, CRC generation/detectionand “0”
insertion/deletion. The ST75C530/540 have also
UART capability, the format of data is selected by
the
FORM
commanddescribed bellow.
HDLC
UART
Tx
BUFFERS
MODUL.
DEMOD.
H
Rx
BUFFERS
Tx
Rx
IT2
IT3
Telephone
Line
Control
Data
H
HDLC
UART
7
Figure 23
X.2 - TransmitBuffers
Twoidentical buffersareprovidedto exchangethe
data between the host interface and the
ST75C530/540.When the host is writing data into
a buffer, the ST75C530/540 is transmitting the
other one. After that, both the host and the
ST75C530/540switch to use the otherbuffer.This
mechanism, called “Double-Buffering”, ensures
that the host has the maximum time to fill one
buffer.
The DUAL Ram area associated with the transmit
buffersis as followingtable.
Name
Address
$2E
$2F
$30
$31
$32
$33
$34
$35
$36
$37
$38
$39
$3A
$3B
$3C
$3D
$3E
$3F
Description
DTTBS0
DTTBS0 [0]
DTTBS0 [1]
DTTBS0 [2]
DTTBS0 [3]
DTTBS0 [4]
DTTBS0 [5]
DTTBS0 [6]
DTTBS0 [7]
DTTBS1
DTTBS1 [0]
DTTBS1 [1]
DTTBS1 [2]
DTTBS1 [3]
DTTBS1 [4]
DTTBS1 [5]
DTTBS1 [6]
DTTBS1 [7]
Buffer 0 Status Byte
Buffer 0 Data Byte 0
Buffer 0 Data Byte 1
Buffer 0 Data Byte 2
Buffer 0 Data Byte 3
Buffer 0 Data Byte 4
Buffer 0 Data Byte 5
Buffer 0 Data Byte 6
Buffer 0 Data Byte 7
Buffer 1 Status Byte
Buffer 1 Data Byte 0
Buffer 1 Data Byte 1
Buffer 1 Data Byte 2
Buffer 1 Data Byte 3
Buffer 1 Data Byte 4
Buffer 1 Data Byte 5
Buffer 1 Data Byte 6
Buffer 1 Data Byte 7
Bit 0(LSB)of theBuffer0 Data Byte0 is thefirstin
time to be transmited.
Accordingto the Data Format,the Status byteof a
bufferhas differentmeanings. Howevera value of
0 signals to the host that a buffer is empty. This
valueis set by theST75C530/540eachtime it has
emptied the buffer. After having used one buffer,
the host must select the other buffer for the next
operation.The host must startwith the Buffer0 as
soon as the
ST_106
signal goes on and BEFORE
the
XMIT 1
commandis sent.
A mechanism of interruption (
IT2
for Transmit) is
associatedwith the data buffermanagment.Each
time a buffer is emptied by the ST75C530/540 it
generatesan interrupt.
ST75C530 - ST75C540
60/84