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@0:3b7f012600ec, 2015-05-02 (annotated)
- Committer:
- 71GA
- Date:
- Sat May 02 17:33:44 2015 +0000
- Revision:
- 0:3b7f012600ec
This is the first commit of this program.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
71GA | 0:3b7f012600ec | 1 | //LPC4088 sistemski in clock registri |
71GA | 0:3b7f012600ec | 2 | |
71GA | 0:3b7f012600ec | 3 | #define PCONP (*((volatile unsigned int *) 0x400FC0C4)) |
71GA | 0:3b7f012600ec | 4 | #define RSTCON0 (*((volatile unsigned int *) 0x400FC1CC)) |