Repurposing a RL78/G10 Pin at Runtime

Hello,

I have a R5F10Y47 (using CC-RL compiler and CS+ for CC). Is it possible for me to repurpose a pin at runtime?

For example, pin 12 of the MCU can be used as: analog pin for A/D Converter, rise/fall edge detection, and GPIO. Is it possible to reconfigure them at runtime? How can I do that (e.g., maybe modify PMC03 so I can switch between ADC and GPIO)?

Thanks for your time and help!

Parents Reply Children
No Data