
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
TwinCAN Module
User’s Manual
21-49
V2.2, 2004-01
TwinCAN_X1, V2.1
21.2.2
CAN Node A/B Registers
The Node Control Register controls the initialization, defines the node specific interrupt
handling and selects an operation mode.
ACR
Node A Control Register
Reset Value: 0001
H
BCR
Node B Control Register
Reset Value: 0001
H
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
CAL
M
CCE
0
LEC
IE
EIE
SIE
0
INIT
r
rw
rw
r
rw
rw
rw
r
rwh
Field
Bits
Type Description
INIT
0
rwh
Initialization
0
Resetting bit INIT starts the synchronization to
the CAN bus. After a synchronization
procedure
1)
, the node takes part in CAN
communication.
1
After setting bit INIT, the CAN node stops all CAN
bus activities and all registers can be initialized
without any impact on the actual CAN bus traffic.
Bit INIT is automatically set when the bus-off
state is entered.
SIE
2
rw
Status Change Interrupt Enable
A status change interrupt occurs when a message
transfer (indicated by the flags TXOK or RXOK in the
status registers ASR or BSR) is successfully
completed.
0
Status change interrupt is disabled.
1
Status change interrupt is enabled.
EIE
3
rw
Error Interrupt Enable
An error interrupt is generated on a change of bit BOFF
or bit EWRN in the status registers ASR or BSR.
0
Error interrupt is disabled.
1
Error interrupt is enabled.