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.

TMS320F28375S: PERIPHERAL CONFIGURATION CHANGE (DUAL USE FW MULTIPLEX)

Part Number: TMS320F28375S

Dear sir/Madam

We are working on a new product development using the TMS320F28375SPZPQ and planning to use pins 73 and 74 with a purpose twofold described next:

- at system start these pins will be set as I2C-A peripheral and the MCU will try to communicate with an external I2C slave device.

- if it fails to detect the I2C slave device (no response after a time-out) the pins will be reconfigured to act as an SCI-A serial port..

Please could you confirm if this is possible? Do you see any issue in reconfiguring these pins to act as a different peripheral device?

Thanks a lot in advance and kind regards

Maria

  • Hi Maria,

    From the C2000 device respective, I think it should be OK. I2C requires external pull-up resistors on SDA/SCL lines and I believe SCI should work OK with the pulls on the lines.

    One potential concern to me are the other devices connected to the I2C bus and SCI lines. There may be cases where they drive the lines HIGH / LOW if they distinguish I2C or SCI communications. For example if the F2837x is communicating over SCI, but an I2C device on the bus distinguishes it as valid I2C comms there may be issues. You will need to ensure that the other devices only pull the lines when they are intended to.

    Best,

    Kevin

  • Hi Kevin, so the program can hot change a gpio function without resetting the system?

    Thanks! Mike

  • Hi Mike,

    Yes, GPIO functions can be reconfigured during run time. I don't know of any real limitations related to this, I will check with some others just to make sure.

    Best,

    Kevin

    Edit: Confirmed that there's no issues with re-configuring GPIO function on-the-fly and it shouldn’t interfere unless something is being transmitted / received on that pin when it’s being reconfigured.