How to write CMU driver? Is there sample code?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to write CMU driver? Is there sample code?

930件の閲覧回数
xiaohuang
Contributor I

Can CMU be configured in S32? How to write CMU driver? Is there sample code?

0 件の賞賛
7 返答(返信)

909件の閲覧回数
xiaohuang
Contributor I

 

I am using the S32K118 ,Then I don't know how to configure the CMU, how to verify that the configuration is correct.

0 件の賞賛

912件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@xiaohuang

  Can you tell me which device are you using? 

  CMU is available in only S32K11x series of devices. Other products in the S32K14x series do not have CMU.

BR!

    Jim,

0 件の賞賛

898件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@xiaohuang

       I have sent you a routine in private,this demo just for your refenence.

 

0 件の賞賛

894件の閲覧回数
xiaohuang
Contributor I

Ok, i got it, thanks you so much .I have another question, how do i test the CMU?

0 件の賞賛

891件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@xiaohuang

        Try to manipulate the thresholds in HTCR and LTCR registers,then generate a Loss of Clock reset when monitoring the FIRC.

BR!

    Jim,

0 件の賞賛

815件の閲覧回数
xiaohuang
Contributor I

Thank you for the example you provided last time. How is the CMU1 threshold calculation formula derived? No related formula found on the document

0 件の賞賛

902件の閲覧回数
xiaohuang
Contributor I

I am using the S32K118 ,Then I don't know how to configure the CMU, how to verify that the configuration is correct.

0 件の賞賛