question on input-capture and true-time simulator

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

question on input-capture and true-time simulator

跳至解决方案
738 次查看
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

标签 (1)
0 项奖励
1 解答
548 次查看
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 项奖励
2 回复数
549 次查看
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 项奖励
548 次查看
holder
Contributor I

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

bob

0 项奖励