MC68HC58 Motorola, MC68HC58 Datasheet - Page 57

no-image

MC68HC58

Manufacturer Part Number
MC68HC58
Description
Data Link Controller
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68HC58FN
Manufacturer:
MOT
Quantity:
4 130
Part Number:
MC68HC58FN
Manufacturer:
MOT
Quantity:
4 130
Part Number:
MC68HC58FN
Manufacturer:
FREESCALE
Quantity:
1 238
Part Number:
MC68HC58FNA
Manufacturer:
MEANWELL
Quantity:
100
MC68HC58
TECHNICAL DATA
Frames are sent in two basic modes:
The DLC determines that a frame is completely loaded into the TxFIFO by reading a
“load as last byte of transmit data” command byte. If no such command byte has been
received, the transmitter operates in block mode until the command is received. The
host MCU can monitor transmitter activity by polling individual status bytes, or servic-
ing can be interrupt driven. Refer to 4.5 Block Mode Operation for more information.
The transmitter waits until either an entire frame is in the TxFIFO buffer, or until the
TxFIFO buffer is full before beginning a transmission. This prevents a data underrun
during transmission of the first frame byte. Once the J1850 bus is determined to be
idle, transmission and J1850 bus arbitration begin.
When a complete frame is in the TxFIFO buffer, the DLC status byte will indicate that
the TxFIFO buffer is full until the transmission is successfully completed.
A DLC automatically attempts to retransmit a frame if it loses arbitration or if errors are
detected during transmission. The completion code placed in the RxFIFO indicates to
the host MCU when a frame has lost arbitration.
The host MCU can terminate this automatic retry by writing a “terminate automatic re-
try ” (TAR) command byte to the DLC. When the DLC receives the TAR command, it
completes any current transmission, then clears the TxFIFO buffer. If no transmission
is in progress, and the TxFIFO buffer is full, the DLC attempts to transmit the frame in
the TxFIFO buffer once, then clears the TxFIFO buffer.
Since a frame remains in the TxFIFO buffer until it is successfully transmitted, a host
must clear the TxFIFO buffer if another frame is to be substituted for it. There are
several commands that can accomplish this. Refer to SECTION 5 CONTROL AND
STATUS CODES for more information. One of these commands and the command to
load the first byte of a new frame can be combined into a single byte that accompanies
the first byte of new data.
When a TxFIFO underrun occurs, the CRC is intentionally corrupted by being comple-
mented and appended to the transmission.
Figures 4-9 and 4-10 outline the basic software requirements for transferring data to
the DLC in serial mode for transmission onto the J1850 multiplex bus.
• A complete frame is loaded into the TxFIFO buffer for transmission (Normal
• Bytes of the frame are continuously loaded into the TxFIFO buffer as the message
mode).
is being transmitted, until the entire frame has been sent (Block mode).
Particular applications may require more extensive error monitoring
and handling routines than this flowchart displays. Conditions reflect-
ed in the retrieved status byte (received data bytes or J1850 bus sta-
tus) are also not addressed.
DATA LINK CONTROLLER OPERATION
NOTE
MOTOROLA
4-13

Related parts for MC68HC58