This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x ePWM 问题请教



大家好,

在学习starterware中的ehrpwm_haptics例程,想请教以下问题:

1.例程中的TBCLK 是多少?

TM中TBCLK=SYSCLKOUT/prescale=100M/(CLKDIV*HSPCLKDIV)=100/10=10M HZ

Fpwm=1/ ((TBPRD+1)*TBCLK)=10M/256=39K 

例程中说设置的是19.5K,实际抓取也对,但是不知道我的计算哪里有问题啊?

 

2.如何控制发送PWM的个数呢?

比如想通过PWMB定时间隔发送100个Pulse,这个数量  100  需要操作哪些寄存器控制?