ULP hardware I2C is not usable?

Moderator: ESP_Bob

zhaozhaozhao
Posts: 21
Joined: Tue Apr 13, 2021 8:43 am

ULP hardware I2C is not usable?

Postby zhaozhaozhao » Tue May 18, 2021 3:18 pm

Hi,

我看到 viewtopic.php?t=4623说, 协处理器的硬件I2C模式有些问题, 不能用是吗? 只能用软件I2C?

现在我用的一块LilyGo v1.7 的ESP32 WROVER板, ULP程序读RTC引脚寄存器可以正常运行。但只要往里面加一行 i2c_rd, 程序就会卡死。

zhaozhaozhao
Posts: 21
Joined: Tue Apr 13, 2021 8:43 am

Re: ULP hardware I2C is not usable?

Postby zhaozhaozhao » Tue May 18, 2021 3:33 pm

哦对了顺带便问一下,汇编的语法是不是改过?
我看到有些人写的代码,JUMP可以跟gt, 但是我现在用的idf版本v4.2, jump只有eq和ov两个选项。
如果要实现某变量小于10跳转的功能。是应该用

Code: Select all

move r1 myvariable
ld r3 r1 
sub r3 10 
jump label, ov 
还是

Code: Select all

jumpr label,10,lt?

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: ULP hardware I2C is not usable?

Postby ESP_Gargamel » Wed May 19, 2021 9:10 am


Who is online

Users browsing this forum: No registered users and 49 guests