![Texas Instruments TMS320x281 series Скачать руководство пользователя страница 68](http://html1.mh-extra.com/html/texas-instruments/tms320x281-series/tms320x281-series_reference-manual_1095203068.webp)
3.1
CAN Module Initialization
Normal mode
(CCR = 0)
(CCE = 0)
Configuration mode requested
(CCR = 1)
(CCE = 0)
Wait for configuration mode
(CCR = 1)
(CCE = 0)
CCE = 0
Configuration mode active
(CCR = 1)
(CCE = 1)
Changing of bit timing
parameters enabled
Normal mode requested
(CCR = 0)
CCE = 1
Wait for normal mode
(CCR = 0)
(CCE = 1)
CCE = 1
Initialization complete
Normal mode
CAN Module Initialization
www.ti.com
The CAN module must be initialized before the utilization. Initialization is only possible if the module is in
initialization mode.
is a flow chart showing the process.
Programming CCR (CANMC.12) = 1 sets the initialization mode. The initialization can be performed only
when CCE (CANES.4) = 1. Afterwards, the configuration registers can be written.
SCC mode only:
In order to modify the global acceptance mask register (CANGAM) and the two local acceptance mask
registers [LAM(0) and LAM(3)], the CAN module also must be set in the initialization mode.
The module is activated again by programming CCR(CANMC.12) = 0.
After hardware reset, the initialization mode is active.
Note:
If the CANBTC register is programmed with a zero value, or left with the initial value, the
CAN module never leaves the initialization mode, i.e. CCE (CANES.4) bit remains at 1 when
clearing the CCR bit.
Figure 3-1. Initialization Sequence
Note:
The transition between initialization mode and normal mode and vice-versa is performed in
synchronization with the CAN network. That is, the CAN controller waits until it detects a bus
idle sequence (= 11 recessive bits) before it changes the mode. In the event of a
stuck-to-dominant bus error, the CAN controller cannot detect a bus-idle condition and
therefore is unable to perform a mode transition.
eCAN Configuration
68
SPRU074F – May 2002 – Revised January 2009