Hi Lambert,
Welcome to the forum!
In MPASM SUITE, in your MICROCHIP directory, exists files named for each PIC supported, in this case named P16F873A.inc .
Open it in MCS and examine it, there you will find every register available. No ANSEL there, that's why it errors.
look at the list below for suggested changes.
TRISA = %00000011 'Set all bits even if port has access to only some
' Disable comparators !
' Disable analog functions on Ports A, C, capture compare , ADCON. . .
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks