Announcements

Ever wondered how you could shape the future in collaboration with others? Join us at OktoberTech Asia Pacific and get inspired. Click here to sign up FREE of charge.

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

PSoC™ 6 Forum Discussions

zhji_4006061
Level 3
First solution authored 10 questions asked 25 sign-ins
Level 3

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
yangyong
Level 4
5 likes given 5 solutions authored 25 replies posted
Level 4

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

View solution in original post

0 Likes
1 Reply
yangyong
Level 4
5 likes given 5 solutions authored 25 replies posted
Level 4

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

0 Likes