Using i2c from ULP-RISC-V coprocessor on esp32-S2
Posted: Thu Nov 05, 2020 9:18 am
I am interested in taking sensor readings using the risc-v coprocessor while in deep sleep, probably every 10 minutes or so, over i2c.
I was interested in doing this to potentially save power, by not waking up the esp to do a sensor reading. I was put off doing this on the stack-based coprocessor because I don't know assembly, but if "it's just c" on the risc-V then it might be worth a go.
So my questions are:
a) is there access to i2c hardware like with the stack-based ULP or would I need to use software i2c?
b) considering it can already wake up, do a sensor reading and go back to sleep in less than 100ms, is using the coprocessor actually going to save any power? i.e. if the risc-v coprocessor consumes significantly more power than normal deep sleep then it might not be
Thanks!
I was interested in doing this to potentially save power, by not waking up the esp to do a sensor reading. I was put off doing this on the stack-based coprocessor because I don't know assembly, but if "it's just c" on the risc-V then it might be worth a go.
So my questions are:
a) is there access to i2c hardware like with the stack-based ULP or would I need to use software i2c?
b) considering it can already wake up, do a sensor reading and go back to sleep in less than 100ms, is using the coprocessor actually going to save any power? i.e. if the risc-v coprocessor consumes significantly more power than normal deep sleep then it might not be
Thanks!