515
Chapter 14
FCAN Interface Function
Preliminary User’s Manual U15839EE1V0UM00
14.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
register are initialised. The general initialisation sequence is shown in Figure 14-46.
Figure 14-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)
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......