PIC18, MPLAB X IDE, XC8, TIMER, Interrupt 0. 참고 사항https://www.exploreembedded.com/wiki/PIC18F4520_Timer [ ] https://www.microchip.com/wwwproducts/en/PIC18F4520[ datasheet ] http://ww1.microchip.com/downloads/en/devicedoc/39631a.pdf 1. HW 연결2. 소스 설명full 소스는 아래 github를 통해 확인하세요. RegValue = TimerMax-((Delay * Fosc)/(Prescalar*4)) delay = ((MaxValue-REG_val)*(Prescal*4))/Fosc regvalue = 256 - ((0.02..