dear NXP experts:
I met a problem while using eMIOS for ICU.
the MCU I am now taking use is S 32K312 and I take use of eMIOS_1 for both PWM output and ICU capture. the detail information is that I take use of eMIOS_1 channel0 as BUS B for PWM output and take use of eMIOS_1 channel22 as BUS F for ICU.
the pin for PWM output is PTE21 and it is related with eMIOS_1 channel 1,so I think eMIOS_1 channel 0 can provide BUS B for PTE21 for the PWM output.
the pin for ICU capture is PTC7 and it is related with eMIOS_1 channel 7, so I think eMIOS_1 channel22 can provide BUS F for the ICU capture.
now I set a clock divider as 20 for eMIOS_1 and I think the clock for eMISO_1 is 6M . I also set the PWM period value as 6000 so the actual period time is 1ms and I get the actual PWM period in oscilloscope。
But the ICU value is not expected . by analysis :BUS F provide a base for ICU and the BUS F is 6M, SAIC mode in ICU should also get 6000 tick by calling "
Icu_GetDutyCycleValues(IcuChannel_PTC7,&ICU_HP_PTC7)".but the actual period is 3600.
I feel confused about the ICU period.
I did a test for comparation. I take use of another MCU pin related to emios_0 to generate a same PWM signal and connect this pin to PTC7 . I get the correct result : the period for ICU in PTC 7 is 6000.
so I have a question about the Phenomenon, any misunderstanding about the using of eMIOS? or the one eMIOS instance can not be used for both PWM and ICU if BUS is used?