beautypg.com

Maxim Integrated High-Speed Microcontroller Users Guide: DS80C390 Supplement User Manual

Page 84

background image

High-Speed Microcontroller User’s Guide: DS80C390 Supplement

84 of 158

EXTRQ bit in a similar manner, but will not automatically transmit a data frame and
as such will not automatically clear the EXTRQ bit.

MTRQ
Bit 2

CAN 1 Message Center 1 Microcontroller Transmit Request. When set, this bit
indicates that the message center is requesting that a message be transmitted. The bit
is cleared when the transmission is complete, allowing this bit to be used to both
initiate and monitor the progress of the transmission. The bit can be set by software
or the CAN module, depending on the state of the Transmit/Receive bit in the CAN
1 Message 1 Format Register (located in MOVX space). This bit is cleared when the
CRST bit is set, the CAN module experiences a system reset, or the conditions
described below. Note that the MTRQ bit located in Message Center 15 is ignored
by the CAN module, since the Message Center 15 is a receive only message center.
T/

R

=0 (receive). When software sets this bit, a remote frame request previously

loaded into the message center will be transmitted. The CAN 1 Module will clear
this bit following the successful transmission of the frame request message.
T/

R

=1 (transmit). When software sets this bit, a data frame previously loaded into

the message center will be transmitted. When T/

R

= 1, the MTRQ bit will also be

set by the CAN 1 controller at the same time that the EXTRQ bit is set by a message
request from an external node.

ROW/TIH
Bit 1

CAN 1 Message Center 1 Receive Overwrite/Transmit Inhibit. The Receive
Overwrite (ROW) and Transmit Inhibit (TIH) bits share the same bit location. When
T/

R

= 0 the bit has the ROW function, serving as a flag that an overwrite of

incoming data may have occurred. When T/

R

= 1 the bit has the Transmit Inhibit

function, allowing software to disable the transmission of a message while the data
contents are being updated.
Receive Overwrite: (T/

R

= 0, ROW is Read Only). The CAN 1 controller

automatically sets this bit 0 if a new message is received and stored while the DTUP
bit was still set. When set, ROW indicates that the previous message was potentially
lost and may not have been read, since the microcontroller had not cleared the DTUP
bit prior to the new load. When ROW = 0, no new message has been received and
stored while DTUP was set to ‘1’ since this bit was last cleared. Note that the ROW
bit will not be set when the WTOE bit is cleared to a 0, since all overwrites are
disabled. This is due to the fact that even if the incoming message matches the
respective message center that as long as DTUP = 1 in the respective message
center, the combination of WTOE = 0 and DTUP = 1 will force the CAN module to
ignore the respective message center when the CAN is processing the incoming data.
ROW is cleared by the CAN module when the microcontroller clears the DTUP bit
associated with the same message center. INTRQ is automatically set when the
ERI=1 and message center 1 successfully receives and stores a message.
ROW will reflect the actual message center relationships for message centers 1 to
14. Message center 15 utilizes a special shadow message buffer, and the ROW bit
for that message center indicates an overwrite of the buffer as opposed to the actual
message center 15. The ROW bit for message center 15 is cleared once the shadow
buffer is loaded into the message center 15, and the shadow buffer is cleared to
allow a new message to be loaded. The shadow buffer is automatically loaded into
message center 15 when the microcontroller clears the DTUP and EXTRQ bits in
message center 15.
Transmit Inhibit: (T/

R

= 1, TIH is unrestricted Read/Write). The TIH allows

the microcontroller to disable the transmission of the message when the data
contents of the message are being updated. TIH = 1 directs the CAN 1 controller not
to transmit the associated message. TIH = 0 enables the CAN 1 controller to transmit
the message. If TIH = 1 when a remote frame request is received by the message