PCA8565TS RTC Not Working using I2C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCA8565TS RTC Not Working using I2C

781 Views
bhavinmaru
Contributor III

Hello,

I interfaced the PCA8565TS with TWR-K20D72M board using I2C. to read/write first i send the start condition after that i send the slave address(0xA2) with write option then i not get acknowledgement from PCA8565TS this is the issue. i also tried with SCL 100 khz and 400 khz but in both cases i not got acknowledgement form PCA8565TS. i also attached my code for your reference. so please help me so that i can read and write with PCA8565TS.

 

Thank You

  Bhavin

Original Attachment has been moved to: rtc.txt.zip

0 Kudos
1 Reply

474 Views
david_diaz
NXP Employee
NXP Employee

Hello Bhavin,

You may refer to the TWR-K20_MMA8451Q_BasicReading sample project attached to this response.

This sample project for CodeWarrior performs a basic reading of the MMA8451Q accelerometer included on the TWR-K20D72M. You can use the I2C.c and I2C.h files in order to read and write to the PCA8565TS.

Please be aware that pull-up resistors must be placed at the I2C lines.

I hope this information will be useful for you.

If I misunderstood your question, feel free to let me know.  I will be glad to help.

Have a great day.

David Diaz.

PS: If my answer helps to solve your question, please mark it as "Correct". Thank you.

0 Kudos