Problem with Input Capture at alternative pin at MC9S08PA32.

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

Problem with Input Capture at alternative pin at MC9S08PA32.

767件の閲覧回数
fernandolima
Contributor I

Hello everybody.

I'm having problems with Input Capture at alternative pin at MC9S08PA32.

I am unable to count pulses at PTD1 pin. I think that there is a wrong in configuration code.

My assembly configuration code is:

 

LDA #%01011100

STA SYS_SOPT1

LDA FTM2_MODE

ORA #mFTM2_MODE_WPDIS

STA FTM2_MODE

LDA #%01000100

STA FTM2_C3SC

 

Does anybody know what is the problem?

ラベル(1)
0 件の賞賛
返信
1 返信

654件の閲覧回数
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Fernando

Please check the attached project this is a CW 10.6 project for the tower PT60 that set the FTM2 CH3 on the PTD1 as input capture and also set the FTM1 as PWM, I use it to test the FTM2, unfortunately I am not good with assembly code, you can use the disassemble option on code warrior.

I hope this will help you.


Have a great day,
Vicente

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信