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.

when the RS bit (see CSTAT register – Section 5.3.5) becomes set. Setting this bit to a<br />

‘0’ causes no action to be performed.<br />

AT: Abort Transmission. When this bit is set to a ‘1’, a pending message transmission<br />

will be cancelled if it is not already in progress. This allows the transmit buffer to be<br />

loaded with a new, higher priority message when the buffer is released. If the CPU tries<br />

to write to the buffer when it is locked, the information will be lost without being<br />

signaled. The status register can be checked to see if transmission was aborted or is still<br />

in progress. Setting this bit to a ‘0’ has no effect.<br />

TR: Transmission Request. When this bit is set to a ‘1’, a data frame or a remote frame<br />

will be transmitted depending on the transmission buffer’s contents. Setting this bit to a<br />

‘0’ has no effect. It will not cancel a previously requested transmission; the abort<br />

transmission request bit must be used to do this.<br />

5.3.5 CAN Module Status Register (CSTAT)<br />

The Status Register, shown in Figure 5.18, provides information on a number of<br />

conditions which can occur in the CAN Module. This includes information on the status of<br />

the last requested transmission, incoming messages and the availability of the Transmit Buffer<br />

for acceptance of new messages for transmission. It also provides a flag to indicate the module<br />

‘off bus’ state and provides limited information on the status of the error counters [96]. This<br />

register is a read only register and only the CAN Module can change its contents.<br />

149

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

Saved successfully!

Ooh no, something went wrong!