Kinetis K60 Tower FTM Capture Mode not working ... Please Help !

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

Kinetis K60 Tower FTM Capture Mode not working ... Please Help !

919件の閲覧回数
proberts
Contributor I

I've set up FTM1 Channel 0 to Capture using FTM1_C1V using the capture input pin at PTA13 (FTM1_CH1).  I'd like to interrupt on both edges.  My interrupt is enabled.  I have placed a breakpoint inside the generated function TU2_OnChannel0.

 

I am using FTM0 to generate a 60 Hz square wave by toggling a GPIO from within the ISR.  I have hard-wired this GPIO to location A20 on my Freescale proto board for my K60 tower.  My schematic shows that A20 is connected to PTA13.  I have connected a scope and can see the 60Hz square wave plain as day on location A20 (which I really hope is connected to PTA13.)

I have spent a lot of time juggling things around to get my debugger to go to the breakpoint, with no luck.  Attacvhed is my PE screen shot.

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

530件の閲覧回数
ProcessorExpert
Senior Contributor III

Hi,

 

Unfortunatelly, your screenshot does not show configuration of the capture component.

Could you please post a sample project showing the problem or at least ProcessorExpert.pe file (it contains configuration of all components).

 

best regards
Petr Hradsky
Processor Expert Support Team