1 millisecond timer in s12z controller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

1 millisecond timer in s12z controller

2,104 Views
baji
Contributor I

Hi,

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

0 Kudos
Reply
4 Replies

2,081 Views
baji
Contributor I

We are using this MC9S12ZI128 controller

 

0 Kudos
Reply

2,084 Views
baji
Contributor I

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

 

0 Kudos
Reply

2,049 Views
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 Kudos
Reply

2,096 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @baji,

Which S12Z part do you have?

 

BR, Daniel

0 Kudos
Reply