Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

zhji_4006061
Level 2
10 questions asked 25 sign-ins 10 sign-ins
Level 2

hi all:

    目前我用TCPWM来生成PWM脉冲,通过延时可以控制发送脉冲的个数,如下:

Cy_TCPWM_TriggerStart(TCPWM0, PWM_I_CNT_MASK);
Cy_SysLib_DelayUs(8);
Cy_TCPWM_TriggerStopOrKill(TCPWM0, PWM_I_CNT_MASK);

但这种方式不太精确。我想实现PWM固定发送10个脉冲,这个有其他方式实现吗?谢谢

0 Likes
1 Solution
yoya_4785701
Level 4
25 replies posted First like given First like received
Level 4

可以在周期中断里计数8次后停止。

View solution in original post

0 Likes
1 Reply
yoya_4785701
Level 4
25 replies posted First like given First like received
Level 4

可以在周期中断里计数8次后停止。

0 Likes