beautypg.com

Can 0 message center 2 control register (c0m2c), Can 0 message center 3 control register (c0m3c) – Maxim Integrated High-Speed Microcontroller Users Guide: DS80C390 Supplement User Manual

Page 48

background image

High-Speed Microcontroller User’s Guide: DS80C390 Supplement

48 of 158

center when the CAN is processing the incoming data.
ROW is cleared by the CAN module when software clears the DTUP bit
associated with that 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 0 controller not to transmit the associated message. TIH = 0
enables the CAN 0 controller to transmit the message. If TIH = 1 when a
remote frame request is received by the message center, EXTRQ will be set
to a 1. Following the Remote Frame Request and after the microcontroller
has established the proper data to be sent, the microcontroller will clear the
TIH bit to a 0, which will allow the CAN module to send the data requested
by the previous Remote Frame Request. Note that the TIH bit associated with
Message Center 15 is ignored because it is a receive-only message center. If
the message center being set up with WTOE = 1 was previously a transmit
message center, ensure that the TIH bit is cleared to 0 (TIH can only be
written while T/ R is set to 1). If TIH is set to 1 and that message center is
changed to receive with WTOE = 1, the ROW bit will always read back a 1,
even though a receive overwrite condition may not have occurred.

DTUP
Bit 0

CAN 0 Message Center 1 Data Updated. This bit indicates that new data
has been loaded into the data portion of the message center. The exact
function of the DTUP bit is dependent on whether the message center is
configured in a receive (T/ R = 0) or transmit (T/ R = 1) mode. Some
functions are also dependent on the state of the WTOE bit. The DTUP bit is
only cleared by a software write to the bit, a system reset, or the setting of the
CRST bit.

T/ R =0 (receive)
In this mode (T/ R = 0) the DTUP bit is set when new data has been
successfully received and is ready to be read by the microcontroller. The
exact meaning of the DTUP bit during a message center read is determined
by the WTOE bit in the CAN 0 Control Register.

If WTOE = 1 (message center overwrite enabled), DTUP should be
polled before and after reading the message center to ascertain if an
overwrite of the data occurred during the read. For example, software
should clear DTUP before reading the message center and then again