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();