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.

Table 3.4 Error Flag Output Timing [19].<br />

Type of Error Output Timing<br />

Bit Error The Error Flag is output beginning with the bit that immediately follows the<br />

Stuffing Error one in which an error was detected<br />

Form Error<br />

ACK Error<br />

CRC Error The Error Flag is output beginning with the bit immediately following the<br />

CRC field (ACK slot bit).<br />

3.5 Fault Confinement and Error States<br />

A major risk with any serial bus system is that a single defective node can shut down the<br />

entire network. To deal with this, the CAN protocol is designed to automatically detect a<br />

faulty node and disconnect it from the network. CAN requires two error counters for every<br />

node, one to keep track of transmit errors and the other to keep track of receive errors. When a<br />

transmission or reception error occurs, the respective counter is increased by a weighted value<br />

depending upon the type of error and which node caused the error. For every successful<br />

transmission or reception, the respective counter is decremented by one. Generally, if a node<br />

recognizes that it is the source of the error then the counter is incremented by nine for receive<br />

errors and eight for transmission errors. Otherwise, each counter is increased by one [18].<br />

Detected errors are made public to all other nodes via Error Frames or Error Flags. The<br />

transmission of an erroneous message is aborted and the frame is repeated as soon as the<br />

message can again win arbitration on the network. Also, each node is in one of three error states,<br />

Error-Active, Error-Passive or Bus-Off. Figure 3.10 shows a graphical representation of these<br />

three error states.<br />

62

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

Saved successfully!

Ooh no, something went wrong!