0% found this document useful (0 votes)
13 views9 pages

Lecture 10

The document provides information on Timer0 and Timer1 block diagrams and their control registers, specifically T0CON. It includes examples of configuring Timer0 in 16-bit mode with a specific clock source and calculating timer clock frequency and period for PIC18 systems. Additionally, it mentions the TMR0IF flag bit and Timer0 Overflow Flag.

Uploaded by

vinod SALUNKHE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views9 pages

Lecture 10

The document provides information on Timer0 and Timer1 block diagrams and their control registers, specifically T0CON. It includes examples of configuring Timer0 in 16-bit mode with a specific clock source and calculating timer clock frequency and period for PIC18 systems. Additionally, it mentions the TMR0IF flag bit and Timer0 Overflow Flag.

Uploaded by

vinod SALUNKHE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Timer Block Diagram

T0CON (Timer0 control) register


Timer0 Block Diagram
Example:
• Find the value of T0CON if we want to program Timer0 in 16-bit
mode, no prescaler. Use PIC18’s Fosc/4 crystal oscillator for the clock
source, increment on the positive edge.
• Solution:
• T0CON=0000 1000
Example:
Find the timer clock frequency and its period for various PIC 18 based
systems with the following crystal frequency Assume that no prescaler
is used.
Solution:
a. 1/4 x 10 MHz = 2.5 MHz and T = 1/2.5 MHz = 0.4us
TMR0IF flag bit
Timer0 Overflow Flag
Timer1 Block Diagram

You might also like