I2C doesnt work, please help me. | Cypress Semiconductor
I2C doesnt work, please help me.
I am using PSOC5 Dev.Kit with this eInk display:
Firstly i would like to read the temperature sensor on this module via I2C interface.
I have no experience with I2C at all, but i though it should be simple, especially with PSOC.
Here is my code:
I2C_1_MasterWriteBuf(0x49, &in, 1, I2C_1_MODE_COMPLETE_XFER); for(;;)
I2C_1_MasterReadBuf(0x49 ,&result,2,I2C_1_MODE_COMPLETE_XFER); while(0u == (I2C_1_MasterStatus()&I2C_1_MSTAT_RD_CMPLT))
/* Wait until master complete reading */
But nothing works. The system is always in while-loop (LED2 is on, display is blank). What am i doing wrong?
I use I2C Master Component (fixed function), both pins are connected to I2C1:SCL/SDA (Open Drain, Drives LOW). But i just don't see any action on I2C pins. Nothing, no CLK, no signals...
Some help will be appreciated:)