MIOS32_BOARD_* functions are intended for reading the pins in digital, and not in analog mode. For Analog readouts you've to use the AIN driver. See following tutorial: https://github.com/midibox/mios32/tree/master/apps/tutorials/011_ain Best Regards, Thorsten.