Thinking about it now, they may not even be needed at all. In fact, they may be writing the wrong=20 info to the config registers. Just a thought. Regards, Jim > -------- Original Message -------- > Subject: [PIC] MPLAB X, Hitech-C and configuration bits > From: toftat@cowshed.us > Date: Tue, July 26, 2011 11:15 am > To: piclist@mit.edu >=20 >=20 > I am having an issue getting the configuration bits set properly in my > current project... >=20 > The project is based on the 18F2321 part, using the MPLAB-X IDE and going > to be written in Hitech C lite. I have defined my config bits in main.c a= s > follows: >=20 > __CONFIG(1, INTCLKO & FCMDIS & IESODIS & PWRTDIS & BORDIS & BORV46); > __CONFIG(2, WDTDIS & WDTPS32K & PBADDIS & LPT1DIS & MCLREN); > __CONFIG(3, DEBUGDIS & XINSTEN & STVREN & LVPDIS); >=20 > hoping to get the chip running on the internal oscillator with the clock > output, and most everything else disabled, unless I don't understand it a= t > which point I left it as default. >=20 > I am seeing 2.5v DC on the OSC pins rather than the expected square wave, > and the pin toggle that is later in the program doesn't occur either. >=20 > When I read the program back, it appears that oscillator is set to HSPLL > (between the * below) >=20 > :020000040030CA > :0E000000*0006*1F1F0083850003C003E00340BD >=20 > So I am asking the following... > Have I defined the configuration bits correctly? If not, how should I > define them? > Is there an IDE setting that might be overriding the contents of the > file? I vaguely remember such a setting in MPLAB 8, but I cannot find > any documentation for MPLAB-X >=20 > Thanks >=20 > Anthony >=20 >=20 > --=20 > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .