大家好:
我目前想用C2000系列的芯片做一个D类放大器的控制单元,它需要实现的控制功能是对输入信号进行ADC采样,并在内部产生一个高频(大概400KHz)的三角波,然后将采样结果和三角波进行比较,根据比较结果控制输出的PWM的电平,从而得到一个变频的PWM。
目前遇到的问题是,请问即时改变PWM的输出电平可以用2812或者28027实现么?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我只用过2407和 2809
就2809来说,Action-Qualifier (AQ) Submodule中就可以改变输出
可以改变控制寄存器AQCTLA,使得输出强制设为高,低,或者翻转(当满足触发条件时,比如到达cmpa比较值)
Set High:
Set output EPWMxA or EPWMxB to a high level.
· Clear Low:
Set output EPWMxA or EPWMxB to a low level.
· Toggle:
If EPWMxA or EPWMxB is currently pulled high, then pull the output low. If EPWMxA or EPWMxB is
currently pulled low, then pull the output high.
如果你设为翻转,就相当于pwm始终位于高低变化中,改变占空比,就改变了高低电平的相对比例。
如果你想直接改变pwm输出,就强制高或者低。。当然2812没用过,是否可以设为强制,我就不清楚了。