• AVR Freaks

Hot!ECAN TXLARB flag

Author
crosland
Super Member
  • Total Posts : 2205
  • Reward points : 0
  • Joined: 2005/05/10 10:55:05
  • Location: Warks, UK
  • Status: offline
2021/01/07 13:39:13 (permalink)
0

ECAN TXLARB flag

Does anyone know exactly how/when the ECAN TXLARB bit will be set. I can't find much detail in the data sheet (18F26K83):
 
If a Tx loses arbitration is the flag set straight away or is the Tx automatically retried?
If it is retried, how many times until the TXLARB flag is set?
Is the Tx error counter incremented for loss of arbitration?
#1

1 Reply Related Threads

    NJT
    Starting Member
    • Total Posts : 36
    • Reward points : 0
    • Status: offline
    Re: ECAN TXLARB flag 2021/01/11 16:01:32 (permalink)
    0
    So this is based on what documentation I've looked through and I haven't been able to double check on silicon, but I believe I can answer this:
     
    crosland 
    If a Tx loses arbitration is the flag set straight away or is the Tx automatically retried?

     
    Both.  The flag will be set, but the TXREQ bit will remain set and the transmission will automatically retry once the module sees a long enough idle period on the bus
     
    crosland 
    If it is retried, how many times until the TXLARB flag is set?

     
    It should be set the first time the device loses arbitration
     
    crosland 
    Is the Tx error counter incremented for loss of arbitration?



    No, loss of arbitration is not considered a transmission error in the CAN protocol, only bit errors outside of the arbitration field cause an increment of the TX error counter
     

    "In the beginning, the universe was created.  
    This has made a lot of people very angry and been widely regarded as a bad move." 
    -Douglas Adams
    #2
    Jump to:
    © 2021 APG vNext Commercial Version 4.5