Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

Microcontroller - Outputting PWM or Analog - Good Method For Choosing This Via Firmware Config?

$
0
0
Hello, I am wanting to output 0-10V PWM signal, or 0-10V analog signal. The microcontroller's GPIOs output 0 to 3.3V, so I will just amplify that up to 10v with an op amp.

My question comes down to, lets say I want this to be a configuration option within the firmware, e.g. setting a flag such as "USE_PWM = True;", "USE_ANALOG = True;", etc.

What would be a good method of wiring these two separate systems up to the same output? For instance one GPIO would be the PWM setup, another separate...

Microcontroller - Outputting PWM or Analog - Good Method For Choosing This Via Firmware Config?

Viewing all articles
Browse latest Browse all 4924

Trending Articles