ST72561J6 STMicroelectronics, ST72561J6 Datasheet - Page 182

no-image

ST72561J6

Manufacturer Part Number
ST72561J6
Description
8-BIT MCU WITH FLASH OR ROM, 10-BIT ADC, 5 TIMERS, SPI, LINSCI(TM), ACTIVE CAN
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72561J6

Hdflash Endurance
100 cycles, data retention 40 years at 85°C
5 Power Saving Modes
Halt, Auto Wake Up From Halt, Active Halt, Wait and Slow
ST72561
beCAN CONTROLLER (Cont’d)
Figure 104. CAN Error State Diagram
10.9.4.5 Error Management
The error management as described in the CAN
protocol is handled entirely by hardware using a
Transmit Error Counter (TECR register) and a Re-
ceive Error Counter (RECR register), which get in-
cremented or decremented according to the error
condition. For detailed information about TEC and
REC management, please refer to the CAN stand-
ard.
Both of them may be read by software to deter-
mine the stability of the network. Furthermore, the
CAN hardware provides detailed information on
the current error status in CESR register. By
means of CEIER register and ERRIE bit in CIER
register, the software can configure the interrupt
generation on error detection in a very flexible
way.
182/265
When 128 * 11 recessive bits occur:
ERROR ACTIVE
When TEC or REC > 127
When TEC and REC < 128,
BUS OFF
Bus-Off Recovery
The Bus-Off state is reached when TECR is great-
er then 255, this state is indicated by BOFF bit in
CESR register. In Bus-Off state, the beCAN acts
as disconnected from the CAN bus, hence it is no
longer able to transmit and receive messages.
Depending on the ABOM bit in the CMCR register
beCAN will recover from Bus-Off (become error
active again) either automatically or on software
request. But in both cases the beCAN has to wait
at least for the recovery sequence specified in the
CAN standard (128 x 11 consecutive recessive
bits monitored on CANRX).
If ABOM is set, the beCAN will start the recovering
sequence automatically after it has entered Bus-
Off state.
If ABOM is cleared, the software must initiate the
recovering sequence by requesting beCAN to en-
ter initialization mode. Then beCAN starts monitor-
ing the recovery sequence when the beCAN is re-
quested to leave the initialisation mode.
Note: In initialization mode, beCAN does not mon-
itor the CANRX signal, therefore it cannot com-
plete the recovery sequence. To recover, beCAN
must be in normal mode.
ERROR PASSIVE
When TEC > 255

Related parts for ST72561J6