Thank you for your help. Currently, I am able to collect data, but I found that the duty cycle and period do not match my expectations. I input a PWM wave with 1KHZ and a duty cycle of 50% using the signal generator.
However, the collected data shows that ic_result_temp.PeriodTime = 54472, and ic_result_temp.ActiveTime = 1775.
According to the formula, the calculated duty cycle is 100*1775/54472=3%. And the frequency is Clock_Ip_GetClockFrequency(EMIOS0_CLK)/54472= 120MHZ/54472=2202HZ. Could you please take a look at it again?
