Yep, saw that in the manual, and all works now. The "(1," and "(2," I =20 had found online. However, I'm bugged that it does NOT ignore the =20 config lines in the code, even if I tell it to use the ones from the =20 menu/manual settings. Cheers, -Neil. Quoting Oli Glaser : > 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 > 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 > for? > I'm pretty sure last time I read the PICC manual it said just to put the > config 1 and 2 (if more than one register) in order and it will know > which one is which. > It should work if you set the config bits in MPLAB though, so it looks > like there is another problem. > Does it work in MPLAB SIM? > > -- > 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 .