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.

To write data to the DS1996, the scratchpad has to be used as an intermediate storage<br />

area. First, the 1 – Wire® Master issues the Write Scratchpad command (0xF0) to specify the<br />

desired target address, followed by the data to be written to the scratchpad. In the next step, the<br />

1 – Wire® Master sends the Read Scratchpad command (0xAA) to read the scratchpad and to<br />

verify data integrity. As preamble to the scratchpad data, the DS1996 sends the requested target<br />

address TA1 and TA2 and the contents of the E/S register. If one of the flags <strong>OF</strong> or PF is set,<br />

data did not arrive correctly in the scratchpad. The master does not need to continue reading; it<br />

can start a new trial to write data to the scratchpad. Similarly, a set AA flag indicates that the<br />

Write command was not recognized by the DS1996. If everything works correctly, all three<br />

flags are cleared and the ending offset indicates the address of the last byte written to the<br />

scratchpad. Now the 1 – Wire® Master can continue verifying every data bit. After the 1 –<br />

Wire® Master has verified the data it has to send the Copy Scratchpad command (0x55). This<br />

command must be followed exactly by the data of the three address registers TA1, TA2, and E/S<br />

as the 1 – Wire® Master has read them verifying the scratchpad contents. As soon as the slave<br />

has received these bytes, it will copy the data to the requested location beginning at the target<br />

address. The communication between the 1 – Wire® Master and the DS1996 takes place either<br />

at regular speed or at overdrive speed. If not explicitly set into the Overdrive Mode, the DS1996<br />

assumes regular speed.<br />

6.2.1.2 Test Results – Transferring CAN data bytes to 1 – Wire® devices<br />

To conduct this test, three DS1996 1 – Wire® slaves are present on the 1 – Wire®<br />

network, providing a total of 196,608 bits (24,576 bytes) of memory. Figure 6.2 shows the<br />

199

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

Saved successfully!

Ooh no, something went wrong!