Hi Francisco
I can't help with the PE setup but if you want a working solution you can simply use the uTaskerV1.4 project which includes a buffered ADC/DAC configuration based on DMA and PDB which is very practical for adding signal processing in between.
The ADC/DAC configuration and operatrion is explained in the document http://www.utasker.com/docs/uTasker/uTaskerADC.pdf
Download the uTasker project from http://www.utasker.com/forum/index.php?topic=1721.0 - it will build with CW, KDS, IAR, Keil, Rowley, Atollic, Coo Cox, standalone GCC or Visual Studio. Then select your processor and board in config.h:
#define KINETIS_K40 // choose family
#define TWR_K40X256 // choose board
In app_hw_kinetis.h enable both ADC and DAC support: #define SUPPORT_ADC and #define SUPPORT_DAC
In ADC_Timers.h enable the ADC/DAC operation with #define TEST_AD_DA and make any configuration changes according to the interfaces in the document (sampling rate, resolution, buffer size, DMA channel allocation etc.)
On each half-buffer completion there is an event ADC_TRIGGER_1 (see handling in ADC_Timers.h) and code there can process the buffer as required - it has to be complete before the next half buffer is required so adjusting the buffer size allows compromising between buffer processing rate and delay.
Regards
Mark
µTasker Kinetis support