PIC Lab, PIC16, Experiment #3: Timer TMR0

uC: PIC16F628a

Compiler: Hi-TECH PICC

Goal: To make pulses with frequency 5Hz

Timer TMR0 module frequently used in many applications, it has next useful options:

  • 8 bits counter/timer
  • Internal/external oscillator for pulses counting
  • An interrupt is generated after overflow

In that experiment we will make it without using interruptions.

Timer TMR0 module (from datasheet)
Continue reading