MPLab config

Discussion in 'Programmer's Corner' started by reallylongnickname, Feb 24, 2013.

  1. reallylongnickname

    Thread Starter New Member

    Jul 5, 2012
    9
    0
    I'm new to microprocessors and MPLab. I've been instructed to change value of the bit from 3FFF to 3F73 however, I'm unable to erase or change the 3FFF. I high lighted it, but still it won't allow me to change it. What's my problem?
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    You need to be more specific. Are you referring to being in debugging mode with a microcontroller in MPLab? Where is this value at? In RAM? Program memory?

    Help us help you...
     
  3. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    You can either do it by putting the line:
    __config 0x3F73
    after the include line near the top of the assembly code (there are two underscore characters before config).

    Or do it in a much more readable way like:
    __config _LVP_OFF & _BOREN_OFF & _PWRTE_ON and _WDT_OFF & _HS_OSC
    (these settings are almost certainly wrong, I couldn't be bothered to work out what 3F73 translates to).
     
Loading...