umm.. I am using the microchip include file for everything except the labels defined in the code, and they are the same as the microchip ones, except lower-case. It looks like I didn't include the microchip include file, because I included my own include file, which in turn includes the microchip file. So the microchip file is included, just not directly. My include file is just a load of stuff like: #define LED1 porta (or something like that) I have attached a copy if you don't believe me. So, is INTRC actually an osc, or an RC?? If i use the config setup posted above, what speed will I then be using? And which crystal? INTRC or INTOSC? On 5/2/05, Olin Lathrop wrote: > Dave Turner wrote: > > Second, the config is all saved in the mplab project. In the > > configure menu, and the config bits part. > > Bad idea. The config bits are part of the code since it won't run right > without the right config settings. Imagine coming back to this project a > year later and wondering what the config settings need to be to make it > work. It's also very useful to have everything that needs to be programmed > into the processor in the HEX file. > > > I setup my own custom names for some of the SFRs, because at the time, > > my resorce only showed me the addresses for the SFRs, not the actual > > names. > > Another bad idea. Use the Microchip include files. That's what they are > for. If you don't like their SFR names, get over it and use them anyway. > You're not going to get much help here or anywhere else while without > including the Microchip files or using non-standard SFR names. Think of > them as a standard that you have to adhere to in order to get support, > because that's pretty much the way it works. > > > ***************************************************************** > Embed Inc, embedded system specialists in Littleton Massachusetts > (978) 742-9014, http://www.embedinc.com > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist