S12XE TIM Input Capture

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

S12XE TIM Input Capture

ソリューションへジャンプ
1,154件の閲覧回数
rayhall
Contributor V

Hello,

 

I cannot get the TIM input capture interrupt to work. I have a square wave signal connected to pin PP0. I want an interrupt on both edges.

 

I have made a simple test project. I have attached the code.

 

Please do not mark this question as "Assumed Answered" until I confirm the answer is correct or solved.

 

Thank you,

 

Ray.

Original Attachment has been moved to: TIM_Capture.zip

ラベル(1)
0 件の賞賛
返信
1 解決策
1,005件の閲覧回数
kef2
Senior Contributor V

Have a look at PTRRR register. By default TIM is routed to port R.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,006件の閲覧回数
kef2
Senior Contributor V

Have a look at PTRRR register. By default TIM is routed to port R.

0 件の賞賛
返信
1,005件の閲覧回数
rayhall
Contributor V

Edward,

Thank you. I am using the 144 pin S12XE so it has no Port R.

I have attached the working version as it may help others.

Ray.

0 件の賞賛
返信