S32K312 ICU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,586件の閲覧回数
WeiCh
Contributor III

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

0 件の賞賛
返信
1 解決策
1,565件の閲覧回数
_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,566件の閲覧回数
_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,547件の閲覧回数
WeiCh
Contributor III
谢谢,我已经找到了原因,是我PWM输出源的问题
0 件の賞賛
返信
1,552件の閲覧回数
WeiCh
Contributor III

下面是Mcl的配置:

WeiCh_1-1742000402839.png

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

WeiCh_2-1742000469007.png

 

 

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-2062023%22%20slang%3D%22ja-JP%22%20mode%3D%22CREATE%22%3ES32K312%20ICU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2062023%22%20slang%3D%22ja-JP%22%20mode%3D%22CREATE%22%3E%3CP%3ES32K312%2C%E4%B8%BB%E9%A2%91120MHz%EF%BC%8CEMIOS%E8%83%BD%E9%87%87%E9%9B%863Hz%E7%9A%84PWM%E4%BF%A1%E5%8F%B7%E5%90%97%3C%2FP%3E%3C%2FLINGO-BODY%3E