Other Parts Discussed in Thread: CONTROLSUITE
Hi,
If I want to generate and output a PWM signal based the comparison result of an analog input (input_A) and an internal value (input_B) , can I use Action-Qaulifier in software forced mode to do it?
i.e.
set up ADC interrupt to read the analog input_A.
If input_A > input_B, then use Action-Qualifier to force PWM to be high. Otherwise to force PWM to be low.
And update the software-forced register in each ADC interrupt.
I was trying to use the on-chip analog comparator to do it, but I had to convert the internal value to analog signal (DAC) and I was not sure about Ramp Generator.
Any suggestion or comments will be appreciated.
Frank