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.

TCA9534A: a regular update of configuration register

Part Number: TCA9534A

Dear all,

■QUESTION

After I set the direction setting of I/O port,

if I write the same direction setting to Register 3 (Configuration Register) again during output or input control,

are there influences on the output signal or input signal?

■ANSWER

I concern that the configuration register is inluenced by noise and changed its register setting.

To address this concern over, I think to update the configuration register regularly.

Best regards,

  • Hello Takao-san,

    "After I set the direction setting of I/O port,"

    -You mean register 1, correct? Register 0 is a read only.

    "if I write the same direction setting to Register 3 (Configuration Register) again during output or input control,

    are there influences on the output signal or input signal?"

    -Any bits which are Zero in register 3 will turn the port pin to an output. A 1 will result in an input. This is not the same as setting an output off or on. If you are trying to set the pins to all outputs, you should be writing 0000 0000 or 0x00h not the same values you put for register 1.

    "I concern that the configuration register is inluenced by noise and changed its register setting.

    To address this concern over, I think to update the configuration register regularly."

    -The noise you are likely seeing is the port set as an input. This particular device does not use an internal pull up resistor and therefore will is just a high impedance floating node. The voltage on the port pins defined as inputs will be any value it picks up from external noise.

    If you properly set the port to an output, you should see either the Vcc value for an 'on' or GND for 'off' output. Inputs will not behave like this and will be random.

    Thanks,

    -Bobby

  • Hello Bobby-san,

    Thank you for your answer, and I am sorry for my confusing English.


    "After I set the direction setting of I/O port,"
    --> I meaned Register 3. And I concern about bits of register 3 will be changed by the noise. To overcome this concern, I think to update the configuration register regularly.

    ■Question
    Will updating the configuration register occur some influence to I/O signal during I/O signal communication?

    Best regards,
  • Hello Takao-san,

    1)  Assuming you are writing the same setting you should not see any changes in the output or input signal. 

    2)  It is a good practice to periodically do reads/writes to critical registers.  I2C is a pretty robust protocol but it is possible to have noise corrupt bits and thus at the system level doing a periodic read and writes is a good idea.

    Just curious, what is the environment of the device and what is the application? 

    -Francis Houde