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
Option Reg
Posted: Mon Jan 26, 2004 4:37 pm
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.
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