mirror of https://github.com/ARMmbed/mbed-os.git
[LPC11U68] Fixed ADC sampling clock issue
parent
c68b1cd57e
commit
e4e5683036
|
|
@ -73,7 +73,7 @@ void analogin_init(analogin_t *obj, PinName pin) {
|
|||
tmp = LPC_ADC->CTRL;
|
||||
} while ((tmp & (1UL << 30)) != 0);
|
||||
|
||||
LPC_ADC->CTRL = 100; // 500kHz sampling
|
||||
LPC_ADC->CTRL = 1; // Sampling clock: SystemClock divided by 1
|
||||
}
|
||||
|
||||
static inline uint32_t adc_read(analogin_t *obj) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue