Tutorial 8: Timer0 Counter Mode Tachometer-BarGraph

A Bargraph representing the number of pulses seen on T0KI in a period of 1ms

Description

Timer0 is configured in Counter Mode with no prescalar and with no interrupt. TMR0 Register is used to accumulate the number of low-to-high transitions on the A4/T0KI input pin in the sampling period. At the end of the sampling period the number of counts seen is converted into a bargraph representation of the number and is shown on PortB.

Download FEATURE877_Tutorial8.zip and unzip into folder <your path>\Tutorial 8

Filename Version Description
tut8.pjt 1.0 MPLAB Project
tut8.asm 1.0 PIC16F877 Assembler code
tut8.hex 1.0 Precompiled HEX
tut8.lst 1.0 Precompiled LST
tut8.vbb 1.0 Virtual Breadboard simulation

 

Demonstrates

Timer0 Counter Mode