Cann Control Register (Cnctrl) - NEC Renesas V850/SC1 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for Renesas V850/SC1:
Table of Contents

Advertisement

19.5.19 CANn control register (CnCTRL)

The CnCTRL register is used to control the operation of the CAN module.
This register can be read/written in 16-bit units.
The C2CTRL register is valid only in models µ PD703089Y and 70F3089Y.
Cautions 1. Both bitwise writing and direct writing to the CnCTRL register are prohibited. Attempts to
write directly to this register may result in operation faults, so be sure to follow the sequence
described in 19.6 Cautions Regarding Bit Set/Clear Function.
2. When writing to the CnCTRL register, set or clear bits according to the register configuration
shown in part (b) Write of the following figure.
3. When canceling CAN stop mode, CAN sleep mode must be cancelled at the same time.
After reset: 0101H
(a) Read
15
CnCTRL
TECS1
(n = 1, 2)
7
0
(b) Write
15
CnCTRL
0
(n = 1, 2)
7
0
(a) Read
TECS1
0
0
1
1
RECS1
0
0
1
1
BOFF
0
1
608
CHAPTER 19
FCAN CONTROLLER (V850/SC3)
R/W
Addresses: C1CTRL: xx3FFC50H
14
13
12
TECS0
RECS1
RECS0
6
5
4
DLEVR
DLEVT
OVM
14
13
12
set DLEVR set DLEVT set OVM
6
5
4
clear DLEVR clear DLEVT clear OVM clear TMR clear STOP clear SLEEP clear INIT
TECS0
0
Transmit error counter value < 96
1
Transmit error counter value = 96 to 127 (warning level)
0
Not used
Transmit error counter value ≥ 128 (error passive)
1
RECS0
0
Receive error counter value < 96
1
Receive error counter value = 96 to 127 (warning level)
0
Not used
Receive error counter value ≥ 128 (error passive)
1
Transmit error counter value < 256 (not bus off status)
Transmit error counter value ≥ 256 (bus off status)
User's Manual U15109EJ3V0UD
C2CTRL: xx3FFC90H
11
10
BOFF
TSTAT
RSTAT
3
2
TMR
STOP
11
10
set TMR
set STOP set SLEEP
3
2
Status of transmit error counter
Status of receive error counter
Bus off status flag
(1/4)
9
8
ISTAT
1
0
SLEEP
INIT
9
8
set INIT
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents