Example C Code for PIC16F18346 on Curiosity Demoboard
LabIntro
GPIOs Control using button (LED Turn on when you push the button on the development board)
Lab1
GPIOs Toggle with __delay_ms(200); (LED Toggle with __delay_ms(); macro function in XC8 Compiler)
Lab2
GPIOs Toggle with Timer Interrupt (LED Toggle with Timer Interrupt)
Lab3
GPIOs control with ADC value from a potentiometer (LED Control by using ADC value which is connected with a potentiometer)
Download all the files described above
[MCC를 이용한 Curiosity 데모보드 강의] - Curiosity 데모보드(DM164137) overview