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.

condition is detected, the PIC® MCU performs a re-initialization of the MCP2515 and then<br />

attempts to transmit the error message (ID = 0x3FF) with an error code of 0x12. After initiating<br />

a request to send for the error message, the PIC® MCU checks to ensure that the message was<br />

transmitted successfully. If it was successfully transmitted, the PIC® MCU sets an internal flag<br />

to indicate that a Bus-Off condition occurred and then resumes normal operation. If the error<br />

message fails to transmit correctly, of if the Bus-Off condition is detected a second time, the<br />

PIC® MCU automatically enters an Idle loop and remains there until a system Reset occurs via<br />

power-on.<br />

5.3.21 Verification of CAN Module<br />

To verify the proper operation of the synthesizable CAN Controller, five test cases<br />

were executed: Synchronization (test_synchronization), Bus Off (bus_off_test), Error Test<br />

(error_test), Send Basic Frame Test (send_frame_basic), and Send Extended Frame Test<br />

(send_frame_extended). All tests were compiled and simulated using Altera Quartus II 9.1 (32-<br />

bit) and ModelSim Altera Starter Edition 6.6c software on a PC executing Windows XP Service<br />

Pack 3. All tests were performed extensively while trying to cover all possible combinations of<br />

data and I/O values for the CAN Controller. Only a few failures (most were attributed to the<br />

addition and removal of nodes while tests were being conducted) were observed for any of the<br />

five tests described below. The source code for all modules, testbench code, and simulation<br />

results are located on the DVD included with this work. Table 5.19 shows the FPGA resource<br />

utilization for the Altera DE2 Development and Education Board.<br />

181

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

Saved successfully!

Ooh no, something went wrong!