When I use the I2C master sample code in ADuCMxxxV1.2 and connect P0.1 to a scope, there is no signal. I tried add a pull up resistor, it still does not generate any signal.
Any suggestion about this?
On the ADuCM360 mini board, the P0.1 and P0.2 signals are also used on the J3 connector that plugs into the interface board.
To monitor the I2C signals when the interface board is plugged in, you may need to remove links J19 and J18 on the interface board.
Please check that the GPIOs are configured in I2C mode.
DioCfg(pADI_GP0, 0x28); // Configure P0.1/P0.2 as I2C pins
(this line of code is commented on the loopback example)
If you are not using external pull up resistor, for debug purposes you can use the internal pull ups.
In this case the following line of code should be commented as shown below.
//DioPul(pADI_GP0, 0xF9); // External pull ups required externally
Retrieving data ...