This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

8051 Serial port

Does anyone know how to cancel the transmission just after a write to SBUF ?

Parents
  • a "funny" (rather sad) story about J1708 and the pseudorandom "int rand(void);"

    The J1708 specification specify that after a collision a random delay is to be invoked before the transmission is attempted.

    Two devices, both using the Keil "int rand(void);" collided and since the random delay was the same for the two every time they just kept colliding.

    WARNING:
    When doing J1708 do not rely on pseudorandom use a true random. I have a free running timer that save the value at the end of each transmission from the individual device and this seems to work.

    Erik

Reply
  • a "funny" (rather sad) story about J1708 and the pseudorandom "int rand(void);"

    The J1708 specification specify that after a collision a random delay is to be invoked before the transmission is attempted.

    Two devices, both using the Keil "int rand(void);" collided and since the random delay was the same for the two every time they just kept colliding.

    WARNING:
    When doing J1708 do not rely on pseudorandom use a true random. I have a free running timer that save the value at the end of each transmission from the individual device and this seems to work.

    Erik

Children
No data