Chapter 16 Freescale’s Scalable Controller Area Network (S12MSCANV3)
MC9S12XE-Family Reference Manual Rev. 1.19
Freescale Semiconductor
617
16.3.2.7
MSCAN Transmitter Flag Register (CANTFLG)
The transmit buffer empty flags each have an associated interrupt enable bit in the CANTIER register.
Table 16-11. CANRIER Register Field Descriptions
Field
Description
7
WUPIE
(1)
1. WUPIE and WUPE (see
Section 16.3.2.1, “MSCAN Control Register 0 (CANCTL0)
”) must both be enabled if the recovery
mechanism from stop or wait is required.
Wake-Up Interrupt Enable
0
No interrupt request is generated from this event.
1
A wake-up event causes a Wake-Up interrupt request.
6
CSCIE
CAN Status Change Interrupt Enable
0
No interrupt request is generated from this event.
1
A CAN Status Change event causes an error interrupt request.
5:4
RSTATE[1:0]
Receiver Status Change Enable
— These RSTAT enable bits control the sensitivity level in which receiver state
changes are causing CSCIF interrupts. Independent of the chosen sensitivity level the RSTAT flags continue to
indicate the actual receiver state and are only updated if no CSCIF interrupt is pending.
00 Do not generate any CSCIF interrupt caused by receiver state changes.
01 Generate CSCIF interrupt only if the receiver enters or leaves “bus-off” state. Discard other receiver state
changes for generating CSCIF interrupt.
10 Generate CSCIF interrupt only if the receiver enters or leaves “RxErr” or “bus-off”
(2)
state. Discard other
receiver state changes for generating CSCIF interrupt.
11 Generate CSCIF interrupt on all state changes.
2. Bus-off state is defined by the CAN standard (see Bosch CAN 2.0A/B protocol specification: for only transmitters. Because the
only possible state change for the transmitter from bus-off to TxOK also forces the receiver to skip its current state to RxOK,
the coding of the RXSTAT[1:0] flags define an additional bus-off state for the receiver (see
Section 16.3.2.5, “MSCAN Receiver
3:2
TSTATE[1:0]
Transmitter Status Change Enable
— These TSTAT enable bits control the sensitivity level in which transmitter
state changes are causing CSCIF interrupts. Independent of the chosen sensitivity level, the TSTAT flags
continue to indicate the actual transmitter state and are only updated if no CSCIF interrupt is pending.
00 Do not generate any CSCIF interrupt caused by transmitter state changes.
01 Generate CSCIF interrupt only if the transmitter enters or leaves “bus-off” state. Discard other transmitter
state changes for generating CSCIF interrupt.
10 Generate CSCIF interrupt only if the transmitter enters or leaves “TxErr” or “bus-off” state. Discard other
transmitter state changes for generating CSCIF interrupt.
11 Generate CSCIF interrupt on all state changes.
1
OVRIE
Overrun Interrupt Enable
0
No interrupt request is generated from this event.
1
An overrun event causes an error interrupt request.
0
RXFIE
Receiver Full Interrupt Enable
0
No interrupt request is generated from this event.
1
A receive buffer full (successful message reception) event causes a receiver interrupt request.
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:
S12XE
products
in
208
MAPBGA
packages