PDA

View Full Version : PIC16F648A and errors when compiling / assembling



chrisuk2009
- 18th August 2009, 22:48
Hi,

I'm pretty new to using PIC's, and have a bit of a problem I've tried a few times to sort but banging head against the wall.

Im using PicBasic Pro and MicroCode Studio to complile some code for a 16F648A

Everything seems ok but im getting an error in MicroCode Studio;

at the line

@ device INTRC_OSC_NOCLKOUT

I keep getting :
Warning [207] file.asm 68 : Found label after column 1(device)
Error [122] file.asm 68 : Illegal opcode (INTRC_OSC_NOCLKOUT)

The code I have was given to me by its author who has a hex file which works no problem that was sent to me, but when coming to complile it from the PBP file I keep getting this error.

Does anyone know what I can do to sort it?

Thanks
Chris

mackrackit
- 18th August 2009, 23:37
Welcome.

For starters you will find this helpful.
http://www.picbasic.co.uk/forum/showthread.php?t=543

In MCS do you have MPASM selected as the assembler or PM?

Either way the config line is wrong. The above thread should explain things. If not, let us know.