Problem with Input Capture at alternative pin at MC9S08PA32.

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

Problem with Input Capture at alternative pin at MC9S08PA32.

766 次查看
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 回复

653 次查看
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 项奖励
回复