can you please share me any example code for RL78G13 to read multiple ADC channels (At least two) simultaneously.
I'm afraid, RL78G13 doesn't support the simultaneous reading of several channels because there is only one ADC module, and only one of the inputs can be connected to it via the input multiplexer.
So you need to select one channel, read its value, then select the other and read it as well. The example code of using ADC is here https://www.renesas.com/us/en/document/scd/rl78g13-adc-one-shot-mode-sample-code-rev100-sample-code?language=en&r=1054286 and its app note is here https://www.renesas.com/us/en/document/apn/rl78g13-adc-one-shot-mode-sample-code-rev100?r=1054286.
You can also try to modify the code to run the conversion in the scan mode, in which four channels are read one by one automatically. You can read more about this mode here: www.renesas.com/.../rl78g13-users-manual-hardware
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/