Pic 16f877 Timer1 prescalar, what does it do??

Status
Not open for further replies.

Anuradha1

Member level 2
Joined
Nov 11, 2009
Messages
49
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
India
Activity points
1,570
Hello all,

An some one clearly explain what does timer1 prescalar do?
According to the data sheet prescalars can be used by setting the T1CIN register.

What I really wants to know the different I can achieve when am running without prescalar and when am using prescalar 1:4 etc
 

It slows the timer down. For example, in timer mode, timer1 is incremented with every clock cycle if the prescaler is 1:1. But when the prescaler is 1:8, it is incremented with each 8th cycle.

The postscaler on the other hand, which can be used with timer2, sets the number of timer overflows before an interrupt can occur. 1:1 postscaler means every timer overflow triggers the timer2 interrupt where 1:2 means every 2nd overflow triggers the timer2 interrupt.
 

    Anuradha1

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…