Reg checking the frequency set on emios pin using software

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

Reg checking the frequency set on emios pin using software

1,190件の閲覧回数
vignesh_v
Contributor III

How to check the pin channel has been set to certain frequency. For eg 5Hz has been set .How to verify that it has been set successful on that part pin / channel using software or code.

In mpc5777c

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

1,126件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I expect you are talking about PWM generation.

1. the easiest solution is to use scope.

2. But in the SW solution is to calculate PWM period for 5Hz and set PWM modulo register to calculated value.

If you know that your modulo value is for example 0xFF88h then you can easily check the modulo register with SW checks and you will be sure that PWM on pin is expected 5Hz. On advance you also can monitor SIU module if the pin functionality hasn't change during device runtime.

3. Another HW solution is to connect ADC to the PWM pin and measure the frequency by ADC.

regards,

Peter

0 件の賞賛
返信