Figure 819. j1850 status (j_stat) register (conti, 4 programming the j1850 status (j_stat) regist, Programming the j1850 status (j_stat) register -21 – Intel 8XC196Lx User Manual
Page 87: J1850 status (j_stat) register -21

8-21
J1850 COMMUNICATIONS CONTROLLER
8.6.4
Programming the J1850 Status (J_STAT) Register
The J1850 status register (Figure 8-19) provides the current status of the message and the four
interrupt sources associated with the J1850 protocol.
J_STAT
Address:
Reset State:
1F53H
00H
The J1850 status (J_STAT) register provides the current status of the message transfer, the receive
and transmit buffers, and the four interrupt sources associated with the J1850 protocol. This byte
register can be directly addressed through
windowing. You must write to this register before
transmitting each message. Reading this register clears all bits except BUS_STAT.
7
0
IFR_RCV
BUS_CONT
BUS_STAT
BRK_RCV
OVR_UNDR
MSG_TX
MSG_RX
J1850BE
Bit
Number
Bit
Mnemonic
Function
7
IFR_RCV
In-frame Response Received
This bit indicates whether the IFR byte has been received and is ready to
be read from the J1850 receiver (J_RX) register.
0 = no action
1 = IFR byte received
6
BUS_CONT
J1850 Bus Contention
This bit indicates whether bus contention has been detected and arbitration
has been lost.
0 = no action
1 = bus contention
5
BUS_STAT
J1850 Bus Status
This bit indicates whether a transmission or reception is in progress on the
J1850 bus.
0 = J1850 bus idle
1 = J1850 bus busy
4
BRK_RCV
Break Received
This bit indicates whether a BRK symbol has been detected on the J1850
bus.
0 = no action
1 = BRK symbol detected
3
OVR_UNDR
Receive Overrun/Transmit Underflow Interrupt
This bit indicates whether a receive buffer overrun (OVR) or transmit buffer
underflow (UNDR) has occurred. An overrun occurs when a symbol is
received while both J_RX and JRX_BUF contain unread bytes. An
underflow occurs when a transmission is attempted while both J_TX and
JTX_BUF are empty.
0 = normal operation
1 = OVR or UNDR detected
Figure 8-19. J1850 Status (J_STAT) Register