Renesas M16C/6NK Technical Information Seite 268

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 412
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 267
Rev.2.10 Apr 14, 2006 page 244 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 19. CAN Module
19.15.1 Reception
Figure 19.20 shows the Timing of Receive Data Frame Sequence. Figure 19.20 shows the behavior of
the module when receiving two consecutive CAN messages, that fit into the slot of the shown CiMCTLj
register (i = 0, 1, j = 0 to 15) and leads to losing/overwriting of the first message.
CAN bus
RecReq bit
InvalData bit
CANi successful
reception interrupt
RecState bit
RecSucc bit
MBOX bit
NewData bit
SOF ACK EOF EOFIFS
IFS
SOF
Receive slot No.
MsgLost bit
CiMCTLj register
CiSTR register
(1)
(2)
(2)
(3)
(4)
(5)
(5)
(5)
i = 0, 1
j = 0 to 15
ACK
Figure 19.20 Timing of Receive Data Frame Sequence
(1) On monitoring a SOF on the CAN bus the RecState bit in the CiSTR register becomes 1 (CAN module
is receiver) immediately, given the module has no transmission pending.
(2) After successful reception of the message, the NewData bit in the CiMCTLj register of the receiving
slot becomes 1 (stored new data in slot). The InvalData bit in the CiMCTLj register becomes 1
(message is being updated) at the same time and the InvalData bit becomes 0 (message is valid) again
after the complete message was transferred to the slot.
(3) When the interrupt enable bit in the CiICR register of the receiving slot = 1 (interrupt enabled), the
CANi successful reception interrupt request is generated and the MBOX bit in the CiSTR register is
changed. It shows the slot number where the message was stored and the RecSucc bit in the CiSTR
register is active.
(4) Read the message out of the slot after setting the New Data bit to 0 (the content of the slot is read or
still under processing by the CPU) by a program.
(5) When next CAN message is received before the NewData bit is set to 0 by a program or a receive
request to a slot is canceled, the MsgLost bit in the CiMCTLj register is set to 1 (message has been
overwritten). The new received message is transferred to the slot. Generating of an interrupt request
and change of the CiSTR register are same as in 3).
Seitenansicht 267
1 2 ... 263 264 265 266 267 268 269 270 271 272 273 ... 411 412

Kommentare zu diesen Handbüchern

Keine Kommentare