现在想用F28035的 epwm做一个定时器,有没有哪个指令能实现 epwm定时器的 start ,stop, reload等操作,就像cputimer那样的指令?谢谢
Alvin Chen:你可以看一下这个寄存器:
The TBCLKSYNC bit in the peripheral clock enable registers allows all users to globally synchronize all
enabled ePWM modules to the time-base clock (TBCLK). When set, all enabled ePWM module clocks are
started with the first rising edge of TBCLK aligned. For perfectly synchronized TBCLKs, the prescalers for
each ePWM module must be set identically.
The proper procedure for enabling ePWM clocks is as follows:
1. Enable ePWM module clocks in the PCLKCRx register
2. Set TBCLKSYNC= 0
3. Configure ePWM modules
4. Set TBCLKSYNC=1
现在想用F28035的 epwm做一个定时器,有没有哪个指令能实现 epwm定时器的 start ,stop, reload等操作,就像cputimer那样的指令?谢谢
Charles Ji:
回复 Alvin Chen:
您好,这个寄存器会停止或启动所有EPWM 模块吧,但我想操作一个epwm,有吗?