15.08.2013 Views

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

system configuration used for this test. In addition two CAN nodes are utilized, whose<br />

addresses are set to 1 and 2, respectively. The custom interface on the FPGA handles all<br />

conversions from CAN messages to 1 – Wire® commands. Each CAN node is<br />

automatically performing an A/D conversion (voltage divider circuit from a potentiometer)<br />

approximately every 500 ms and transmitting this data on the CAN bus to the DS1996 1 –<br />

Wire® devices. In addition to the data byte containing the A/D conversion result, both CAN<br />

nodes are programmed to also send an I/O status byte, which includes the status of both the<br />

Digital Inputs and Digital Outputs. So to summarize, approximately every 500 ms, eight data<br />

bytes are being transmitted on the CAN bus to the DS1996 1 – Wire® devices. Two of these<br />

data bytes represent the transmitting node number and the other two represent the A/D<br />

conversion result and Digital I/O status bytes, respectively (i.e., node number + A/D conversion<br />

result and node number + Digital I/O status). The results of this test are presented in Table 6.2.<br />

Table 6.2 Test Results.<br />

1 – Wire®<br />

Devices<br />

Type #<br />

# of CAN<br />

Nodes<br />

CAN Bus<br />

Speed (kbps)<br />

1 – Wire® Bus<br />

Speed (kbps)<br />

Hot-Swapped<br />

(1 – Wire®)<br />

Length of Test<br />

(min)<br />

Failures<br />

DS1996 3 2 10 14 Yes 60 No<br />

DS1996 3 2 10 140 Yes 18 Yes 1<br />

DS1996 3 2 125 14 Yes 60 No<br />

DS1996 3 2 125 140 Yes 14 Yes 1<br />

1<br />

This failure resulted in loss of messages to 1 – Wire® devices from the CAN bus.<br />

From Table 6.2, lost CAN bus messages are noted when running the 1 – Wire® bus in<br />

overdrive speed. After many hours of repeating these two tests and many lines of debug code, it<br />

was found that if a CAN bus message came in while running the 1 – Wire® bus in overdrive<br />

and the devices were not all operating in overdrive speed yet, the present CAN bus message<br />

was dropped. Although, technically this is not a failure in the sense of a catastrophic event, it is<br />

200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!