question on input-capture and true-time simulator

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

question on input-capture and true-time simulator

Jump to solution
705 Views
holder
Contributor I

Folks,

 My target is MC9s12DP256B

 I am using Code Warrior v5.1 for HCS12.

 

My Question:

Is it possible to send data into the input-capture channel 0 running with the full chip simulator?

I tried using the "stimulator component" with the following sample script from the docs:

def a = TIMER.PORTTBit0;

PERIODICAL 4000,500:

1000 a = 1;

3000 a = 0;

END

 

When executed I do not see the interrupt 8 capture0Handler ISR get called in my code. The code works fine on physical target but we don't have enough boards yet.

 

Obviously I am doing something wrong in the simulator. Thanks for any advice.

bob

Labels (1)
0 Kudos
1 Solution
515 Views
kef
Specialist I

Try replacing TIMER.PORTTBit0 with PIM.PORTTPin0. It worked for me.

 

You should use Inspect component to see if particular object is implemented. I didn't found TIMER object, only Ect and port integration module PIM.

View solution in original post

0 Kudos
2 Replies
516 Views
kef
Specialist I

Try replacing TIMER.PORTTBit0 with PIM.PORTTPin0. It worked for me.

 

You should use Inspect component to see if particular object is implemented. I didn't found TIMER object, only Ect and port integration module PIM.

0 Kudos
515 Views
holder
Contributor I

Yes. that worked fine. thank you for the solution.

bob

0 Kudos