Cannot configure the ICU Driver with SIGNAL MEASUREMENT MODE and DUTY_CYCLE

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

Cannot configure the ICU Driver with SIGNAL MEASUREMENT MODE and DUTY_CYCLE

1,717 Views
joluherpad
Contributor I

Hello all,

we are having problems configuring the Icu Driver as input to read the PWM signal, the problem is that the ISR is making the M4 core to have multiple resets, and the API "GetDutyCycleValues doesn return anything" the configuration is as follows:

We have created an Icu Channel 0 in to detect RISING_EDGE, the Hw IP: is TPM, and the measurement mode is: ICU_MODE_SIGNAL_MEASUREMENT.

joluherpad_0-1667588126612.png

joluherpad_1-1667588275425.png

We have activated the ISR HW ID for TPM_0:

joluherpad_2-1667588321603.png

And created and ICU Tpm Channel:

joluherpad_3-1667588394032.png

 

The OS configuration for the TPM_0_ISR looks like this:

joluherpad_4-1667588451369.png

And the PortPin created to handle this look like this:

joluherpad_5-1667588537812.png

 

 

 

0 Kudos
Reply
1 Reply

1,684 Views
Juan-Rodarte
NXP Employee
NXP Employee

Hi Jose,

We have a demo of the TPM driver in the SDK, did you use it as a base or guide to make your own? If not, could you compare it to the SDK?

The MCAL driver is made by you or by the software service team?

Best regards,

Diego.

0 Kudos
Reply