Skip to the content of the web site.

Input/output examples

The sample file interacts with three peripherals of the LPC 1768 microcontroller, including

  • the LED lights as an output port,
  • the push-button labeled INT0 (next to the RESET button), and
  • the potentiometer.

Slides covering the functionality of the LPC 1768 peripherals is available here.

void LEDInit( void )
void turnOnLED(unsigned char led)
void turnOffLED(unsigned char led)

void INT0Init(void)
void EINT3_IRQHandler(void)

void ADCInit(void)
void ADC_IRQHandler(void)
unsigned short int getADCValue(void)