sinara-hw / Stabilizer

2-channel microcontroller servo with EEM and Ethernet based on STM32 CPU
Other
22 stars 5 forks source link

digital outputs #86

Closed jbqubit closed 2 years ago

jbqubit commented 3 years ago

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

jordens commented 3 years ago

Pleas don't do that as long as it introduces incompatibilities and as long as there are unaddressed impacts on the firmware.

dtcallcock commented 3 years ago

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:

gkasprow commented 3 years ago

let's leave it for next release.

gkasprow commented 2 years ago

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.