PSOC Pioneer DS1307 I2C Real Time Clock Problems | Cypress Semiconductor
PSOC Pioneer DS1307 I2C Real Time Clock Problems
I am trying to get my PSOC Pioneer to communicate with an I2C DS1307 real time clock. I have verified the clock's funciton on an Arduino, and am trying to use the code from this community project:
I have been totally unable to retrieve anything from the clock. I am using the following code to retrieve the time, taken directly from the examples:
I2C_I2CMasterReadBuf(I2C_ADDRESS, Current_time, NO_OF_BYTES, (I2C_I2C_MODE_REPEAT_START | I2C_I2C_MODE_COMPLETE_XFER));
I have tried with and without pull up resistors, nothing seems to work.
Anyone have any ideas? I am at my wit's end here, the clock works with an Arduino, and a .NET Micro device with no problems whatseoever.
Any help is much appreciated.