This program demonstrates the usage of the ADC. Program sets pin P1.31 as an ADC chanel 5 input to which we connect the potentiometer. Program then turns on an embedded LED on the LPC4088 QSB when the potentiometer's digital value exceeds the middle value.
Dependencies: mbed
LPC4088-system.h
- Committer:
- 71GA
- Date:
- 2015-05-02
- Revision:
- 0:3b7f012600ec
File content as of revision 0:3b7f012600ec:
//LPC4088 sistemski in clock registri #define PCONP (*((volatile unsigned int *) 0x400FC0C4)) #define RSTCON0 (*((volatile unsigned int *) 0x400FC1CC))