AnsweredAssumed Answered

Timer Emulation using PIT and GPIO

Question asked by shaul dorf on Aug 20, 2018
Latest reply on Aug 23, 2018 by shaul dorf

For educational purpose I'm trying to rewrite Application Note

AN4419 - Using DMA and GPIO to emulate time functionality on Kinetis (2012).

I use MCUXpresso 10.2 and KSDK FRDM-K64F_2.4.2

My configuration is empty board files (~20 MHz sys and bus clock)

In original implementation the GPIO PCR is configured as

PORTD->PCR[0] |= PORT_PCR_MUX(1) | PORT_PCR_IRQC(1);

My solution it is working only when PCR is

PORTD->PCR[0] |= PORT_PCR_MUX(1) | PORT_PCR_IRQC(3);

I believe that something is wrong with my DMA TCD setup but I can't fined what is wrong.

I'm attaching project zip file.

Attachments

Outcomes