8XC196LX SUPPLEMENT

J_TX

Address:

1F50H

 

Reset State:

00H

The J1850 transmitter (J_TX) register transfers data in byte increments to the J1850 bus from the microcontroller CPU. This register is buffered to allow for transmission of a second data byte while the first data byte is being shifted out. This byte register can be read or written, and is addressable through windowing.

7

 

0

 

 

Transmit Byte

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

7:0

DB7:0

Data Bits

 

 

These eight bits compose the data byte to be transmitted to the J1850 bus.

 

 

 

Figure 8-12. J1850 Transmitter (J_TX) Register

Transmitting the message requires that you first program the J1850 command (J_CMD) register to specify the number of bytes you want to transfer across the J1850 bus. The number of bytes specified must include the header byte(s). After the start of frame (SOF) symbol is put on the bus, the first header byte is transferred to J_TX for transmission. This byte will automatically be trans- ferred into the J1850 transmit buffer (JTX_BUF) and the second byte of the message frame will be written to J_TX. The transfer of the first byte to JTX_BUF triggers the transmission process and generates the J1850 transmission (J1850TX) interrupt (if it is enabled), signaling that J_TX is available for another byte (Figure 8-13).

CPU

J_TX

JTX_BUF

Message transmit interrupt (J1850TX) set

J1850 Bus

A5235-01

Figure 8-13. J1850 Transmit Message Structure

After the byte in JTX_BUF is transmitted, the byte residing in J_TX is automatically shifted into JTX_BUF, freeing J_TX for another byte. This process continues until the CSM has resolved the number of message bytes (MSG3:0) programmed into the J_CMD register.

If the last message byte being transmitted is shifted out before the MSGx count expires, a J1850ST core interrupt is generated and the OVR_UNDR (J_STAT.3) bit records a transmitter underflow error in the J_STAT register.

8-14

Page 80
Image 80
Intel 8XC196Jx, 8XC196Lx, 8XC196Kx, 87C196CA user manual Transmit Byte, CPU JTX Jtxbuf