S32K312 ICU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 ICU

Jump to solution
1,159 Views
WeiCh
Contributor III

S32K312,主频120MHz,EMIOS能采集3Hz的PWM信号吗

0 Kudos
Reply
1 Solution
1,138 Views
_Leo_
NXP TechSupport
NXP TechSupport

[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!

View solution in original post

0 Kudos
Reply
3 Replies
1,139 Views
_Leo_
NXP TechSupport
NXP TechSupport

[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!

0 Kudos
Reply
1,120 Views
WeiCh
Contributor III
谢谢,我已经找到了原因,是我PWM输出源的问题
0 Kudos
Reply
1,125 Views
WeiCh
Contributor III

下面是Mcl的配置:

WeiCh_1-1742000402839.png

请问我该如何配置EMIOS的通道,达到我想要的分频值:240*12,谢谢!

WeiCh_2-1742000469007.png

 

 

0 Kudos
Reply