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.
TMS320F28034仅仅只有7路HRPWM,现在做一款电池产品,用一个芯片独立控制8路输出,要求都要有HRPWM,如何将TM320F28034扩展到8路HRPWM
可用其他方法实现另外一路HPWM出来吗?
谢谢!
C:\ti\controlSUITE\device_support\f2803x\v130\DSP2803x_examples_ccsv5\hrpwm_slider,请问这个是的吗?初始化的时候这里不太明白,DutyFine 这个值哪里来?while (update ==1),这个又怎么解释?
while (update ==1)
{
// for(DutyFine =1; DutyFine <255 ;DutyFine ++)
{
// Example, write to the HRPWM extension of CMPA
EPwm1Regs.CMPA.half.CMPAHR = DutyFine << 8; // Left shift by 8 to write into MSB bits
EPwm2Regs.CMPA.half.CMPAHR = DutyFine << 8; // Left shift by 8 to write into MSB bits
// Example, 32-bit write to CMPA:CMPAHR
EPwm3Regs.CMPA.all = ((Uint32)EPwm3Regs.CMPA.half.CMPA << 16) + (DutyFine << 8);
EPwm4Regs.CMPA.all = ((Uint32)EPwm4Regs.CMPA.half.CMPA << 16) + (DutyFine << 8);
}
}
我现在遇到的具体问题是这样的,我的pwm是75k,系统频率16.66ns,75k对应800个计数周期,移相的时候计数周期太大了,计数值每加1,我这里输出值会变化5,导致系统不稳定,我需要移相时计数器值细分大约5步,这样每次相当于只移相只有原来的5分之一,输出变化1,系统就稳定了。