configuration bits

Status
Not open for further replies.

frustration

New Member
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?
 
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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…