C programming in LPC1768 With example to configure pins and to work as output and input port with simulation in keil.
Why PINSEL0-10 addresses only 16 pins because 1 pin of LPC1768 is multi-functional (upto 4 functions) hence 2 bits are required to address 4 different operation
PINSEL register is 32 bit as 1 pin need 2 bit hence PINSEL 0-10 is divided into 16 bits each for addressing pins.
-~-~~-~~~-~~-~-
Please watch: "how to run assembly on lpc2148"
https://www.youtube.com/watch?v=772q3Wiywfs
-~-~~-~~~-~~-~-
The book regarding the architecture of the CORTEX M3 and notes as per 15EC62 syllabus get it from below link
https://www.amazon.in/Cortex-M3-Arm-notes-15EC62-ebook/dp/B07KNRNH8C