Couldn't get it to compile, I had:
Symbol not previously defined Ansel (I had five of these).
And one: Overwriting previous address contents.
ANSEL is analogue select right? It's my understanding that your:
ANSEL = %00000000 code line makes all the pins read in digital, or turn any analogue input off (I think) so can't understand a problem here.
Also: CMCON = %00000111 puts out decimal 7 which turns the comparitor off? Is that right? This instruction didn't seem to cause a problem.
Could all this be because the 16F676 PIC wasn't listed when I compiled it? It wasn't in the demo version drop down list.
Plenty of head scratching going on here, great fun all though, I'll be glad to figure the basics out.
Dave
Bookmarks