问题说明:使用两片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 opera
tion (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.