Other Parts Discussed in Thread: C2000WARE
It's I2C code - wondering if anyone was able to connect to internal timer and has RTC functions for the C2000?
Thanks,
Mechi
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
It's I2C code - wondering if anyone was able to connect to internal timer and has RTC functions for the C2000?
Thanks,
Mechi
Hi Mechi,
TI does not have an I2C driver specific to the PCF85263 device to provide. There are a couple I2C example SW examples you can leverage and make edits to match the PCF85263 protocol documented in the device datasheet.
I really need an example with polling that works. The example in 1. (https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/773846) does not work and I don't understand why it's marked as solved.
Mechi,
The example in #1 is written for interfacing with certain i2c eeproms, it will not work with your PCF85263 device by default and you will need to make edits to it. i.e. change the slave address used, change command bytes sent and read from, change the overall sequence of i2c writes/reads etc...
You can utilize the functions provided in the example code to match your PCF85263 device's expected protocol usually documented in the device datasheet.
https://www.nxp.com/docs/en/data-sheet/PCF85263A.pdf
Best,
Kevin