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

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

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

872 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Reply

483 Views
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