From 5bcb23f1a2509c38ed7fcb33f72d70dbe91e696a Mon Sep 17 00:00:00 2001 From: ole00 Date: Sat, 1 Apr 2023 23:10:12 +0100 Subject: [PATCH] sketch: GAL20V8 - disable pull-up on DOUT when inactive --- afterburner.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/afterburner.ino b/afterburner.ino index 6f05579..4f9315a 100644 --- a/afterburner.ino +++ b/afterburner.ino @@ -327,8 +327,9 @@ static void setPinMux(uint8_t pm) { pinMode(PIN_ZIF10, pm); pinMode(PIN_ZIF11, pm); pinMode(PIN_ZIF13, pm); - pinMode(PIN_ZIF14, pm); - pinMode(PIN_ZIF15, INPUT_PULLUP); //DOUT + pinMode(PIN_ZIF14, pm); + // ensure pull-up is enabled during reading and disabled when inactive + pinMode(PIN_ZIF15, pm == OUTPUT ? INPUT_PULLUP: INPUT); //DOUT pinMode(PIN_ZIF16, pm); // ensure ZIF10 GND pull is disabled digitalWrite(PIN_ZIF_GND_CTRL, LOW);