Can Sfr Registers - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

17.1.3 CAN SFR Registers

17.1.3.1 C0MCTLj Register (j = 0 to 15)
Figure 17.6 shows the C0MCTLj register.
CAN0 message control register j ( j = 0 to 15)
b7
b6
b5
b4
NOTES:
1. As for write, only writing 0 is possible. The value of each bit is written when the CAN module enters the respective state.
2. In Basic CAN mode, the slots 14 and 15 serve as data format identification flag. If the data frame is received, the RemActive
bit is set to 0. If the remote frame is received, the bit is set to 1.
3. One slot cannot be defined as reception slot and transmission slot at the same time.
4. Set these registers only when the CAN module is in CAN operating mode.
Figure 17.6 C0MCTLj Register
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
b3
b2
b1
b0
Symbol
C0MCTL0 to C0MCTL15
Bit Symbol
NewData
SentData
InvalData
TrmActive
MsgLost
RemActive
RspLock
Remote
RecReq
TrmReq
page 292
f o
4
5
8
(4)
Address
0200
to 020F
16
Bit Name
When set to reception slot
Successful
0: The content of the slot is read or still under
reception flag
processing by the CPU
1 The CAN module has stored new data in the slot
When set to transmission slot
Successful
0: Transmission is not started or completed yet
transmission flag
1: Transmission is successfully completed
When set to reception slot
"Under reception"
0: The message is valid
1: The message is invalid
flag
(The message is being updated)
When set to transmission slot
"Under
0: Waiting for bus idle or completion of arbitration
transmission" flag
1: Transmitting
When set to reception slot
0: No message has been overwritten in this slot
Overwrite flag
1: This slot already contained a message, but it has
been overwritten by a new one
Remote frame
0: Data frame transmission/reception status
transmission/
1: Remote frame automatic transfer status
reception status
(2)
flag
When set to reception remote frame slot
0: After a remote frame is received, it will be
Auto response
answered automatically
lock mode select
1: After a remote frame is received, no transmission
bit
will be started as long as this bit is set to 1
(Not responding)
Remote frame
0: Slot not corresponding to remote frame
corresponding
1: Slot corresponding to remote frame
slot select bit
Reception slot
0: Not reception slot
(3)
request bit
1: Reception slot
Transmission
0: Not transmission slot
(3)
slot request bit
1: Transmission slot
After Reset
00
16
16
Function
17. CAN Module
RW
RO
(1)
RO
(1)
RO
RO
RO
(1)
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

Table of Contents