![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_647.png)
13
CAN MODULE
13-37
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
13.2.8 CAN Interrupt Related Registers
The CAN interrupt related registers are used to control the interrupt request signals output to the Interrupt Con-
troller by CAN.
The CAN interrupt request is of 3 types as follows:
CAN transmit/receive completion interrupt request
CAN error interrupt request
CAN single-shot interrupt request
These combined interrupt requests corresponds to CAN transmit/receive & error interrupt request.
Figure 13.2.4 Interrupt Request Status and Mask Registers
To the Interrupt Controller
Interrupt request from
each peripheral function
Interrupt request status
Data bus
Set
Group interrupt
Interrupt request enable
clear
F/F
Data = 0
(1) Interrupt request status bit
This status bit is used to determine whether an interrupt is requested. When an interrupt request occurs, this
bit is set in hardware (cannot be set in software). The status bit is cleared by writing "0." Writing "1" has no
effect; the bit retains the status it had before the write. Because this bit is unaffected by the interrupt request
mask bit, it can also be used to inspect the operating status of peripheral functions. In interrupt handling,
make sure that within the grouped interrupt request status, only the status bit for the interrupt request that
has been serviced is cleared. If the status bit for any interrupt request that has not been serviced is cleared,
the pending interrupt request is cleared simultaneously with its status bit.
(2) Interrupt request mask bit
This bit is used to disable unnecessary interrupt requests within the grouped interrupt request. Set this bit to
"1" to enable interrupt requests or "0" to disable interrupt requests.
Figure 13.2.3 Block Diagram of the CAN interrupt requests
CAN transmit/receive & error interrupt request
CAN transmit/receive completion interrupt request
CAN single-shot interrupt request
CAN error interrupt request
13.2 CAN Module Related Registers