Memory Map/Register Definition
MCF548x Reference Manual, Rev. 3
Freescale Semiconductor 21-15
to zero and counts in a manner where the internal counter counts 11 such bits, then wraps around
while incrementing the TXECTR. When TXECTR reaches the value of 128, the FLTCONF field
in the error and status register is updated to be error-active, and both error counters are reset to zero.
At any instance of dominant bit following a stream of less than 11 consecutive recessive bits, the
internal counter resets itself to zero without affecting the TXECTR value.
If during system start-up, only one node is operating, then its TXECTR increases in each message
it is trying to transmit, as a result of acknowledge errors (indicated by the ACKERR bit in the error
and status register). After the transition to error-passive state, the TXECTR does not increment
anymore by acknowledge errors. Therefore the device never goes to the bus off state.
If the RXECTR increases to a value greater than 127, it is not incremented further, even if more
errors are detected while being a receiver. At the next successful message reception, the counter is
set to a value between 119 and 127 to resume to error-active state.

21.3.2.6 FlexCAN Error and Status Register (ERRSTAT)

ERRSTAT reflects various error conditions, some general status of the device, and is the source of three
interrupts to the host. The reported error conditions (bits 15:10) are those occurred since the last time the
host read this register. The read action clears bits 15-10. Bits 9–3 are status bits.
Most bits in this register are read only, except for BOFFINT, WAKINT, and ERRINT, which are interrupt
sources that can be cleared by writing 1 to them. Writing 0 has no effect. Refer to Section 21.5.1,
“Interrupts.”
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
R0000000000000000
W
Reset0000000000000000
1514131211109876543210
R RXECTR TXECTR
W
Reset0000000000000000
Reg
Addr
MBAR + 0xA01C (ERRCNT0); 0xA81C (ERRCNT1)
Figure 21-10. FlexCAN Error Counter Register (ERRCNT)