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.
| 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 |
|
|
Timer0 Counter Mode |