Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top