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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

closed. The MCP2515 also has two I/O pins ( RX0BF and RX1BF ) that can be configured as<br />

general purpose outputs. These pins are configured as outputs, and are connected to LEDs to<br />

function as indicator lights that are controlled via the CAN bus.<br />

The CAN bus is configured to run at two distinct speeds; 10 kbps and 125 kbps. These<br />

two speeds were chosen since they most closely mimic the speeds capable of 1 – Wire®<br />

networks. The clock source for the MCP2515 is a standard, 8 MHz crystal connected to the<br />

OSC1 and OSC2 inputs. The CAN physical layer is implemented using an industry standard<br />

transceiver chip (e.g., Microchip MCP2551 [45]). This device supports CAN bus rates of up<br />

to 1 Mbps and is more than adequate for the CAN node system presented here.<br />

5.3.20.1 Firmware Description<br />

The firmware is written in PIC® Microcontroller (MCU) assembly code. The relative<br />

simplicity and small size of the CAN node system makes assembly language more than a<br />

suitable choice. Figure 5.33 shows the top level flowchart for the overall CAN node system<br />

operation. The PIC® MCU after going through self-initialization and initializing the MCP2515<br />

goes to sleep and waits for an interrupt to occur. The following sections provide a more detailed<br />

discussion of the operation of each of the major blocks in the firmware.<br />

171

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

Saved successfully!

Ooh no, something went wrong!