In Timer0 mode and with no prescalor the PIC16C5X increments the internal TMR0 register every internal clock cycle or at a frequency of Fosc/4. In this example, the value of TMR0 is written to PORTB so the internal incrementing of Timer0 can be visualised
| Filename | Version | Description |
| tut2.pjt | 1.0 | MPLAB Project |
| tut2.asm | 1.0 | Assembler code |
| tut2.hex | 1.0 | Precompiled HEX |
| tut2.lst | 1.0 | Precompiled LST |
| tut2.vbb | 1.0 | Virtual Breadboard simulation |
Open tut2.vbb and press RUN.
|
TRISB/PORTB | |
|
TIMER0 Timer Mode |
Components Used
|
LED8 |