单片机/MCUwilliam hill官网
直播中

王超

7年用户 1278经验值
私信 关注
[问答]

使用两片ADU360进行I2C通信,当与从机进行通信时,从机无法进入I2C中断是为什么?

问题说明:使用两片ADU360进行I2C通信,主机使用IO口模拟方式,从机使用内部外设
                  主机IO口模拟方式,确认是可行,当与从机进行通信时,从机无法进入I2C中断
以下为I2C初始化过程,
I2C Startup
The following steps are required to set the I2C peripheral running:
1. Configure I2C clock in CLKDIS and CLKCON1 registers.
2. Configure digital pins for I2C operation (P0.1/P0.2, P2.0/P2.1).
3. Configure I2C registers as required for slave or master operation.
4. Enable the I2C slave or master interrupt source as required.
Note that the user should disable the internal pull-up resistors on the I2C pins via the GP0PUL register when using I2C.

              

回帖(2)

毛萃

2024-1-15 09:58:11
您的程序看起来没有什么,您能将您的的I2C主机时序用示波器截图发过来我们看一下吗?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分