TI中文支持网
TI专业的中文技术问题搜集分享网站

TDA4VE-Q1: TDA4VH-EPWM相位相同,频率不同

Part Number:TDA4VE-Q1

外设有这样需求,相位保持一样,频率不同,频率例子(EPWM0,A通道30KHZ,EPWM1 A通道15KHZ)

先处理相位,遇到问题如下,

测试引脚为EPWM0/EPWM1的通道A,同频率,示波器显示相位没有对齐,请问怎样对齐

请问怎样对齐

软件的操作

我们在epwm打开dts节点测试

board-support\linux-kernel\arch\arm64\boot\dts\ti\k3-j784s4-evm.dts

&main_ehrpwm0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_epwm0_pins_default>;
};
&main_ehrpwm1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&main_epwm1_pins_default>;
};

 cat pwm.sh 
if [ ! -d /sys/class/pwm/pwmchip0/pwm0/ ];then
echo 0 > /sys/class/pwm/pwmchip0/export
fi
echo 25000 > /sys/class/pwm/pwmchip0/pwm0/period
echo 20000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
echo 1 >/sys/class/pwm/pwmchip0/pwm0/enable

if [ ! -d /sys/class/pwm/pwmchip2/pwm0/ ];then
echo 0 > /sys/class/pwm/pwmchip2/export
fi
echo 25000 > /sys/class/pwm/pwmchip2/pwm0/period
echo 20000 > /sys/class/pwm/pwmchip2/pwm0/duty_cycle
echo 1 > /sys/class/pwm/pwmchip2/pwm0/enable

if [ ! -d /sys/class/pwm/pwmchip4/pwm0/ ];then
echo 0 > /sys/class/pwm/pwmchip4/export 

Cherry Zhou:

您好,您的问题我们需要升级到英文论坛寻求帮助,链接如下:

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1257381/tda4ve-q1-the-tda4vh-epwm-phase-is-the-same-with-different-frequencies

,

Cherry Zhou:

您好,请看以下答复:

从您的描述来看,您能够获得正确的 PWM 周期/ DUTY_CYCLE。 

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/800572/linux-pwm-signals-synchronization/2963166#2963166

请参阅以上帖子看下是否对您有帮助。

赞(0)
未经允许不得转载:TI中文支持网 » TDA4VE-Q1: TDA4VH-EPWM相位相同,频率不同
分享到: 更多 (0)