Go Down

Topic: I2C/TWI non-blocking library (Read 299 times) previous topic - next topic

biccius

Hi


Does anyone know if there is a non-blocking version of the Wire.h library for Arduino Due?

Thanks

MartinL

#1
Apr 10, 2019, 03:49 pm Last Edit: Apr 10, 2019, 03:50 pm by MartinL
Hi biccius,

I don't know of any non-blocking Wire library for the Arduino Due.

I have however written one for the SAMD21/SAMD51 microcontrollers, used on the ARM based Arduino Zero/MKR, as well as Adafruit M0/M4 boards: https://github.com/MartinL1/I2C_DMAC.

Although the SAM3X8E microcontroller used on the Due has some general similarities with the SAMD21/51, in terms of DMA operation and linked descriptors, the register and peripheral structures are unfortunately somewhat different.

The only other thing I can think of, would be to check if your sensors also support SPI?

biccius

Hi Martin,

thank you for the reply

I had already taken a look to your library (congratulations for the excellent work!) but unfortunately as you say it is incompatible with a Cortex-M3.

The sensors I use have an SPI version but by now the project has come to an end and I don't think of redesigning it all.

Everything works properly. The fact of not-blocking i2c would have been an improvement.

Thanks

Go Up