Re: ADC Simple two inputs Read
☄ Helpfulby epareja 2020/04/01 09:51:55
See attached for example of reading multiple ADC on PIC32MX in HarmonyV20501, which I use in HarmonyV206.
- I set the ADC to start upon software trigger, then I can trigger when I want and wait for samples to be ready.
- Samples per interrupt MUST match number of ADC inputs if using scan mode, interrupt or flag will occur after last sample.
- MHC can loose ADC settings in H206, so backup project and consider setting drv_adc_static.c as read-only so doesn't get overwritten by MHC that lost settings (This mostly seen in PIC32MZ ADC).
- Screen capture working MHC settings to a document and put with code... in case MHC looses settings.