PSOC5 I2C to DS1631 temperature chip | Cypress Semiconductor
PSOC5 I2C to DS1631 temperature chip
Does anyone have an example of how to do this? First I have a possible address problem. The DS1631 datasheet says the address (with all 3 addr lines low) is 90h for writing and 91h for reading. However the PSOC interface attempts to handle this RW automatically, by shifting the address left one bit and adding in the read or write bit. So I guess I have to supply the slave address as shifted right one (90h becomes 48h) and thus when it is shifted left by the PSOC API routines the address will be correct. Is that right? If so, it is totally non-intuitive!
However whether using an addr of 90h or 48h I cannot get any response from the DS1631, and at times the program hangs waiting for SendMasterStart to complete. I am using MasterWriteByte and MasterReadByte, not the buffered stuff.
Any help would surely be appreciated.