
Level 2
zhji_4006061
Level 2
Jul 22, 2022
02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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个脉冲,这个有其他方式实现吗?谢谢
Solved! Go to Solution.
1 Solution

Level 4
yoya_4785701
Level 4
Jul 24, 2022
07:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
可以在周期中断里计数8次后停止。
1 Reply

Level 4
yoya_4785701
Level 4
Jul 24, 2022
07:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
可以在周期中断里计数8次后停止。