CHAPTER 11 FCAN CONTROLLER
601
User’s Manual U14492EJ3V0UD
11.11 Operations
11.11.1 Initialization processing
Figure 11-26 shows a flowchart of initialization processing. The register setting flow is shown in Figures 11-27 to
11-36.
Figure 11-26. Initialization Processing
START
Set CAN main clock selection register
(CGCS)
: See
Figure 11-27 CAN Main Clock Selection Register (CGCS) Settings
: See
Figure 11-28 CAN Global Interrupt Enable Register (CGIE) Settings
: See
Figure 11-29 CAN Global Status Register (CGST) Settings
: See
Figure 11-30 CAN1 Bit Rate Prescaler Register (C1BRP) Settings
: See
Figure 11-31 CAN1 Synchronization Control Register (C1SYNC) Settings
: See
Figure 11-32 CAN1 Interrupt Enable Register (C1IE) Settings
: See
Figure 11-33 CAN1 Definition Register (C1DEF) Settings
: See
Figure 11-34 CAN1 Control Register (C1CTRL) Settings
: See
Figure 11-35 CAN1 Address Mask a Registers L and H
(C1MASKLa and C1MASKHa) (a = 0 to 3) Settings
: See
Figure 11-36 Message Buffer Settings
Set CAN global interrupt enable register
(CGIE)
Set CAN global status register
(CGST)
Set CAN1 bit rate prescaler
(C1BRP)
set INIT = 1 (C1CTRL)
Set CAN1 synchronization control register (C1SYNC)
Set CAN1 interrupt enable register
(C1IE)
Set CAN1 definition register (C1DEF)
Set CAN1 control register (C1CTRL)
Mask required for
message ID?
Set message buffer (repeat
as many times as number of messages)
clear INIT = 1 (C1CTRL)
ISTAT = 0?
(C1CTRL)
END
Yes
Yes
Yes
No
No
No
ISTAT = 1?
(C1CTRL)
Set mask (C1MASKa)
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...