We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
int x; PINSEL0 = (PINSEL0 & 0x3FFF3FF0) | 0x00000005; // Configure pins for touch screen PINSEL1 = (PINSEL1 & 0xC3FFFFFF) | 0x10000000; IO0DIR = (IO0DIR & 0xDFFF7F7F) | 0x00008080; IO0SET = IO0SET | 0x00000080; // Set pin to '1' IO0CLR = IO0CLR | 0x00008000; // Set pin to '0' AD0CR = ( AD0CR & 0xFFD00000 ) | 0x00200208 ; // Start the ADC
can anyone tell me the pins I need to connect in my board according to the code
Whats wrong with your reference manual?
The code you 'found' is very ugly. Maybe if you knew more about what you're after then you'd recognise something better.