I have not changed anything in that part of the program for the last 50 revisions over a few days. If I take that line out, it objects to the next line, etc.
I have not changed anything in that part of the program for the last 50 revisions over a few days. If I take that line out, it objects to the next line, etc.
you need to supply more information
pbp version ?
chip ?
actual code not a blurry picture
would a good start
Warning I'm not a teacher
Uninstalled the compiler, downloaded a fresh Student edition and the problem is solved. Thanks for considering it anyway. (I can't help that this forum makes a blurry pic - https://www.picbasic.co.uk/forum/att...3&d=1679985701 )
Last edited by Gerald; - 28th March 2023 at 10:58.
Are you sure you had the correct chip selected? I see a 16F1937 selected but that chip does not have ANSEL register.
It has ANSELA, ANSELB and ANSELE.
So the error message was correct!
Ioannis
Many times the chip type on MCS does change on its own! Be careful on that.
Ioannis
Say you have your code window opened, ant it is set for 18F45K80 chip.
You click on "new" code window, it opens, and by default it is set to 16F628.
Now if you just switch to your code for 18F chip, MCU type for it will also change to 16F628, causing compile errors.
Bookmarks