1 millisecond timer in s12z controller

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

1 millisecond timer in s12z controller

2,085 次查看
baji
Contributor I

Hi,

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

0 项奖励
回复
4 回复数

2,062 次查看
baji
Contributor I

We are using this MC9S12ZI128 controller

 

0 项奖励
回复

2,065 次查看
baji
Contributor I

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

 

0 项奖励
回复

2,030 次查看
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,077 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @baji,

Which S12Z part do you have?

 

BR, Daniel

0 项奖励
回复