We used lpadc_polling example to read the data in ADC1. Its working fine.
But we need to read ADC2 channels for our project, If I change the base address of ADC1 with ADC2 its not working.
Can you please share any working example for ADC2?
Hi,
DEMO_LPADC_BASE definition from LPADC1 to LPADC2, and DEMO_LPADC_USER_CHANNEL to 4. That's all what I did on the polling example. But if you test the interrupt example, you should also modify the interrupt related code.
Regards,
Jing
Hi @Ykciv ,
Just change DEMO_LPADC_BASE definition from LPADC1 to LPADC2 is enough.
I tested on RT1170 EVK, define DEMO_LPADC_USER_CHANNEL to 4 (because LPADC2 CH0 doesn't pin out on the board). It works fine.
Regards,
Jing