On 06/06/2011 18:44, PICdude wrote: > Yep, I got it from C:\Program Files\HI-TECH > Software\PICC\9.81\include. There is also a directory for 9.80, but > that did not have the F883, so I used the include from the 9.81 > directory. And the executable is C:\Program Files\HI-TECH > Software\PICC\9.81\bin\picc.exe anyway. > > The include file defines "CONFIG1", but not sure where I should use > that. I found the syntax of __CONFIG (1, ...) from an online example. > And why would it not work if I tell it to use the config bits from > the menu/manual selector rather than the code? > Right, I see, you're using PICC 9.81 (I mistakenly thought you were=20 using an early version) According to my include file (for the 883) it is FOSC_INTRC_CLKOUT They are all defined at the top of the file. I wouldn't put that 1 and 2 at the start of the arguments, what are they=20 for? I'm pretty sure last time I read the PICC manual it said just to put the=20 config 1 and 2 (if more than one register) in order and it will know=20 which one is which. It should work if you set the config bits in MPLAB though, so it looks=20 like there is another problem. Does it work in MPLAB SIM? --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .