English
Language : 

M16C1N Datasheet, PDF (143/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
16. CAN Module
16. CAN Module
The CAN (Controller Area Network) module for the M16C/1N group of microcomputers is a communication
controller implementing the CAN 2.0B protocol. The M16C/1N group contains one Full CAN module which
can transmit and receive messages in both standard (11-bit) ID and extended (29-bit) ID formats.
Figure 16.1 shows a block diagram of the CAN module.
External CAN bus driver and receiver are required.
Data Bus
CAN0 Configuration
Register
CAN0 Control
Register
CTX
CAN0 Mailbox
CCAoNn0troMl aRilebgoixster 15
CCoAnNtro0lMRaeiglbisotxer 1
Control Register 0
CAN0 Global
Mask Register
CAN0 Local
Mask A Register
CAN0 Local
Mask B Register
CAN0 Extended
ID Register
Mailboxes
Mailbox 0
CRX
Protocol
Controller
Wakeup
Logic
CAN0 REC
Register
CAN0 TEC
Register
CAN0 Status
Register
Acceptance Filter
16-bit
Timer
CAN0 Mailbox
Status Register
Mailbox 1
Mailbox 2
Mailbox 14
Mailbox 15
Interrupt
Control Logic
CAN0 Interrupt
Control Register
Data Bus
CAN0 reception-
successful interrupt
CAN0 transmission-
successful interrupt
CAN0 error interrupt
CAN0 wakeup interrupt
Figure 16.1 Block Diagram of CAN Module
CTx/CRx:
CAN I/O pins. Either P02, P03 or P50, P51 can be selected as CAN I/O pins by a
program.
Protocol controller: This controller handles the bus arbitration and the CAN protocol services, i.e. bit
timing, stuffing, error status etc.
Message box:
This memory block consists of 16 slots that can be configured either as transmitter
or receiver. Each slot contains an individual ID, data length code, a data field (8
bytes) and a time stamp.
Acceptance filter:
This block performs filtering operation for received messages. For the filtering op-
eration, the C0GMR register, the C0LMAR register, or the C0LMBR register is
used.
16 bit timer:
Used for the time stamp function. When the received message is stored in the
message memory, the timer value is stored as a time stamp.
Wake up function:
CAN0 wake up interrupt is generated by a message from the CAN bus.
Interrupt generation function: The interrupt events are provided by the CAN module. CAN0 successful reception
interrupt, CAN0 successful transmission interrupt, CAN0 error interrupt, and
CAN0 wake up interrupt.
Rev.1.00 Oct 20, 2004 page 131 of 222
REJ09B0007-0100Z