Renesas M32R/ECU Series User Manual page 624

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

Advertisement

13
Initialize the CAN module
Set the Input/Output Port
Operation Mode Register
Set the Interrupt Controller
Set the CAN related interrupt
request enable registers
Set the CAN
Configuration Register
Set the ID Mask Register
Set the CAN operation mode
Negate CAN reset
CAN module initialization
completed
Figure 13.4.2 Initializing the CAN Module
Set interrupt priority
Set the CAN Error Interrupt Request
Enable Register
• Enable/disable CAN bus error
interrupt request
• Enable/disable CAN error
passive interrupt request
• Enable/disable CAN bus off
interrupt request
• Set the bit timing (baud rate)
• Set the number of times sampled
Set the ID mask bit
Set loopback mode
Set BasicCAN mode
• Set the CAN Extended ID Register
• Set IDs in message slots 14 and 15
• Set the Message Slot Control Register
Release the CAN module from reset
• Clear the CAN Control Register (CANnCNT)'s
FRST and RST bits
13-77
CAN MODULE
13.4 Initializing the CAN Module
Set the CAN Slot Interrupt
Request Enable Register
• Enable/disable the interrupt
request to be generated when
transmission or reception in
the relevant slot has finished
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents