Document Reference No.: ES_000005
USB2-F-7x01 Full-Speed USB to 1-Port CANbus Adapter User Guide
Version 1.3
Clearance No.: ES#02
©2008 - 2010 EasySYNC Ltd.
27
4.1.12
Get Status Flags (F)
Summary
Get CANbus and controller status. A two-byte BCD number is returned to correspond to the 8-
bits of the COMSTAT register of the PIC18F2680.
Definition
F<CR>
Parameters
None
Remarks
Example
F<CR>
Get CANbus status
Return Codes
xx<CR> = OK
xx = CANbus status (A bit set to “1” indicates a true condition):
bit 0 = Flag bit 1 –or– Flag bit 2 is set
bit 1 = Receive Warning: 127 >= Receive Error Counter > 95
bit 2 = Transmit Warning: Transmit Error Counter > 95
bit 3 = Receive Bus Passive: Receive Error Counter > 127
Will cause RED LED to Single Flash
bit 4 = Transmit Bus Passive: Transmit Error Counter > 127
Will cause RED LED to Single Flash
bit 5 = Transmit Bus-OFF: Transmit Error Counter > 255
Will cause RED LED to remain ON
bit 6 = Receive Buffer 1 Overflow
bit 7 = Receive Buffer 0 Overflow
<BELL> = ERROR