Renesas M16C Laptop User Manual


 
Rev.1.10 Jul 01, 2005 page 209 of 318
REJ09B0124-0110
M16C/6N Group (M16C/6NK, M16C/6NM) 18. CAN Module
Under development
This document is under development and its contents are subject to change.
Figure 18.8 C0STR and C1STR Registers
(b15) (b8)
b7 b6 b5 b4 b3 b2 b1 b0
Reset State Flag
Loop Back
State Flag
Message Order
State Flag
Basic CAN Mode
State Flag
Bus Error
State Flag
Error Passive
State Flag
Error Bus Off
State Flag
0: Operation mode
1: Reset mode
0:Word access
1: Byte access
0: Not Basic CAN mode
1: Basic CAN mode
0: No error has occurred.
1: A CAN bus error has occurred.
0: Not Loop back mode
1: Loop back mode
0: CAN module is not in error passive state.
1: CAN module is in error passive state.
0: CAN module is not in error bus off state.
1: CAN module is in error bus off state.
Nothing is assigned. When write, set to "0".
When read, its content is indeterminate.
RO
RO
RO
RO
RO
RO
RO
-
CANi Status Register (i = 0, 1)
NOTE:
1. These bits can be changed only when a slot which an interrupt is enabled by the CiICR register is transmitted or received
successfully.
b7 b6 b5 b4 b3 b2 b1 b0
Active Slot Bits
(1)
b3 b2 b1 b0
RO
RO
RO
RO
RO
Successful
Reception Flag
(1)
Transmission Flag
(Transmitter)
Reception Flag
(Receiver)
0 0 0 0 : Slot 0
0 0 0 1 : Slot 1
0 0 1 0 : Slot 2
.
.
.
1 1 1 0 : Slot 14
1 1 1 1 : Slot 15
0: No [successful] reception
1: CAN module received a message successfully.
0: CAN module is idle or receiver.
1: CAN module is transmitter.
0: CAN module is idle or transmitter.
1: CAN module is receiver.
Successful
Transmission
Flag
(1)
0: No [successful] transmission
1: The CAN module has transmitted a message
successfully.
State_Reset
State_
LoopBack
State_
MsgOrder
State_
BasicCAN
State_
BusError
State_
ErrPass
State_
BusOff
-
(b7)
MBOX
TrmSucc
RecSucc
TrmState
RecState
C0STR
C1STR
00h
00h
0212h
0232h
Symbol
Address After Reset
C0STR
C1STR
X0000001b
X0000001b
0213h
0233h
Symbol
Address After Reset
RWFunctionBit Symbol Bit Name
RWFunctionBit Symbol Bit Name