michcfr
Advanced Member level 4
Hello,
I want to add flexibility for analog IO to my MCU that has a single ADC (also usable as PWM) and a single PWM (also usable as ADC).
Requirements that drives my solution:
-4 analog IO ports (AIO0, AIO1, AIO2, AIO3) used interchangeably as ADC or PWM
-only two IO ports can be used at once
My solution use two 4:1 analog mux/demux driven by the MCU. See the schematics.
-one 4:1 mux/demux is used for the ADC line and the other one for the PWM line
-the two 4:1 mux/demux are driven by the GPIOs of the MCU. Maybe the GPIOs for EN are useless?
Can you please review my solution: is it correct? Improvement? alternative solution?
Thank you
Michel
I want to add flexibility for analog IO to my MCU that has a single ADC (also usable as PWM) and a single PWM (also usable as ADC).
Requirements that drives my solution:
-4 analog IO ports (AIO0, AIO1, AIO2, AIO3) used interchangeably as ADC or PWM
-only two IO ports can be used at once
My solution use two 4:1 analog mux/demux driven by the MCU. See the schematics.
-one 4:1 mux/demux is used for the ADC line and the other one for the PWM line
-the two 4:1 mux/demux are driven by the GPIOs of the MCU. Maybe the GPIOs for EN are useless?
Can you please review my solution: is it correct? Improvement? alternative solution?
Thank you
Michel