Hello,
I am testing out the ADC Example Project for the RZ/A3UL Octal Edition Evaluation Kit, and reading values from ADC_CHANNEL_0 works fine, however, if I adjust the code to read from CH1 I get incorrect values.
The only line of the code which I adjusted is the following, in src/adc_ep.c:
err = R_ADC_C_Read (&g_adc_ctrl, ADC_CHANNEL_1, &g_adc_data);
I get the same strange behaviour on a custom board I've designed based on the R9A07G063U01GBG#AC0 chip.
Any ideas which might be the issue here?
Thank you in advance!
Hi
I guess the setting of ADC driver on FSP Configuration hasn't been changed for ch1.
How about changing the check mark of "Analog input channel" to CH1?
FSP Configuration can be opened by double clicking the configuration.xml in the project.
This worked, turns out only CH0 was enabled in my case. Thank you!