PWM Input Capture Delay Issue in S32K344

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

PWM Input Capture Delay Issue in S32K344

ソリューションへジャンプ
1,427件の閲覧回数
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,392件の閲覧回数
_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,393件の閲覧回数
_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,369件の閲覧回数
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,372件の閲覧回数
NAGASOUNDARYA
Contributor I
i need RTD 4 VERSION
0 件の賞賛
返信