Timer on the LCD

  • The 18F4520 has four timers. A Timer is an auto incrementing SFR (or pair of SFRs if timer is 16 bits)
  • We use three library functions with Timers: OpenTimerX, ReadTimerX, and WriteTimerX
  • Timer0 is the most robust, Timer2 will be used with PWM, Timer1 & Timer3 are available if you need more timers