Page 1 of 1

ULP example programs using I2C_RD and I2C_WR for I2C communcaiton

Posted: Mon Nov 26, 2018 2:15 pm
by alok.yadav
I am trying to use the esp32 ULP for I2C communication with mpu6050 using the commands I2C_RD and I2C_WR given in coprocessor instruction set on https://docs.espressif.com/projects/esp ... n_set.html.
I tried searching for ULP example programs using I2C_RD and I2C_WR commannds for I2C communication. But couldnt find any. Has anyone developed programs using the commands. Could you help me with the same.

Re: ULP example programs using I2C_RD and I2C_WR for I2C communcaiton

Posted: Tue Nov 27, 2018 4:10 am
by WiFive
https://github.com/espressif/esp-iot-so ... 2c_bitbang

The native i2c instructions can only do single bytes

Re: ULP example programs using I2C_RD and I2C_WR for I2C communcaiton

Posted: Tue Nov 27, 2018 8:49 am
by alok.yadav
@Wifive - I have recently come across codes which utilise bitbanging, but didnt find any for interfacing mpu6050.
Also I would be grateful if i could find codes which utilise the native commands as I just have to read the interrupt register in mpu6050 to see if the mot_thr interrupt is raised, when the ulp wakes up.