CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

SETUP_TIMER_1()

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ploana



Joined: 24 Jul 2006
Posts: 6

View user's profile Send private message

SETUP_TIMER_1()
PostPosted: Mon Aug 07, 2006 4:23 am     Reply with quote

Hello
In the help of the CCS Compiler stands:
"With an internal clock at 20Mhz and with the T1_DIV_BY_8 mode, the timer will increment every 1.6us. It will overflow every 104.8576ms"

but i think that with a clock of 20MHz you can increment every 50µs by T1_DIV_BY_1 and with the T1_DIV_BY_8 mode
I am of the opinion, that the timer will increment every 400µs, or I am wrong??
Ttelmah
Guest







PostPosted: Mon Aug 07, 2006 4:56 am     Reply with quote

Try looking at the chip data sheet.
There is a /4 prescaler on the master clock, used for just about everything. The timer prescaler comes _after_this prescaler.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group