xc8: SPI, UART, Timer, ADC, EEPROM, PSMC
no vote
Read ADC from RA1 and send to SPI (configure with RC2:CS, RC3:CLK, RC4:SDI, RC5:SDO) RA5, RA3, RB0 connected to button to change frequency of PSMC storage frequency to EEPROM and read EEPROM when sw start