ULP example programs using I2C_RD and I2C_WR for I2C communcaiton

alok.yadav
Posts: 4
Joined: Thu Nov 22, 2018 10:03 am

ULP example programs using I2C_RD and I2C_WR for I2C communcaiton

Postby alok.yadav » Mon Nov 26, 2018 2:15 pm

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

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

Postby WiFive » Tue Nov 27, 2018 4:10 am

https://github.com/espressif/esp-iot-so ... 2c_bitbang

The native i2c instructions can only do single bytes

alok.yadav
Posts: 4
Joined: Thu Nov 22, 2018 10:03 am

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

Postby alok.yadav » Tue Nov 27, 2018 8:49 am

@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.

Who is online

Users browsing this forum: No registered users and 134 guests