avr-hal icon indicating copy to clipboard operation
avr-hal copied to clipboard

Fixed 370: the hanging i2c because of a faulty stop the twint is set by the avr itself.

Open borissmidt opened this issue 1 year ago • 1 comments

I had added the timouts that you requested for and i noticed that it always go stuck on start.

So i assumed that it was one of the bits set at the stop which caused the i2c to fail. The twint is set by the avr itself. So when i disable the manual setting and now it works. https://www.engineersgarage.com/avr-atmega32-twi-registers/

borissmidt avatar Nov 23 '22 16:11 borissmidt

FYI i can read the sensor with a 100kHz bus and a 25ms delay in between. So it seems to work as expected.

borissmidt avatar Nov 23 '22 16:11 borissmidt