PWM Input Capture Delay Issue in S32K344

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

PWM Input Capture Delay Issue in S32K344

Jump to solution
1,428 Views
NAGASOUNDARYA
Contributor I

In PWM INPUT CAPTURE ONLY WORKED IN DELAY = 4000000, WITHOUT DELAY NOT GET the PWM OUTPUT HOW TO RESOLVE THE ISSUE, BELOW I ATTACHED THE CODE. 

 

// Read PWM frequency and duty cycle from the input pin (ISN_MTR_PWM_IN)
pwm_icu_data result;
Emios_Icu_Ip_GetDutyCycleValues(PwmPinMapConfig[PwmSignalName].Instance_Val, PwmPinMapConfig[PwmSignalName].Channel_Num, &Ipwm_duty_cycle);
uint16 active_time = Ipwm_duty_cycle.ActiveTime; // Get the high time
uint16 period_time = Ipwm_duty_cycle.PeriodTime; // Get the total period
if (period_time > 0)
{
result.frequency = clock_frequency/period_time;
result.captured_duty_cycle = ((double) active_time /(double) period_time) * 100.0;
}
// Start PWM on CHILLER_EX_VALVE channel with frequency and duty cycle
Start_Pwm_Output(Chiller_Ex_Valve, Frequency, Duty_Cycle);
delay();
0 Kudos
Reply
1 Solution
1,393 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

For period and duty cycle measurement, please refer to the following community post:

https://community.nxp.com/t5/S32K/s32k312-Measure-the-pwm-pulse-using-eMIOS/td-p/2086167

Hope it helps you.

Have a nice day!

View solution in original post

0 Kudos
Reply
3 Replies
1,394 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

For period and duty cycle measurement, please refer to the following community post:

https://community.nxp.com/t5/S32K/s32k312-Measure-the-pwm-pulse-using-eMIOS/td-p/2086167

Hope it helps you.

Have a nice day!

0 Kudos
Reply
1,370 Views
NAGASOUNDARYA
Contributor I
HI above one is not working in my code it shows default period 65536 why? and i need RTD 4 VERSION above one is RTD 5 ?
0 Kudos
Reply
1,373 Views
NAGASOUNDARYA
Contributor I
i need RTD 4 VERSION
0 Kudos
Reply