Menu

Pic HI2C prob fixed

Mikorians
2017-08-07
2017-08-07
  • Mikorians

    Mikorians - 2017-08-07

    Months of agony...
    Our robot (lots of RFI/EMI) kept locking up.
    We couldn't figure out why. We had become stack paranoid.

    But the assumption:
    Wait UNTIL

    In hi2c.h was found. We backed it up and added both
    a timeout and error flag to it
    just as we did in usart.h.

    Now we just have one question-
    Do you know the generic technique for waking
    up the I2C bus? I've forgotten it...

     
  • Anobium

    Anobium - 2017-08-07

    Can you share your version of the compiler? A lock up of I2C was fixed, with timeout of MSSP.

    What are you using ? Hardware or Software I2C?

     
  • Mikorians

    Mikorians - 2017-08-07

    Hardware, .96
    Saw timeout of MSSP.
    Look just before.

    Current problem:
    I must reset I2C Bus.
    On/Off/On/Off...?
    Is it Repeated HI2CStop, HI2CStart or repeated HI2CRestart?
    Or was it address 0 HI2CSend 0 ???

     
  • Anobium

    Anobium - 2017-08-07

    Please try latest build. If this does not fix I will post the latest library - this should be fixed.

    Use Restart.

     
  • Mikorians

    Mikorians - 2017-08-07

    OK Works now!

     
    • Anobium

      Anobium - 2017-08-07

      Pleasure.

       

Log in to post a comment.