NEC V850E/RS1 User Manual page 661

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

Caution:
Remark:
Downloaded from
Elcodis.com
electronic components distributor
Chapter 16 FCAN Controller
Figure 16-58: Re-initialization
START
Clear
OPMODE.
INIT mode?
Yes
Set
CnBRP register,
CnBTR register.
Set
CnIE register.
Set
CnMASK register.
After setting the CAN module to the initialization mode, avoid setting the module to
another operation mode immediately after. If it is necessary to immediately set the
module to another operation mode, be sure to access registers other than the CnC-
TRL and CnGMCTRL registers (e.g., set a message buffer).
OPMODE: Normal operation mode, normal operation mode with ABT, receive-only mode,
single-shot mode, self-test mode
User's Manual U16702EE3V2UD00
No
Initialize message buffers.
CnERC and
CnINFO
register clear?
Set CCERC bit.
Set CCERC = 1
Clear CCERC = 0
Set CnCTRL register.
(Set OPMODE)
END
No
Yes
661

Advertisement

Table of Contents
loading

Table of Contents