So, if switch is grounded then what is the problem? Isn't it similar to connecting GPIO to logic-0?otherwise mcu-gpio72 and mcu-gpio84 will be grounded when switch is on.
I agree 56k is required for known state, but when switch is connected to GND why do we need a series resistor?You never want I/O lines on a processor to "float" at an undefined voltage level. The 56KΩ resistor to 3.3 V is a "weak" pullup. The 2.2KΩ is a "strong" pulldown to GND. The terms "weak" and "strong" in this context are relative.
If the GPIO pin is inadvertently set to be a high output, the high output would be shorted to ground when the switch is pressed.but when switch is connected to GND why do we need a series resistor?