English
Language : 

M16C1N Datasheet, PDF (148/238 Pages) Renesas Technology Corp – RENESAS 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/10 SERIES
M16C/1N Group
16.4 CAN SFR Registers
16.4.1 C0MCTLi Register (i = 0 to 15)
Figure 16.6 shows the C0MCTLi register.
16. CAN Module
CAN0 message control register i (i = 0 to 15) (Note 4)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
C0MCTL0 to C0MCTL15
Address
022016 to 022F16
After reset
0016
Bit symbol
Bit name
Function
RW
NewData
Successful
reception flag
When set to reception slot
0 : The content of the slot is read or still under
processing by the CPU.
RO
(Note 1)
1 : The CAN module has stored new data in the slot.
SentData
Successful
When set to transmission slot
transmission flag 0 : Transmission is not started or completed yet.
1 : Transmission is successfully completed.
RO
(Note 1)
InvalData "Under reception" When set to reception slot
flag
0 : The message is valid.
1 : The message is invalid.
RO
(The message is being updated.)
TrmActive "Under
When set to transmission slot
transmission" flag 0 : Waiting for bus idle or completion of arbitration. RO
1 : Transmitting
MsgLost Overwrite flag
When set to reception slot
0 : No message has been overwritten in this slot.
1 : This slot already contained a message, but it has
been overwritten by a new one.
RO
(Note 1)
RemActive Remote frame 0 : Data frame transmission/reception status
transmission/
1 : Remote frame automatic transfer status
reception status
RW
flag (Note 2)
RspLock
Remote
RecReq
TrmReq
Transmission/
reception auto
response lock
mode select bit
Remote frame
corresponding
slot select bit
Reception slot
request bit
(Note 3)
Transmission
slot request bit
(Note 3)
When set to reception remote frame slot
0 : After a remote frame is received, it will be
answered automatically.
RW
1 : After a remote frame is received, no transmission
will be started as long as this bit is set to "1".
(Not responding)
0 : Slot not corresponding to remote frame
1 : Slot corresponding to remote frame
RW
0 : Not reception slot
1 : Reception slot
RW
0 : Not transmission slot
1 : Transmission slot
RW
Note 1: As for write, only writing "0" is possible. The value of each bit is written when the CAN module enters the respective state.
Note 2: In Basic CAN mode, this bit serves as data format identification flag. When receiving a data frame, this bit is set to "0" and
when receiving a remote frame, this bit is set to "1".
Note 3: One slot cannot be defined as reception slot and transmission slot at the same time.
Note 4: This register can not be set in CAN reset/initialization mode of the CAN module.
Figure 16.6 C0MCTLi Register
Rev.1.00 Oct 20, 2004 page 136 of 222
REJ09B0007-0100Z