![](http://datasheet.mmic.net.cn/330000/PEF20532_datasheet_16444046/PEF20532_92.png)
PEB 20532
PEF 20532
Detailed Protocol Description
Data Sheet
92
2000-09-14
For receive operation SEROCCO-M monitors the incoming data stream for the Opening
Flag (7E Hex) to identify the beginning of a HDLC packet. Subsequent bytes are part of
data and are processed as normal HDLC packet including checking of CRC. Received
mapped characters are unmapped.
The abort sequence consists of the control escape character 7D
H
followed by a flag
character 7E
H
(not stuffed). Between two frames, the interframe time fill character should
be programmed to 7E
H
by setting bit
CCR2H
:ITF to
’
1
’
.
Octet alignment is provided through the synchronization pulses in clock mode 5b.
4.2.3
Asynchronous PPP
For transmit operation, SEROCCO-M inserts the HDLC header (Opening Flag), and
appends the HDLC trailer (CRC, Ending Flag), surrounding the transmit data read from
the XFIFO. Each octet (including HDLC framing flags and idle flags) is converted into
async character format (1 start, 8 data bits, 1 stop bit) and then transmitted using the
asynchronous character formatter block. Character mapping like in Octet Synchronous
PPP mode is performed.
In receive direction any async character is transferred into SEROCCO-M
’
s ASYNC
Character De-Formatting logic block, where it is translated back into the original
information octet. Mapped characters are unmapped and the information octets are then
transferred to the RFIFO (as in Octet Synchronous PPP mode).
4.2.4
Data Transparency in PPP Mode
When transporting bit-files (as opposed to text files), or compressed files, the characters
could easily represent MODEM control characters (such as CTRL-Q, CTRL-S) which the
MODEM would not pass through. SEROCCO-M maintains an Async Control Character
Map (ACCM) for characters 00-1F Hex. Whenever there is a mapped character in the
data stream, the transmitter precedes that character with a control-escape character of
7D
H
. After the control-escape, the character itself is transmitted with bit 5 inverted.
character e.g. 13
H
is mapped to 7D
H
, 33
H
).
At the receive end, a 7D
H
character is discarded and the following character is modified
by inverting bit 5 (e.g. if 7D
H
, 33
H
is received, the 7D
H
is discarded and the 33
H
is
changed to 13
H
the original character). This character is received into RFIFO and
included in CRC calculation, even if it is not mapped.
The 32 lookup octet values (00
H
-1F
H
) are stored within the on-chip registers
ACCM0
..3.
In addition to the ACCM, 4 user programmable characters (especially outside the range
00-1F Hex) can also be mapped using the control-escape sequence described above.
These characters are specified in registers
UDAC0
..3.
The receiver discards all characters which are received unmapped, but expected to be
mapped because of
ACCM0
..3 and
UDAC0
..3 register contents. If this occurs within an