I2C Problem with 8C24123 | Cypress Semiconductor
I2C Problem with 8C24123
I am attempting to get two 8C24123 PSOC 1's to communicate over I2C.
On the master, using I2Cm (called MOTOR) , I init as follows
I then send data as follows
BYTE CS = speed + MOTOR_ADDRESS;
data = speed;
data = 0;
data = CS;
MOTOR_bWriteBytes(MOTOR_ADDRESS, data, 3, MOTOR_CompleteXfer);
On the slave PSoC, I use the EZI2Cs (called I2C) and init as follows
MyI2C_Regs.data = 0;
MyI2C_Regs.shadow = 0;
Then I just check for data values in loop
// do some checks on MyI2C_regs.data
The MOTOR_ADDRESS is 0x60
The attached lower image shows the PSoC to PSoC communication. The slave PSOC acks the Write request to address 0x60, but it Naks the first byte written (0x46) and the communication ends. I also never detect data as being 0x46 on the slave (as if the data has not been passed from the EzI2C routines to the ram location).
On the upper image, I am using the Microchip PicKIT serial analyser as the slave, with the PIC kit set to slave mode and address 0x60. In this case, the PicKIT NAK's (or ignores) the write to slave 0x60 from the master.
I usually do the same sort of communications from a 8C29466 as the master with 8C24123 as slave and the 123 slave code has worked fine in the past.
All the SCL/SDA pins are Open Drain Low mode. Pull ups are 4K7
Does anyone know why this may not be working correctly?