Updated data for ES

This commit is contained in:
sherlock 2025-10-16 12:44:06 +05:30
parent a4d545ac19
commit 5c5d001759

View file

@ -35,7 +35,7 @@ int main(void) {
void ADC_init(void) {
LPC_PINCON->PINSEL3 = 3 << 28; // P1.30 as AD0.4
LPC_SC->PCONP = 1 << 12; // Power to ADC
LPC_ADC->ADCR = (1 << 4) | (1 << 16) | (1 << 21); // select AD0.4, burst mode, enable
LPC_ADC->ADCR = (1 << 4) | (1 << 24) | (1 << 21); // select AD0.4, burst mode, enable
LPC_ADC->ADINTEN = (1 << 4); // Enable interrupt for AD0.4
NVIC_EnableIRQ(ADC_IRQn);
}