Mitsubishi Electric M32R Series User Manual page 672

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

13
Initialize CAN module
Set Input/output Port
Operation Mode Register
Set Interrupt Controller
Set CAN Related Interrupt
Set CAN Configuration
Set ID Mask Register
Set CAN operation mode
CAN module initialization
Figure 13.4.2 Initializing the CAN Module
Mask Register
Register
Negate CAN reset
completed
13.4 Initializing the CAN Module
Set interrupt priority
Set CAN Error Interrupt
Mask Register
• Enable/disable CAN
bus error interrupt
• Enable/disable CAN
error passive interrupt
• Enable/disable CAN
bus off interrupt
• Set bit timing (baud rate)
• Set the number of times sampled
Set ID mask bit
Set loopback mode
Set BasicCAN mode
• Set CAN Extended IDRegister
• Set IDs for message slots
14 and 15
• Set Message Slot Control
Register
Release CAN module from reset
13-58
CAN MODULE
Set CAN Slot Interrupt
Mask Register
• Enable/disable interrupt
to be generated at
completion of transmission
or reception in the slot
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents