Apr 6, 2011 #1 P PIC_Beg Newbie level 5 Joined Mar 3, 2011 Messages 9 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,354 How to specify the configuration bits along with the code in Hitech C pic 18 compiler? I tried using "#pragma config OSC= HS" but it gave me a warning like unknown pragma
How to specify the configuration bits along with the code in Hitech C pic 18 compiler? I tried using "#pragma config OSC= HS" but it gave me a warning like unknown pragma
Apr 6, 2011 #2 H horace1 Advanced Member level 5 Joined Nov 18, 2008 Messages 2,118 Helped 596 Reputation 1,188 Reaction score 571 Trophy points 1,393 Location Norwich, UK Activity points 13,063 for a PIC18F97J60 and MCC18 compiler I use Code: #pragma config WDT=ON, FOSC2=ON, FOSC=HSPLL, ETHLED=ON, CP0 = ON #pragma config WDTPS = 2048 //8192
for a PIC18F97J60 and MCC18 compiler I use Code: #pragma config WDT=ON, FOSC2=ON, FOSC=HSPLL, ETHLED=ON, CP0 = ON #pragma config WDTPS = 2048 //8192
Apr 6, 2011 #3 A abidr Full Member level 5 Joined Feb 14, 2007 Messages 255 Helped 37 Reputation 74 Reaction score 32 Trophy points 1,308 Location 33 N, 73 E Activity points 2,684 Hitech C 18, user manual page 71 Section 3.2.2 Configuration Fuses There are examples for using the configuration bits, I mostly prefer using: __CONFIG(2, BW8 & PWRTDIS & WDTPS1 & WDTEN);
Hitech C 18, user manual page 71 Section 3.2.2 Configuration Fuses There are examples for using the configuration bits, I mostly prefer using: __CONFIG(2, BW8 & PWRTDIS & WDTPS1 & WDTEN);