Unable to detect GPIO based touch sensing on FRDM-KE02Z

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

Unable to detect GPIO based touch sensing on FRDM-KE02Z

871 Views
francescoprospe
Contributor II

Hi all,

 

I am testing GPIO based touch sensing on the FRDM-KE02Z board, which

features a two-electrodes analog slider.

 

In the Quick Start Package, I have found the precompiled example (shipped

with the board), but I'd like to recreate it at least for the sensing side using

Processor Expert.

 

I've tried to configure the TSS v3.1 to use the two electrodes with the GPIO

based algorithm. Attacched is the TSS_SystemSetup.h generated by Processor

Expert.

 

I've added to the project the WAIT component (provided by Eric Styger) and the

FREEMASTER component.

 

The main routine is something like this:

 

  /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/

  PE_low_level_init();

  /*** End of Processor Expert internal initialization.                    ***/

 

  /* Write your code here */

  /* For example: for(;;) { } */

 

  ICS_C3 = 0x4b;

  test_counter = 0;@

 

  for(;;)

  {

    TSS_Task();

    FMSTR1_Poll();

    WAIT1_Waitms(2);

    test_counter++;

  }

 

The FREEMASTER program is working fine as I can see test_counter variable updating.

 

As PMP I am using the one shipped with the TSS library (GUI), that is convenient

for the plotting enhancement and the panels (electrodes and controls).

 

The communication is good but in the electrodes page, I see no electrodes (no rows).

The controls page is also dead.

 

Could you please check the attached configuration for (stupid) errors?

 

If you need any other info, let me know.

 

 

By the way, is there an example project for the KE02Z with touch sensing?

 

 

Thanks for your time,

Francesco Prosperi

Original Attachment has been moved to: TSS_SystemSetup.h.txt.zip

0 Kudos
1 Reply

467 Views
francescoprospe
Contributor II

After a going-over of the QSP, I found the readme.txt (Tss_Demo) that states the steps needed

to add TSS functionality to a KE02 example.

Apparently only the last step was missing

13. In main(),GPIOA_PIDR must be set as 0, or the GPIO can't be set as input mode.

and after such a modification, the FREEMaster started to put out some relatively good values.

The end of the road is obviously far away but at least I am seeing something working.

If any of you have hands-on advices, they are kindy welcomed.

Regards,

FP

0 Kudos