PDA

View Full Version : Trouble setting config. bits



jswayze
- 13th March 2004, 05:16
Hi folks,

I'm brand new to PBP, and I'm trying to adapt some 16F84 code to a 16F628. One thing I'd like to do but cant is to set the configuration bits within the compile and not in the EPIC programmer setup screen.

From what I've seen in this forum, you are supposed to type something like:

@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT

to set that bit. However, when I do this, I get warning messages:

Warning [207] c:\blablah.asm 92: Found label after column 1 (DEVICE)

and

Error[122] c:\blahblah.asm 92: Illegal opcode [pic16F628]

I've tried some of the other variations I've seen and still can't get it to compile without errors/warnings. Any idea what I'm doing wrong? I can work around this, but it's a pain!

Thanks,
Jeff

NavMicroSystems
- 13th March 2004, 22:26
Jeff,

what version of PBP are you using?

Are you using PM or MPASM ?

regards

jswayze
- 13th March 2004, 23:22
Well, as things sometimes go, it's the question that provides the answer.

I was in fact using MPASM (what 's the difference between PM and MPASM?) and that was the root of my problem. I've since found ME Lab's page on the same topic, and that answered all my questions. Shame I couldn't find it before; here's a link for those looking for it in the future:

http://picbasic.com/support/config_defaults.htm

Thank you!

-Jeff