Hello, I am new to LPC Microcontrollers and trying to program on my own. I want to write '1' to a particular Pin on LPC1768 that performs the function of SCK(Serial Clock). My question is, Do I need to always use PINSEL to select the pin before I use FIODIR and set the Pin.
Also what are difference between the statements below:
LPC_PINCON->FIODIR |= (1<<15);
LPC_GPIO0->FIODIR |= (1<<15);
LPC_GPIO0->FIODIR |= ((1<<15) | (1<<16));
LPC_GPIO2->FIODIR &= ~((1<<15) | (1<<16));
Thank you.
This is a specific question about a particular chip; you need to ask the chip manufacturer - NXP, in this case - it has nothing to do with ARM:
See: https://community.arm.com/developer/tools-software/tools/f/keil-forum/43684/lpc2148-timer0-not-working-as-expected/158950#158950
Again, training & support resources:
https://community.arm.com/developer/tools-software/oss-platforms/f/dev-platforms-forum/49224/23a256-23k256-serial-sram-on-lpc1768/171770#171770