PIC16LF1787 configuration and ADC Read function