04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 14 CAN CONTROLLER<br />

14.12 Interrupt Function<br />

The CAN module provides 6 different interrupt sources.<br />

The occurrence of these interrupt sources is stored in interrupt status registers. Four separate interrupt request signals<br />

are generated from the six interrupt sources. When an interrupt request signal that corresponds to two or more interrupt<br />

sources is generated, the interrupt sources can be identified by using an interrupt status register. After an interrupt source<br />

has occurred, the corresponding interrupt status bit must be cleared to 0 by software.<br />

No. Interrupt Status Bit Interrupt Enable Bit<br />

1 CINTS0 Not<br />

e<br />

2 CINTS1 Not<br />

e<br />

Name Register Name Register<br />

Table 14-20. List of CAN Module Interrupt Sources<br />

Interrupt<br />

Request Signal<br />

Interrupt Source Description<br />

C0INTS CIE0 Note C0IE INTC0TRX Message frame successfully transmitted<br />

from message buffer m<br />

C0INTS CIE1 Note C0IE INTC0REC Valid message frame reception in<br />

message buffer m<br />

3 CINTS2 C0INTS CIE2 C0IE INTC0ERR CAN module error state interrupt<br />

(Supplement 1)<br />

4 CINTS3 C0INTS CIE3 C0IE CAN module protocol error interrupt<br />

(Supplement 2)<br />

5 CINTS4 C0INTS CIE4 C0IE<br />

CAN module arbitration loss interrupt<br />

6 CINTS5 C0INTS CIE5 C0IE INTC0WUP CAN module wakeup interrupt from CAN<br />

sleep mode (Supplement 3)<br />

Note The IE bit (message buffer interrupt enable bit) in the C0MCTRLm register of the corresponding message buffer<br />

has to be set to 1 for that message buffer to participate in the interrupt generation process.<br />

Supplements 1. This interrupt is generated when the transmission/reception error counter is at the warning level, or in<br />

the error passive or bus-off state.<br />

2. This interrupt is generated when a stuff error, form error, ACK error, bit error, or CRC error occurs.<br />

3. This interrupt is generated when the CAN module is woken up from the CAN sleep mode because a<br />

falling edge is detected at the CAN reception pin (CAN bus transition from recessive to dominant).<br />

Remark m = 0 to 15<br />

R01UH0317EJ0004 Rev. 0.04 904<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!