公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
witness24
Level 3
Level 3
First like given Welcome! First solution authored
如何使用TOM 输出的PWM波形中的高电平中间点来触发ADC采样?
0 点赞
1 解答
harvis
Level 5
Level 5
10 solutions authored First like received First like given
Trigger Operating Mode 只有下面四种,没有问题里面的PWM高电平中间点的配置。需要一个2倍频率的PWM,然后配置上升沿或者下降沿触发ADC。如果PWM频率不能改,则需要再弄一个PWM对它倍频,两个PWM之间的同步需要保证。 00B No external trigger 01B Trigger event upon a falling edge 10B Trigger event upon a rising edge 11B Trigger event upon any edge

在原帖中查看解决方案

0 点赞
4 回复数
JackeyZhang
Level 3
Level 3
10 questions asked First solution authored First like received
需要在EB里面配置ADC硬件触发,选择TOM作为硬件触发源。GTM模块配置ADC要使用的PWM
0 点赞
harvis
Level 5
Level 5
10 solutions authored First like received First like given
“PWM波形中的高电平中间点”逻辑上可以对PWM波形频率倍频一下,在PWM波形的上升沿(或者下降沿)触发采样。
0 点赞
harvis
Level 5
Level 5
10 solutions authored First like received First like given
Trigger Operating Mode 只有下面四种,没有问题里面的PWM高电平中间点的配置。需要一个2倍频率的PWM,然后配置上升沿或者下降沿触发ADC。如果PWM频率不能改,则需要再弄一个PWM对它倍频,两个PWM之间的同步需要保证。 00B No external trigger 01B Trigger event upon a falling edge 10B Trigger event upon a rising edge 11B Trigger event upon any edge
0 点赞
witness24
Level 3
Level 3
First like given Welcome! First solution authored
感谢harvis,还是用同步PWM倍频的方式实现比较方便。
0 点赞