PWM Input Capture Delay Issue in S32K344

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PWM Input Capture Delay Issue in S32K344

跳至解决方案
1,500 次查看
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 项奖励
回复
1 解答
1,465 次查看
_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 项奖励
回复
3 回复数
1,466 次查看
_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 项奖励
回复
1,442 次查看
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 项奖励
回复
1,445 次查看
NAGASOUNDARYA
Contributor I
i need RTD 4 VERSION
0 项奖励
回复