Hello,
I use a PWM channel to generate waveform as input source of ICU, and fix 10Hz for this channel.
Another channel is used for ICU function.
Here is my testing data:
we can find that if use FIRC as eMIOS source clock, the results are right.
If use PLL-PHI0, the results are wrong, moreover, the active time value is bigger than period, that's unreasonable.
I also find the official RTD eMIOS_ICU example use FIRC as eMIOS source clock,but if we create a new application project, the eMIOS instances use PLL as source clock in the clock map.
I'd like to know why ICU can't use PLL as source clock and how to fix that?
For above tesing data, if I'm wrong please correct it!
Thanks in advance!
已解决! 转到解答。
Hi,
this is because you got overflows (or several one) when using timebase running from 160MHz clock. Not sure how ICU driver support overflows, seems not. You should set timebase with respect of input signal. Try to increase prescaler of timebase (emios2 ch23), then you shoul dget right result too.
BR, Petr
Hi,
this is because you got overflows (or several one) when using timebase running from 160MHz clock. Not sure how ICU driver support overflows, seems not. You should set timebase with respect of input signal. Try to increase prescaler of timebase (emios2 ch23), then you shoul dget right result too.
BR, Petr