452
Chapter 13
FCAN Interface Function
Preliminary User’s Manual U14913EE1V0UM00
13.4.5 Initialisation
routines
Below the necessary steps for correct start-up of the CAN interface are explained.
Caution: It is very important that the software programmer observes the sequence given in the
following paragraphs. Otherwise unexpected operation of the CAN interface or any
CAN module can occur.
(1)
Global initialisation sequence for the CAN interface
Before any operation on the CAN memory can be done, it is essential that the common control reg-
ister are initialised. The general initialisation sequence is shown in Figure 13-46.
Figure 13-46: General Initialisation Sequence for the CAN Interface
Remark:
Enabling the global operation does not automatically enable any CAN module. Each CAN
module must be initialised and enabled separately.
INIT GLOBAL
REGISTERS
Set the common registers:
- CGST (but do not set
GOM flag!)
- CGCS
- CGIE
- CGTSC
- CGTEN
Enable global operation
(set GOM flag of register
CGST)
END
Clear all message buffers
(set at least MA[2:0] of
each message buffer to 0)
Содержание V850E/CA1 ATOMIC
Страница 6: ...6 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 52: ...52 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 144: ...144 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 162: ...162 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 224: ...224 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 308: ...308 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 512: ...512 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 564: ...564 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 566: ...566 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 584: ...584 Preliminary User s Manual U14913EE1V0UM00 MEMO ...