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

option reg setup

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



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message Send e-mail

option reg setup
PostPosted: Mon Jan 26, 2004 4:07 pm     Reply with quote

I think I remember once I saw a ccs function to set the OPTION_REG option by using a built-in function.... can someone remind me... was there a function like that????
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

Option Reg
PostPosted: Mon Jan 26, 2004 4:37 pm     Reply with quote

Here's the ones I've used lately:

#setup_counters(); or #setup_timer_0();
#setup_wdt();
#port_b_pullups();

Also, checkout the Timer 0 section in the Mid Range Micro Users Guide from Microchip. There is some interesting information on switching the prescaler from WDT to Timer 0 and vice versa. I had always wondered why CCS had implemented the #setup_timer_0() function in such a strange manner, this explains why.
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