S32K312 ICU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K312 ICU

跳至解决方案
1,161 次查看
WeiCh
Contributor III

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

0 项奖励
回复
1 解答
1,140 次查看
_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 项奖励
回复
3 回复数
1,141 次查看
_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 项奖励
回复
1,122 次查看
WeiCh
Contributor III
谢谢,我已经找到了原因,是我PWM输出源的问题
0 项奖励
回复
1,127 次查看
WeiCh
Contributor III

下面是Mcl的配置:

WeiCh_1-1742000402839.png

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

WeiCh_2-1742000469007.png

 

 

0 项奖励
回复