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

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

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

1,510 次查看
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 回复

1,121 次查看
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