DS2152
4. repeat step 3
5. wait for interrupt, skip to step 3
6. disable THALF or TNF interrupt and enable TMEND interrupt
7. wait for an interrupt, then read TUDR status bit to make sure packet was transmitted correctly.
Transmit a BOC
1. write 6-bit code into TBOC
2. set SBOC bit in TBOC=1
11.1.4 HDLC/BOC Register Description
FDLC: FDL CONTROL REGISTER (Address=00 Hex)
(MSB)
(LSB)
TCRCF
RBR
RHR
TFS
THR
TABT
TEOM
TZSD
SYMBOL
POSITION NAME AND DESCRIPTION
RBR
RHR
TFS
FDLC.7
FDLC.6
FDLC.5
Receive BOC Reset. A 0 to 1 transition will reset the BOC
circuitry. Must be cleared and set again for a subsequent reset.
Receive HDLC Reset. A 0 to 1 transition will reset the HDLC
controller. Must be cleared and set again for a subsequent reset.
Transmit Flag/Idle Select.
0 = 7Eh
1 = FFh
THR
FDLC.4
FDLC.3
Transmit HDLC Reset. A 0 to 1 transition will reset both the
HDLC controller and the transmit BOC circuitry. Must be
cleared and set again for a subsequent reset.
TABT
Transmit Abort. A 0 to 1 transition will cause the FIFO
contents to be dumped and one FEh abort to be sent followed by
7Eh or FFh flags/idle until a new packet is initiated by writing
new data into the FIFO. Must be cleared and set again for a
subsequent abort to be sent.
TEOM
FDLC.2
Transmit End of Message. Should be set to a 1 just before the
last data byte of a HDLC packet is written into the transmit
FIFO at TFFR. This bit will be cleared by the HDLC controller
when the last byte has been transmitted.
TZSD
FDLC.1
FDLC.0
Transmit 0 Stuffer Defeat. Overrides internal enable.
0 = enable the 0 stuffer (normal operation)
1 = disable the 0 stuffer
TCRCD
Transmit CRC Defeat.
0 = enable CRC generation (normal operation)
1 = disable CRC generation
57 of 93