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
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