I tried to make test program for my mTouch panel which is described on the Microchip web page. Unfortunately I did not found any demo program on this page, only some snippets in pdf documents. So I started to write a program in C. During this process I had to realise, that there is something wrong around the array index. When I use indexed array both in interrupt routine and main program, the data in the array become confused. I made a solution which is very unconfortable. You can check it. This program try to display the actual reading of the sensor the maximum and the minimum values on a serial LCD panel.
I am using sdcc in PikLab.
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5416 (Mar 22 2009) (UNIX)