This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I know if a pin is connected or not?

Hello,

I have a doubt.
How can I know if an input pin port is connected or not?

I know the microcontroller only recognized Zeros and Ones, but I need to know if a pin port is connected or not.

Thank you.

Parents
  • Or to put it another way -- the pin is always physically connected to something. Maybe ground, maybe Vcc, maybe just air...

    (Though calling the last a "connection" is pushing the meaning of the word. Floating pins aren't usually considered "connected".)

    To test to see if the pin is connected to what you hope it is, you need to generate a test pattern on the other end, and verify reception of that test pattern at your end, or vice versa. A "test pattern" might be very elaborate, as in a PRBS pattern, or might be very simple, as in "yep, it's high, so it must not be dead" for RS-232.
    Usually, you do this sort of test in a diagnostic (manufacturing or field), and most of the time, just take the connectivity of production boards on faith.

    Board-level connectivity can be tested with JTAG.

Reply
  • Or to put it another way -- the pin is always physically connected to something. Maybe ground, maybe Vcc, maybe just air...

    (Though calling the last a "connection" is pushing the meaning of the word. Floating pins aren't usually considered "connected".)

    To test to see if the pin is connected to what you hope it is, you need to generate a test pattern on the other end, and verify reception of that test pattern at your end, or vice versa. A "test pattern" might be very elaborate, as in a PRBS pattern, or might be very simple, as in "yep, it's high, so it must not be dead" for RS-232.
    Usually, you do this sort of test in a diagnostic (manufacturing or field), and most of the time, just take the connectivity of production boards on faith.

    Board-level connectivity can be tested with JTAG.

Children
No data