Problem with Input Capture at alternative pin at MC9S08PA32.

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

Problem with Input Capture at alternative pin at MC9S08PA32.

422 Views
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?

Labels (1)
0 Kudos
1 Reply

309 Views
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 Kudos