AnsweredAssumed Answered

FRDM-K64Z - PWM output using PTA0 (J2_2)

Question asked by shaul dorf on Nov 20, 2016
Latest reply on Nov 21, 2016 by shaul dorf

I’m reproducing PWM example provided by Freescale (NXP).

PWM (FTM) example in Kinetis Design Studio with FDRM-K64F “, paper written by Paul Garate and Augusto Panecatl .

I want to redirect PWM output from PTD5 to PTA0 using the same channel #5.

Using PTA0 (J2_2) FTM0_Ch5 the program fails executing ”PORTA->PCR [0] = PORT_PCR_MUX (3);” (line #15) instruction.

SDA debugger is also disconnected for some reason.

When I change PWM to PTC1 (J1_5) FTM0_Ch0 or PTA1 (J1_8) FTM0_Ch6 the same program runs fine.

But when I try to use PTA0 (J2_2) FTM0_Ch5 the program fails executing” PORTA->PCR [0] = PORT_PCR_MUX (3);” (line #15) instruction. SDA debugger is disconnected for some reason.

In the same program by changing to output to PTA1 (and channel #6) everything is working fine.

For the reference I’m attaching my bare source code that’s run on KDS3.2 and KSDK v2.0.

Original Attachment has been moved to: main.c.zip

Outcomes