![background image](http://html1.mh-extra.com/html/amd/am186-cc/am186-cc_user-manual_2921689255.webp)
High-Level Data Link Control (HDLC)
Am186™CC/CH/CU Microcontrollers User’s Manual
15-13
transmitter status in the FABRST, CTSLST, TUFLO, TGOODF, and TSTOP bits of the
HxISTAT0 register.
■
Automatic CTS: When automatic CTS is enabled, the transmitter does not start
transmission until CTS is asserted. If the transmitter is transmitting (in-frame) and CTS
is deasserted, a lost CTS has occurred. A lost CTS halts transmission and generates
an abort and a maskable interrupt. If CTS is deasserted while the transmitter is in idle,
the transmitter does not respond. In multiplexed mode, the transmitter ignores CTS. If
CTS is deasserted in Transparent mode while transmitting, the transmitter begins
transmitting idles. When auto-enable CTS is disabled, the transmitter ignores the CTS
input. Auto-enable CTS must be disabled for Multidrop mode. To enable automatic CTS,
set the AUTOCTS bit of the HxTCON1 register to 1.
■
Multidrop Mode with Collision Detection: This mode requires the transmit data pin
to be physically tied, externally, to the CTS input pin. In addition, it requires the mark-
idle flag, disabled auto-enable CTS, and an open drain output. The HDLC channel delays
transmission until it sees a programmable number of consecutive 1s on the CTS input
pin. Specify the number of 1s to delay in the TDELAY field of the HxTCON1 register.
This feature provides some collision avoidance and a transmit priority based on the
number of 1s waited for before transmission. When transmission begins, the transmitter
samples the transmit data stream on the CTS input and internally compares it to what
is transmitted by the HDLC. Upon detecting a difference, the transmitter generates a
maskable interrupt (lost CTS), stops the data transmission, starts transmitting idle flags,
disables transmit, and flushes the transmit FIFO. To enable multidrop mode with collision
detection, set the MLTDRP bit of the HxTCON1 register to 1.
■
GCI D Channel Contention Resolution Request: The transmitter asserts a signal
when it wants to send data. In the Am186CC microcontroller, the GCI controller asserts
a signal back indicating when access to the D channel is available. When the GCIDEN
bit of the HxTCON1 register is set to 1, the transmitter does not begin transmitting until
the GCI gives this indication. If the access signal is deasserted in the middle of
transmission, the transmitter immediately transmits an abort, starts transmitting idles,
generates a maskable interrupt, and indicates a lost CTS status. At the end of
transmission (after the closing flag), the transmitter briefly stops requesting access even
if additional frames are to be transmitted. See Chapter 17, “General Circuit Interface
(GCI),” for additional information.
■
Transmit Bit Order: The transmitter supports the option of transmitting data MSB first
instead of LSB. To specify MSB-first transmission, set the TMSBF bit in the HxTCON1
register to 1. This ability is typically used only in Transparent mode.
■
Transparent Mode: The transmitter supports a Transparent mode (set the TRANSM bit
of the HxCON register to 1) that transmits the data exactly as it appears in the FIFO.
Transparent mode does no bit stuffing, no framing with flags, and does not support CRC.
Transparent mode is useful for transmitting raw data streams such as audio data (for
use with a codec or DSP). To achieve byte alignment, synchronize the transmitter by
resetting the HDLC after configuring the TSA and HDLC. Raw DCE mode does not
support byte alignment. Additionally, byte alignment is not possible when the entire time-
multiplexed bus is allocated to a single TSA/HDLC channel. To enable Transparent mode,
set the TRANSM bit in the HxCON register to 1. Transparent mode is the opposite of
data transparency, where zero-bit insertion (bit stuffing) is used to ensure the receiver
does not recognize a flag, mark-idle, or abort in the data stream.
Figure 15-4 and Figure 15-5 show a typical transmit with auto-enable CTS enabled. CTS
goes active to start the transmission, which begins with a flag. After the flag, three bits of
data are transmitted before CTS is recognized as going inactive. This forces TXD High.
CC
Summary of Contents for Am186 CC
Page 1: ...Am186 CC CH CU Microcontrollers User s Manual Order 21914B...
Page 4: ...iv Am186 CC CH CU Microcontrollers User s Manual...
Page 18: ...Table of Contents xviii Am186 CC CH CU Microcontrollers User s Manual...
Page 24: ...Introduction xxiv Am186 CC CH CU Microcontrollers User s Manual...
Page 40: ...Architectural Overview 1 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 86: ...System Overview 3 36 Am186 CC CH CU Microcontrollers User s Manual...
Page 92: ...Emulator Support 4 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 112: ...DRAM Controller 6 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 134: ...Interrupts 7 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 186: ...Programmable I O Signals 9 8 Am186 CC CH CU Microcontrollers User s Manual...
Page 200: ...Watchdog Timer 11 6 Am186 CC CH CU Microcontrollers User s Manual...
Page 232: ...Asynchronous Serial Ports UARTs 13 24 Am186 CC CH CU Microcontrollers User s Manual...
Page 242: ...Synchronous Serial Port SSI 14 10 Am186 CC CH CU Microcontrollers User s Manual...
Page 264: ...High Level Data Link Control HDLC 15 22 Am186 CC CH CU Microcontrollers User s Manual...
Page 332: ...Universal Serial Bus USB 18 34 Am186 CC CH CU Microcontrollers User s Manual...
Page 348: ...Register Summary A 16 Am186 CC CH CU Microcontrollers User s Manual...
Page 376: ...Index Index 18 Am186 CC CH CU Microcontrollers User s Manual...