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 />
Sub command $03 --< set bitrate<br />
3 - 10<br />
Notes on the internal management of the <strong>CAN</strong>-error bit:<br />
The <strong>CAN</strong>-error bit is set by the local software if the status bit of the<br />
<strong>CAN</strong> controller 'error status' is activated. (see constat).<br />
After the first recognition of a <strong>CAN</strong> error the controller at first tries to<br />
transmit or receive data repeatedly. If it recognizes after several<br />
attempts that the error does not occur anymore, it does not take back<br />
its error bit at once. First further successful transmissions have to take<br />
place to count back the internal error counter again. Supervised Tx<br />
transfers which are addressed to other modules are also counted as<br />
successful transmissions. But if only one module and one <strong>CAN</strong><br />
master are installed on the bus, the master possibly has to transmit<br />
some messages first to reset the error counter and there<strong>for</strong>e reset the<br />
controller status bit.<br />
There<strong>for</strong>e it is possible that the <strong>CAN</strong>-error bit of the <strong>CAN</strong>-status byte<br />
is still active after only one reset, because the error bit of the<br />
controller is still active.<br />
Bit 7 of the byte has got the designation 'new on bus' and shows if the module<br />
processes <strong>for</strong> the first time on the <strong>CAN</strong>:<br />
A <strong>CAN</strong> master is able to evaluate and set the bit to zero to document on the<br />
module that it noted the presence of the module on the <strong>CAN</strong>. If the bit has got<br />
the value '1' at the reading, in this application of the bit the module had not<br />
been found by a master so far after the last RESET.<br />
A 'set' access with any data (recommended: byte 5 = $00) onto the status byte<br />
sets the bit onto '0'.<br />
bust0, bust1.. These two bytes set the contents of the registers BTR0 and BTR1 of the <strong>CAN</strong><br />
controller 8xC592/82C200 which determine the bitrate of the <strong>CAN</strong> interface.<br />
An allocation of the register contents to the bit rates can be taken from the<br />
table below.<br />
Contrary to the other commands this parameters only become active after the<br />
actual parameter set was stored in the EEPROM (store parameters) and a<br />
RESET was triggered on the module.<br />
<strong>esd</strong> <strong>Protocol</strong> <strong>for</strong> <strong>CAN</strong> <strong>Modules</strong> Rev. 3.2