Reg checking the frequency set on emios pin using software

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reg checking the frequency set on emios pin using software

380 Views
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

Labels (1)
0 Kudos
1 Reply

316 Views
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 Kudos