Redesign the pull-up/pull-down circuit so that the control pins are multiplexed. Idea: use a tri-state output to control them (LOW: pull-down enabled, HIGH: pull-up enabled, High-Z: both disabled)
This would save 8 MCU pins, allowing us to use the LQFP100 package: 8 PU, 8 PD pins -> 8 PU/PD pins
Redesign the pull-up/pull-down circuit so that the control pins are multiplexed. Idea: use a tri-state output to control them (LOW: pull-down enabled, HIGH: pull-up enabled, High-Z: both disabled)
This would save 8 MCU pins, allowing us to use the LQFP100 package: 8 PU, 8 PD pins -> 8 PU/PD pins