Forums

problem facing in compiling PIC16F87 device .

Started by Kumar June 2, 2004
I have written a program for the pic microcontroller Pic16F876 . It
worked fine . Then changed my device to pic16f87 , the program is not
compiling can anyone help me to solve the problem .

The error message is given below

Error[126]   C:\PROGRAM FILES\MPLAB
IDE\RF_PIC_87\VER_0\PROR6-DEMO-22ND.ASM 13 : Argument out of range
(not a valid config register address)
Halting build on first failure as requested.
"Kumar" <yatiks@yahoo.com> wrote in message
news:b479edf8.0406020218.30af5f72@posting.google.com...

> I have written a program for the pic microcontroller Pic16F876 . It > worked fine . Then changed my device to pic16f87 , the program is not > compiling can anyone help me to solve the problem . > > The error message is given below > > Error[126] C:\PROGRAM FILES\MPLAB > IDE\RF_PIC_87\VER_0\PROR6-DEMO-22ND.ASM 13 : Argument out of range > (not a valid config register address) > Halting build on first failure as requested.
Are you compiling, or are you assembling the program? It would be much more helpful for you to actually post the code that is in error. Did you change your LIST and INCLUDE pseudo-ops to match the new chip in the .ASM file? You also need to set the target chip type in MPLAB by clicking on Configure and then Select Device.