MPLab config

Thread Starter

reallylongnickname

Joined Jul 5, 2012
9
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?
 

tshuck

Joined Oct 18, 2012
3,534
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?
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...
 

Markd77

Joined Sep 7, 2009
2,806
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).
 
Top