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.

TMS320F280049: Can GPADAT be used to check the two pin status when I2C mode is used?

Part Number: TMS320F280049

Dear Champs,

I am asking this for our customer.

The user wants to check/poll the I2C pin (inclduing CLK and DATA) status, and add some codes for fault management.

Questions:

1) When I2C mode is used, can the GPADAT for the related both I2C pin be used as the real pin status?

That is, if GPIO18/I2CA_SCL and GPIO26/I2CA_SDA are used as I2C, can the user use the GPADAT of GPIO18/GPIO26 to check their pin status without setting them back to GPIO?

2) Or, is there any other way to know the two I2C pin status? 

Wayne Huang

  • Hi Wayne,

    Yes, as per "Figure 8-1. GPIO Logic for a Single Pin" in device TRM GPDAT register should show current status of pin irrespective of the pin function.

    Regards,

    Vivek Singh