Mscan Transmitter Flag Register (Cantflg)—Mbar + 0X090C - Freescale Semiconductor MPC5200B User Manual

Freescale semiconductor board users guide
Table of Contents

Advertisement

Bit
Name
4:5
TSTATE[1:0]
6
OVRIE
7
RXFIE
Note: The MSCAN Receive Interrupt Enable Register is held in reset state when the initialization mode is active (INITRQ = 1
and INITAK = 1). This register is writable again as soon as the initialization mode is exited (INITRQ = 0 and INITAK = 0).
19.5.9
MSCAN Transmitter Flag Register (CANTFLG)—MBAR + 0x090C / 0x98C
R
W
RESET:
Bit
Name
0:4
5:7
TXE[2:0]
Note: This register is held in the reset state when the initialization mode is active (INITRQ = 1 and INITAK = 1). This register is
writable again as soon as the initialization mode is exited (INITRQ = 0 and INITAK = 0).
Note: To insure data integrity, do not write to Tx buffer registers while the TXE flag is cleared
Read: Anytime
Write: Anytime for TXEx flags when not in Initialization Mode; write of "1" clears flag, write of '0' is ignored.
Freescale Semiconductor
Transmitter Status Change Enable—bits control sensitivity level in which Tx state changes
cause CSCIF interrupts. Independent of the chosen sensitivity level, TSTATE flags still
indicate the actual Tx state and are only updated if no CSCIF interrupt is pending.
00 = Do not generate CSCIF interrupt caused by Tx state changes.
01 = Generate CSCIF interrupt only if transmitter enters or leaves "BusOff" state.
Discard other Tx state changes for generating CSCIF interrupt.
10 = Generate CSCIF interrupt only if transmitter enters or leaves "TxErr" or "BusOff"
state. Discard other Tx state changes for generating CSCIF interrupt.
11 = Generate CSCIF interrupt on all Tx state changes.
Overrun Interrupt Enable
0 = No interrupt request is generated from this event.
1 = An overrun event causes an overrun interrupt request
Receiver Full Interrupt Enable
0 = No interrupt request is generated from this event
1 = Rx buffer full (successful message reception) event causes Rx full interrupt request
Table 19-12. MSCAN Transmitter Flag Register
msb 0
1
2
Reserved
0
0
0
Reserved
Transmitter Buffer Empty—flag indicates the associated Tx message buffer is empty, and
thus not scheduled for transmission. CPU must clear the flag after a message is set up in
the Tx buffer and is due for transmission. MSCAN sets flag after message is successfully
sent. Flag is also set by MSCAN when Tx request is successfully aborted due to a pending
abort request. If not masked, a Tx interrupt is pending while this flag is set.
Clearing a TxEx flag also clears the corresponding ABTAKx. When a TxEx flag is set, the
corresponding ABTRQx bit is cleared. When listen-mode is active TxEx flags cannot be
cleared and no transmission is started.
0 = associated message buffer full (loaded with message due for Tx)
1 = associated message buffer empty (not scheduled)
MPC5200B Users Guide, Rev. 1
Memory Map / Register Definition
Description
3
4
5
6
TXE[2:0]
0
0
1
1
Description
7 lsb
1
19-13

Advertisement

Table of Contents
loading

Table of Contents