FlexPWM capture

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

FlexPWM capture

923件の閲覧回数
zcc890406
Contributor II

Hi sir,

      I am using  the function of FlexPWM capture about  MPC5643L and have some question about it.

      The CAVL0 and CAVL1 register  capture the same edge when they were congfigured rising edge. They were triggered at the same time, so  I cannot caculate the frequncy of singal. I canot find the reason about this question.

 

thank you for help.

ラベル(1)
0 件の賞賛
返信
1 返信

795件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

if both capture circuits are enabled they are not triggered at the same time. They will work together in a ping-pong style, so once input capture process is started the capture circuit 0 is first armed and when a capture event occurs, capture circuit 1 is armed, and so on depending the capture mode.

For sure you can get the same value in CVALx registers, but it should belongs to another PWM period. You can read the CVALxCYC register to distinguish between PWM cycles.

BR, Petr

0 件の賞賛
返信