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.

MCU detect the GPIO value to verify the system

Other Parts Discussed in Thread: TCA9555

Hi Team,

My customer is searching the method to let firmware use the high or low to verify kind of the system.

Now they used two GPIO to set high and low value to let MCU know the system type. As we know we could have 4 state to verify the system type.(00/01/10/11) But now customer will have more and more type of their application(16 kinds), two GPIO is insufficient and they don't have extra GPIO to use. 

Now we have another method like to use I2C GPIO expander or ADC chip could verify more type of application.

Do we have another solution to achieve the requirement?

Regards,

Roy

  • Hi Roy,

    You could use an IO expander like TCA9555 to monitor the high/low status of up to 16 signals.  Then the MCU could simply read this status via I2C.  This is a common way to implement serialization or numbering of designs in hardware.  Use of various pull-up/pull-down resistances along with an integrated ADC port in the MCU may be an option as well but tends to be a little more complex and could be more subject to error (due to voltage/resistance variations, etc.).

    Regards,
    Max