You could add another IC to your output - for example SN74LVC1G373 Single D-Type Latch With 3-State Output. You would need to use another pin/output to enable/disable latch when you want to change your output.
This device is particularly suitable for implementing buffer registers, I/O ports, bidirectional bus drivers, and working registers.
While the latch-enable (LE) input is high, the Q outputs follow the data (D) inputs. When LE is taken low, the Q outputs are latched at the logic levels set up at the D inputs.
wes58 发表于 2025-7-2 05:20
You could add another IC to your output - for example SN74LVC1G373 Single D-Type Latch With 3-State ...
Hi @wes58,
Thank you for the reply! It's a great workaround, but unfortunately, it's not feasible in my situation.
I'm working with a 15 GPIO-pin module. I've already used 13 of them, and 3 are dedicated to LED output, which means I need 16 GPIO pins. The number of GPIO pins is insufficient.
I prefer to resolve the issue by modifying the firmware if possible, as I would like to avoid making changes to the PCB - it's shared with another design based on a Silabs module.
RedpenCat 发表于 2025-7-2 10:15
Hi @wes58,
Thank you for the reply! It's a great workaround, but unfortunately, it's not feasible i ...
No, you need only 1 additional pin because you can connect all latch-enable pins in ICs together and control them at the same time. You keep latch enable pins high and turn it low only before going to sleep mode.
You can't really do anything with the firmware because that's the way the chip is designed - to save/reduce current usage (battery) during deep sleep