Doh!.... Thanks.
I have a whole pile of P16F877A's lying around and I did originally write the code for the the P16F877A but changed over to the P18F4550.
Do you know what the first line of the program is ?
"; PIC18F4550 32k program memory "
Doh....
Doh!.... Thanks.
I have a whole pile of P16F877A's lying around and I did originally write the code for the the P16F877A but changed over to the P18F4550.
Do you know what the first line of the program is ?
"; PIC18F4550 32k program memory "
Doh....
Hello,
I’m getting the same error on a 16F87 but I have 3 routines, Main, Bypass, and Alarm on a short program. I have these labels being used in if….then statements that the program is suppose to go to if the conditions are met but I’m getting these errors. I’ve never encountered it before. I recently upgraded my PBP 3. I haven’t done any programming for some time and was asked to provide some more boards like I did over 17 years ago! Please help!
Bob Koenig
Sure, we'll try our best but without seeing the code all we can do is guess and speculate which isn't very efficient and usually not very effective.
But...since Wilsons problem was that he was compiling for the wrong device perhaps that's the issue you're having as well. If the code was originally written for 16F87 make sure you have that exact device selected in the dropdown of MicroCodeStudio (if that's what you're using).
Thanks Henrik,
The original program was for a 16F84 and I’m replacing it with the 16F87 and yes I did change that on MCS and I’m using PBP 3.1, recently upgraded. I did put comcon= 7 in the newer program but still get the redefinition error message. I ordered and received some 16F84 chips yesterday so I’ll go back to my original program and try it out then let you know how it went. Thanks again for you help!
Bob K
That line would certainly cause an error, not sure it's the one you get though. If that's actually what you put in your program (and not a forum typo) we might have found the problem.Code:comcon= 7
Bookmarks