[Google Translation]
S32K312, main frequency 120MHz, can EMIOS collect 3Hz PWM signal?
Hi,
Thank you so much for your interest in our products and for using our community.
For PWM frequency of 3Hz with eMIOS clock frequency of 120MHz (using internal counter bus) you need 40,000,000 ticks:
1s -> 120MHz (120,000,000 ticks)
3Hz = (1/3)s
->120,000,000 *(1/3) = 40,000,000 ticks
But max ticks are 65,534 (16 bits).
On the other hand, ICU modes (SAIC, IPWM or IPM) allows to use Modulus Counter mode as time base, and with it you can use the global prescaler (1-256), master bus prescaler (1-12) and ICU eMIOS prescaler (1-12).
So, regarding your question, you can collect a 3Hz PWM signal with ICU modes, if you use Modulus Counter mode as time base.
Hope it helps you.
Have a nice day!
[Google Translation]
S32K312, main frequency 120MHz, can EMIOS collect 3Hz PWM signal?
Hi,
Thank you so much for your interest in our products and for using our community.
For PWM frequency of 3Hz with eMIOS clock frequency of 120MHz (using internal counter bus) you need 40,000,000 ticks:
1s -> 120MHz (120,000,000 ticks)
3Hz = (1/3)s
->120,000,000 *(1/3) = 40,000,000 ticks
But max ticks are 65,534 (16 bits).
On the other hand, ICU modes (SAIC, IPWM or IPM) allows to use Modulus Counter mode as time base, and with it you can use the global prescaler (1-256), master bus prescaler (1-12) and ICU eMIOS prescaler (1-12).
So, regarding your question, you can collect a 3Hz PWM signal with ICU modes, if you use Modulus Counter mode as time base.
Hope it helps you.
Have a nice day!