The Society of Automotive Engineers (SAE) has adopted a specification known as J1850 “Class B Data Communications Network Interface.” This specification describes two forms of a multiplex bus structure intended for use in a vehicle. The two forms of this multiplex bus are known as Pulse Width Modulation (PWM) and Variable Pulse Width (VPW). The AVT-921 Dual Interface implements both versions of the J1850 standard (simultaneous operations are not permitted).
The AVT-921 Dual Interface provides the following functions:
When in VPW mode of operation the AVT-921 permits both transmit and receive operations at 4 times the normal speed (4X mode). This mode of operation is not supported by the J1850 specification. 4X mode may be required to be compatible with General Motors’ Class 2 system.
Connecting the AVT-921 to the subject vehicle is easily accomplished via an OBD-II compatible cable (available separately). One end of the cable mates with the DA-15 connector on the AVT-921. The other end mates to the vehicle OBD-II connector. No other connections are required. The cable may be connected or disconnected at will without affecting the host computer.
No other connections or installation is required.
A block diagram of the AVT-921 Dual Interface board is shown in Figure 1. The heart of the unit is the HIP7030A0 microcontroller. This device utilizes a 68HC05 core with a bus speed of 5 MHz. The operational firmware is contained in an EPROM that is organized into two code sections. One code section is for VPW operations only while the other code section is for PWM operations only.
Other AVT-921 functional blocks include two FIFO’s, a PWM interface, a VPW interface, a bus multiplexer, electrical isolation of the host computer from the vehicle, and two hardware control/status registers. VPW mode operations utilize the Motorola MC68HC57 Data Link Controller (DLC-S) which includes the VPW bus transceiver function. PWM mode operations utilize the Motorola HBCC device and a Ford Motor Company PWM bus transceiver design.
The two FIFO’s on the AVT-921 are configured as a set of bi-directional mail boxes for message passing between the microcontroller and the host computer. Each FIFO is 4 KBytes deep and fully asynchronous. They facilitate communications between the host and the microcontroller while minimizing the risk of lost data and eliminating the requirement for real-time response from the host.
The electrical isolation barrier is depicted on the block diagram. The
AVT-921 Dual Interface derives its operating power (+5 VDC and +12 VDC)
from the host computer. Additionally, a connection exists between the AVT-921
and the subject vehicle unswitched battery positive (VBATT).
This supply is diode isolated and electrically isolated from the host +12
VDC supply. This arrangement permits
normal AVT-921 operations even when not connected to a subject vehicle.
When the AVT-921 is connected to a vehicle the VBATT connection
provides a common positive supply for all network nodes.
Selecting the mode of operation for the AVT-921 is accomplished through software commands on the host computer. These commands result in writing appropriate values (via the ISA bus) into hardware control register #2 on the AVT-921 board. Bits in this register control the reset line, memory paging, and other functions.
The AVT-921 is mapped into the memory space (not I/O space) of the host computer. The base address of the AVT-921 board is determined by the setting of two 8-bit DIP switches. All communications between the host and the AVT-921 are via the ISA bus.
The structure and protocol of communications between the AVT-921 and the host computer are such that all data is transferred in packets. The size of each data packet varies from 1 byte to 16 bytes (inclusive). The first byte in each data packet is the header byte and is used to convey information only between the AVT-921 Dual Interface board and the host computer.
The header byte is divided into the upper nibble and lower nibble. The upper nibble indicates what information the data packet is conveying. The lower nibble is the count of the number of bytes that follow the header byte. The meaning of the upper nibble of the header byte depends on which direction the data packet is moving; whether to or from the host computer.
Messages from the host computer to the AVT-921 are known as Commands. Messages from the AVT-921 to the host computer are known as Responses. The following are excerpts from the User’s Manual. Please consult the latest revision manual for up-to-date information.
Figure 1 AVT-921 Unit Block Diagram
Command Header Byte
This byte is prepended onto a packet transmitted by the control computer
to the AVT-921 Dual Interface board.
Low nibble, bits b3 - b0: Byte count (how many bytes to follow); may
be zero when the message is only a status or error message.
High nibble, bits b7 - b4 (undefined or reserved values are not listed):
This byte is prepended onto a packet transmitted by the AVT-921 Dual
Interface board to the control computer.
Low nibble, bits b3 - b0: Byte count (how many bytes to follow); may
be zero when the message is only a status or error message.
High nibble, bits b7 - b4 (undefined or reserved values are not listed):
The received message status byte always follows the header byte, even if the status byte is the result of transmitting a message.
Example #1: Want to request the current operational mode.
Command: D0.
Explanation: The HIU will respond with: 91 07. The ‘9’ indicates a board response, the ‘1’ indicates one byte follows, and the 07 indicates VPW mode (using the DLC-S device).
Example #2: Want to send a message out on the bus.
Command: 04 32 89 AC 5F.
The 04 indicates the packet is destined for the bus, as a message, with four bytes to follow. The AVT-921 will respond with: 01 60. The ‘0’ indicates a received message and the ‘1’ indicates only one byte, which is the received message status byte. The ‘60’ indicates that bits 6 and 5 are set which means the received message was from this device and the transmission was successful. (Messages transmitted by the AVT-921 are received by the AVT-921, are checked, but are not echoed back to the controller. Only a status byte is passed to the controller to indicate the status of the transmitted message.)
The engineering staff at AVT, Inc. has combined experience on a number of multiplex bus standards including: J1850 VPW and PWM and ISO-9141 and 9141-2. Members of the staff are available to provide assistance on the use of any of AVT’s products.
AVT engineering staff members are available to provide dedicated engineering support for a customer project. Through a simple contractual arrangement, a customer is able to ‘tap’ into AVT’s knowledge and experience base.
Information on any of the products or engineering support that Advanced
Vehicle Technologies can provide is available by calling, faxing, or writing.