ADVANCED VEHICLE TECHNOLOGIES, Inc.
AVT-921 Dual J1850 INTERFACE
(VPW and PWM)
ISA Bus Unit Technical Summary

INTRODUCTION

The AVT-921 Dual J1850 Interface is a printed circuit board that implements both VPW and PWM versions of SAE specification J1850. The board is designed to be installed in a PC-AT or compatible host computer. The AVT-921 permits the user to directly connect the host PC to a vehicle for the purposes of testing, monitoring, data acquisition, and other operations.

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:

The AVT-921 conforms to the Ford Motor Company Standard Corporate Protocol (SCP) which defines network traffic management, message construction, and other protocol issues. (The SCP specifies operations in PWM mode.) The AVT-921 is fully compatible with any similarly equipped Ford Motor Company or Mazda product.

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.

Installation and Connections

The AVT-921 is easily installed in the host computer and occupies one 8-bit ISA slot. The board height follows the XT form factor and is a 3/4 length board. The base or segment address of the board must be set prior to installation. There are no other installation requirements.

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.

Hardware Configuration

The AVT-921 Dual Interface board is mapped into the memory space of the host computer. (It is not mapped into host I/O space.) The Interface board occupies only 16 bytes of memory space (of which only 3 bytes are used). The base or segment address of the AVT-921 Dual Interface board is selected by setting 16 on-board DIP switches. Any address in the first one megabyte of host memory space can be selected. It not recommended that an address within the first 640 KBytes be selected (this space is ‘holy’ to DOS). It is recommended that the board be set in the memory space reserved for a system monochrome display as this space is usually empty in most modern machines.

Specifications and Requirements

AVT-921 Hardware

The AVT-921 Dual J1850 Interface board is a four layer printed circuit board designed to be installed in a PC-AT or compatible host computer. The board occupies one 8-bit ISA slot connection to the host. Through this connection the AVT-921 receives +5 and +12 VDC power from the host. Communications between the board and the host are also accomplished through this connection. The AVT-921 Dual Interface board also has a 15 pin subminiature ‘D’ connector which is accessible from the host computer rear panel. Through this connector the AVT-921 is connected (via an appropriate cable assembly) to a subject vehicle’s OBD-II connector.

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.

AVT-921 Operation

The AVT-921 Dual Interface performs all data and protocol conversion functions permitting communications between the host and the subject vehicle. Communications between the AVT-921 and the subject vehicle are in conformance with SAE Standard J1850 and related standards and recommended practices. When in the PWM mode of operation, the AVT-921 is compliant with the Ford SCP. When in the VPW mode the unit is also capable of both transmit and receive operations at 4 times the normal speed (VPW 4x mode).

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.

ISA Bus Memory Map

Undisplayed Graphic

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):

Response Header Byte

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):

Received Message Status Byte Definitions

The received message status byte always follows the header byte, even if the status byte is the result of transmitting a message.

Examples

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.)

Company Overview

Advanced Vehicle Technologies, Inc. is dedicated to providing affordable hardware, software, and technical support to the developers and users of vehicle based multiplex networks. We offer other vehicle multiplex bus products including the AVT-1850 A J1850 VPW Development System and the AVT-715 Dual J1850 Interface (an RS-232 / RS-422 unit utilizing the Harris VPW chipset). Contact the factory for information on these products and our latest offerings.

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.


Site Map