Hi-tec c pic 18 config

Discussion in 'General Electronics Chat' started by Ctenom, May 14, 2012.

  1. Ctenom

    Thread Starter Member

    Nov 1, 2010
    59
    1
    I'm currently programming with the following
    HI-tech PICC18 V9.66
    PIC 18f14k50
    MPLAB X V1.10

    The problem im having is that i usually set my configs like this


    Code ( (Unknown Language)):
    1.  
    2. __CONFIG (1,FOSC_INTIO67);
    3. __CONFIG (2,WDTEN_OFF);
    4. __CONFIG (3,MCLRE_INTMCLR);
    5. __CONFIG (4,STVREN_OFF & DEBUG_ON & LVP_OFF);
    however im uncertain how its done when there is a high and low register like CONFIG1L CONFIG1H. In the help section it says to use code like this

    Code ( (Unknown Language)):
    1.  
    2.  
    3. #pragma config CPUDIV = CLKDIV2, USBDIV = OFF
    4.  
    5.  
    However thats giving me a unknown pragma warning .
    ive never had any problem with any pic before im so confused lol :confused:
     
Loading...