problem facing in compiling PIC16F87 device .

Jun 02, 2004 1 Replies

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.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required