Error#128 A #DEVICE required before this line: MPLAB 또는 MPLAB X IDE에서 컴알했을 경우Error#128 A #DEVICE required before this line: 에러가 발생하는것은 Project 에서 load 하고 소스파일에서도 #include 를 사용하기 때문이다.따하서 이문제를 해결하기 위해서는 1) 소스파일에서 #include를 제거하거나 (//#inlude ADC_Ctl.c)2) 또는 MPLAB 의 Project에서 Wxclude 처리를 해주어야 한다. PIC Microcontroller 2025.10.17