1 millisecond timer in s12z controller

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

1 millisecond timer in s12z controller

2,080件の閲覧回数
baji
Contributor I

Hi,

I need 1 millisecond timer program in s12z controller. Please help as soon as possible.

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

2,057件の閲覧回数
baji
Contributor I

We are using this MC9S12ZI128 controller

 

0 件の賞賛
返信

2,060件の閲覧回数
baji
Contributor I

We are using MM9Z1_638 for both controller and AFE like intelligent sensor.please suggest 1 millisecond timer program

 

0 件の賞賛
返信

2,025件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @baji,

You can use one of these timers: API, RTI (both configurable in the CPMU) or TIM in the output compare mode.

danielmartynek_0-1636450949546.png

For example, this is API's selectable interrupt periods:

danielmartynek_1-1636451003524.png

You can refer to the attached example, it utilizes TIM and API.

It is an S12ZVL example, but all the modules are very similar on MM9Z1.

 

Regards,

Daniel

 

0 件の賞賛
返信

2,072件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @baji,

Which S12Z part do you have?

 

BR, Daniel

0 件の賞賛
返信