Closed jbqubit closed 2 years ago
Pleas don't do that as long as it introduces incompatibilities and as long as there are unaddressed impacts on the firmware.
For background, not being able to trigger a scope when scanning the output is the first use case I've thought of. If Stabilizer is to become some kind of lab swiss army knife as envisaged, then not having a simple way of getting a digital output seems short-sighted, and I think should at least be considered at the v1.2 stage.
I see a few options:
let's leave it for next release.
The Stabilizer was designed in a way that it can act as either an EEM upstream or downstream device. So one can connect DIO module. However, in many cases just one output may be sufficient, so we can replace the input buffers with bi-dir ones. Let's add the pulldown resistor so the default configuration will be compatible with 1.2 firmware. I wouldn't make it configurable by a dip switch, because we need to modify the MCU direction anyway. Let's define it by software.
In v1.1 MCX DI0 and DI1 are input only. Consider making them software reconfigurable input or output like on EEM DIO. https://github.com/quartiq/stabilizer/issues/86#issuecomment-735692391