Programmable mixed signal IO
Posted: Wed Apr 12, 2017 11:40 pm
So I though we could talk about programmable mixed signal IO.
In other words, ecu pins that can do ADC, DAC, PWM, ICU, digital input or output based on how you decide to program them.
A lot of after market ECU have that on a few pins.
Here's an IC that does just that: https://www.maximintegrated.com/en/products/analog/data-converters/analog-to-digital-converters/MAX11300.html
It's pricey though. ($5 for 12 pins, $15 for 20)
How Motec manages their various IOs: (AEM is pretty similar)
http://www.motec.com/filedownload.php/M1%20ECU%20Hardware.pdf?docid=4487
List of devices we would connect to such a pin (by pin I mean a connection to the harness):
- STM32 ADC (with protected input buffer)
- STM32 DAC? (Need output buffer, shares pin with ADC)
- H-bridge, or low/high side protected switch
- Timer for PWM in/out?
That would result in using 2 pins on the STM32, one for input, one for output.
ADC pin can be switched to regular gpio when used a digital input.
DAC shares the same pin as ADC but needs an output buffer that we can disable when in input mode.
This would give some flexibility as we are going to support more and more engines.
Any thought?
In other words, ecu pins that can do ADC, DAC, PWM, ICU, digital input or output based on how you decide to program them.
A lot of after market ECU have that on a few pins.
Here's an IC that does just that: https://www.maximintegrated.com/en/products/analog/data-converters/analog-to-digital-converters/MAX11300.html
It's pricey though. ($5 for 12 pins, $15 for 20)
How Motec manages their various IOs: (AEM is pretty similar)
http://www.motec.com/filedownload.php/M1%20ECU%20Hardware.pdf?docid=4487
List of devices we would connect to such a pin (by pin I mean a connection to the harness):
- STM32 ADC (with protected input buffer)
- STM32 DAC? (Need output buffer, shares pin with ADC)
- H-bridge, or low/high side protected switch
- Timer for PWM in/out?
That would result in using 2 pins on the STM32, one for input, one for output.
ADC pin can be switched to regular gpio when used a digital input.
DAC shares the same pin as ADC but needs an output buffer that we can disable when in input mode.
This would give some flexibility as we are going to support more and more engines.
Any thought?