This project uses MPLAB HARMONY V2.06.
Read potentiometer at pin AN24 and outputs raw read throug USART
You need to generate code from MPLAB Harmony configurator to run this project.
MPLAB : v5.50
Tool : PICKit3
Pack : PIC32MZ-EC_DFP - 1.3.44
Compiler Toolchain:
XC32. (v2.30) (v1.44) (v1.40)
https://www.microchip.com/wwwproducts/en/PIC32MZ2048ECH100
https://ww1.microchip.com/downloads/en/DeviceDoc/60001191G.pdf
https://ww1.microchip.com/downloads/en/DeviceDoc/80000588K.pdf