title: MPLAB xc8 pic16f688 pragma for WDTE Ignored
body: <p>when using #pragma <code>CONFIG = WDTE OFF</code><br />
  I get a message that:</p>
  <blockquote>
  <p>WDTE is set to ON  do I want it changed?</p>
  </blockquote>
  <p>I do answer yes.<br />
  What concerns me is are other config statements ignored?
  I can't tell.  New to PIC.
  Trying to make LED flash with PIC16F688.</p>
  <p>I got it to work, kind of.  I made sure the #pragma statements preceeded the #include and #define.  What follows is the block of <code>#pragma</code> statements that did NOT work.</p>
  <pre><code>#pragma config WDTE = 0x0
  #pragma config PWRTE = 0x0
  #pragma config MCLRE  = 0x0
  #pragma config CP = 0x0
  #pragma config CPD = 0x0
  #pragma config BOREN = 0x1
  #pragma config IESO = 0x1
  #pragma config FCMEN =0x1
  </code></pre>
  <p>I went to the hex approach to avoid definitions of ON and OFF
  I used MPBLAB's &quot;set configration bits&quot; under the RUN drop down to set the bits, changing them to hex.  This still gave the <code>WDTE</code>, then the error vanished and I picked up a PWRTE CP error. I discovered I had set MCLRE to 1, so setting it to 0 it I still received the config error messages, but the program ran.<br />
  Then, I used only the statement <code>#pragma config CONFIG 0xFF5</code>.  I got no config errors, but a warning that the 0xFF5 was going to automatically truncated to <code>0xFFF</code>.<br />
  Now it all runs, but, I cannot get debug to run.</p>
  <p>In now with that issue, which, I suppose is a different thread.
  However the questions arises as to how the configuration word is formed, what bits contribute part of the word. I tried to guess from some registers but got nowhere.  It would be nice to know.
  Also, noting 0xFFF sets each bit in the word to 1 would imply that all my <code>#pragma config statements (bits) = 1</code>, which makes no sense.</p>
  <p>I made my program and circuit run by using other troubleshooting methods.  I would like to use debug in the future.  I have read and re-read in PICkit 3 guide about <code>PGD</code> and <code>PGC</code> and having a clock running on the chip.  My o'scope says I have a running clock (internal 4 MHZ). The PIC16F688 does not use the terminology <code>PGD</code> and <code>PGC</code>, but the pins are labeled <code>ICSPDAT</code> and <code>ICSPCLK</code>, respectively.  Why debug does not work?</p>