Icu_17_GtmCcu6_GetDutyCycleValues sometimes returns 0 while duty cycle input still pr

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17612
Level 4
Level 4
First like received
Hi,
Sometimes I see that*Icu_17_GtmCcu6_GetDutyCycleValues() can return 0. Did somebody observe similar effects?

#8042000 12587
0 Likes
1 Reply
User17614
Level 1
Level 1
Hello,

Due to the software structure, Icu_17_GtmCcu6_GetDutyCycleValues() can return 0.
This happens when Icu_17_GtmCcu6_GetDutyCycleValues() is called right after*Icu_17_GtmCcu6_GetInputState() and the period of PWM input is larger or equal to the period of function calls.*
So, please ensure the calling period of*Icu_17_GtmCcu6_GetDutyCycleValues() is larger than* period of PWM input.
0 Likes