question on input-capture and true-time simulator

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

question on input-capture and true-time simulator

ソリューションへジャンプ
1,129件の閲覧回数
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 解決策
939件の閲覧回数
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 返答(返信)
940件の閲覧回数
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 件の賞賛
返信
939件の閲覧回数
holder
Contributor I

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

bob

0 件の賞賛
返信