esd Protocol for CAN Modules - esd electronics, Inc.
esd Protocol for CAN Modules - esd electronics, Inc.
esd Protocol for CAN Modules - esd electronics, Inc.
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Commands and Parameters<br />
constat... In the fourth byte the status register of the <strong>CAN</strong> controller is returned. The bits<br />
correspond exactly to the status bits described in the controller manual. The<br />
following table shows a short overview of the status bits. Further in<strong>for</strong>mation can be<br />
taken from the controller manual.<br />
3 - 18<br />
Bit 'Standard’-<br />
Function Value Status<br />
(assembler) value<br />
0<br />
Receive Buffer<br />
Status<br />
1 Data Overrun<br />
2<br />
3<br />
Transmit Buffer<br />
Access<br />
Transmission<br />
Complete Status<br />
4 Receive Status<br />
5 Transmit Status<br />
6 Error Status<br />
7 Bus Status<br />
Table 3.2.9: Bits of the controller status<br />
1 full<br />
0 empty 0<br />
1 overrun<br />
0 absent 0<br />
1 released 1<br />
0 locked<br />
1 complete 1<br />
0 incomplete<br />
1 receive<br />
0 idle 0<br />
1 transmit<br />
0 idle 0<br />
1 error<br />
0 ok 0<br />
1 Bus-Off<br />
0 Bus-On 0<br />
= $0C<br />
(higher language<br />
counting)<br />
At some of the status bits level changes are hardly perceptible, because the changes<br />
are only <strong>for</strong> a short period.<br />
<strong>esd</strong> <strong>Protocol</strong> <strong>for</strong> <strong>CAN</strong> <strong>Modules</strong> Rev. 3.2