Post Go back to editing

TWI polling (no interrupt)

Hi,

We are working on the ADSP-21489 Ez-Board on CCES.

A part of the project deals with TWI. The code works properly with interrupt (similar to the temp_sensor_test code in Power_On_SelfTest example).

But we would like to make it working without interrupt, so by polling fifo status registers.

I took a look to some example files posted on this forum, but did not find any solution to make it working.

Attached is the code, could someone take a look and tell me if I missed something or if something is not doing right?

We use 2 kind of reading: 8bit and 16bit, and 1 kind of writing: 8bit.

Thank you for your help,

Marc

TWI.c.zip