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.

Figure 5.32 CAN Node Block Diagram.<br />

Communication between the Control Logic block and the CAN Interface block makes<br />

use of the MCP2515 device’s built-in support for the SPI protocol. The PIC12CE674 does not<br />

have a hardware SPI interface, so the necessary functions are implemented in firmware.<br />

Two external analog signals are tied directly to the analog input pins of the PIC12CE674.<br />

An analog-to-digital (A/D) conversion is performed automatically for the Analog Channel 0<br />

(AN0) based upon the internal timer setup, and the value is automatically transmitted over the<br />

CAN bus when the conversion is completed.<br />

The nodes also utilize the MCP2515 device’s multiple filters to respond to six additional<br />

CAN Message Identifiers received via the CAN bus. The masks and filters are set to accept<br />

messages into Receive Buffer 1 only. The identifiers are interpreted as one of the following,<br />

depending upon which filter is matched:<br />

Read Analog Channel 1Perform A/D conversion for Analog Channel 1 (AN1) and<br />

initiate transmission of the value (ADRES) back to the requesting node.<br />

167

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

Saved successfully!

Ooh no, something went wrong!