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.

Figure 5.18 CAN Status Register.<br />

BS: Bus Status. This bit is set to a ‘1’ (off-bus) by the CAN Module when the transmit<br />

error counter reaches 256. The CAN Module will then set the RR bit (CCNTRL<br />

Register) and will remain off-bus until the CPU clears RR again. At this point the<br />

CAN Module will wait for 128 successive occurrences of a sequence of 11 recessive<br />

bits before clearing the BS bit and resetting the read and write error counters. While in<br />

the off-bus state, the CAN Module does not take part in bus activities. A value of ‘0’<br />

means the CAN Module is operating normally.<br />

ES: Error Status. This bit is set automatically to a ‘1’ when either the read or the write<br />

error counter has reached the predefined CPU warning limit of 127. A value of ‘0’<br />

indicates that neither of the error counters has reached the predefined warning limit.<br />

TS: Transmit Status. The CAN Module will set this bit to a ‘1’ when it has started to<br />

transmit a message. If, in addition to this bit having a value of ‘0’, the Receive Status bit<br />

(RS) is also clear, then the CAN Module is idle; otherwise it is in receive mode.<br />

RS: Receive Status. This bit is set to a ‘1’ when the CAN Module has entered the<br />

receive mode from idle, or by losing arbitration during message transmission. If the<br />

Transmit Status bit (TS) is also clear, then the CAN Module is idle; otherwise it is in<br />

transmit mode.<br />

TCS: Transmit Complete Status. This bit is cleared by the CAN Module when the TR<br />

bit is set (bit 0 CCOM register). When TCS is set to a ‘1’, it indicates that the last<br />

150

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

Saved successfully!

Ooh no, something went wrong!