I am a beginner in electronics. I searched on the web about Pull up and Pull down concepts. As far as I know,
1) When an MCU pin is pulled up, a small amount of current pass through the pull-up resistor to that particular pin. As this current creates a voltage drop across the internal pin resistor that MCU pin detects it is in a high state. Am I right?
2) What happens when I use pull-down? How an MCU pin finds it is being pulled down?