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.

I2C changing from master to slave mode

Hopefully quick question:

I am changing the I2C peripheral on a dm6435 between master and slave mode.  Is it necessary (or just a plain good idea) to reset the peripheral when I make changes to the registers like this, or can I just leave it running and twiddle with the master/repeat bits?

  • MattLipsey said:
    I am changing the I2C peripheral on a dm6435 between master and slave mode.  Is it necessary (or just a plain good idea) to reset the peripheral when I make changes to the registers like this, or can I just leave it running and twiddle with the master/repeat bits?

    I have only used the I2C as a master peripheral with the DM643x so I have not tried changing modes, but you may actually need to reset the peripheral, reason being that in the typical initialization process for the I2C you would set bits like MST and RM before releasing the I2C from reset, therefore to follow the user manual's configuration sequence recommendation you would have to reset the I2C.

    It may be worth a shot to see if you can change from master to slave configurations on the fly, however I would not be suprised if that somehow put the I2C internal state machine in a bad state depending on what the I2C peripheral is doing when you change the bit.