F frustration New Member Apr 30, 2007 #1 I just want to make sure I understand how configuration bits work. this is for a 16F628A PIC Ok, assuming I still remember how to convert from binary to hex, my _config value should be 2118h This should turn off: code protection, the watchdog timer, brownout timer, mclr, and low voltage programming option. It should also turn on: the internal 4Mhz clock without using a pin 15 to output a clock signal and the power on timer. Is this correct?
I just want to make sure I understand how configuration bits work. this is for a 16F628A PIC Ok, assuming I still remember how to convert from binary to hex, my _config value should be 2118h This should turn off: code protection, the watchdog timer, brownout timer, mclr, and low voltage programming option. It should also turn on: the internal 4Mhz clock without using a pin 15 to output a clock signal and the power on timer. Is this correct?
E eng1 New Member Apr 30, 2007 #2 You can use the labels that are located in the include file. For example __CONFIG _CP_OFF & _WDT_OFF & _BOREN_OFF & _MCLRE_OFF & _LVP_OFF & _INTOSC_OSC_NOCLKOUT & _PWRTE_ON
You can use the labels that are located in the include file. For example __CONFIG _CP_OFF & _WDT_OFF & _BOREN_OFF & _MCLRE_OFF & _LVP_OFF & _INTOSC_OSC_NOCLKOUT & _PWRTE_ON
Mike - K8LH Well-Known Member Apr 30, 2007 #3 I agree. Using the config' labels makes it easy for anyone to see what your configuration is.
F frustration New Member Apr 30, 2007 #4 Excellent, thanks!!! I feel like I'm finally on a roll here .