how does XORF work?
August 10, 2009
howd yu do?
I finaly caught on to the PIC assebly language!
I am using a pic on a simple little robot with the usual bump, revese, turn, obsticle avoidance. it will do more than that later but I havent even writen a PIC program yet so I am starting small. anyway there is on thing I don't understand in the tutorial i read. it is the XORFcommand. I understand xor gates but how does it work here; http://www.pictutorial.net/?page_id=152
should toggle the 1 bit in port a.
how does it toggle? where is the result and what is w being compared to?
oh and one more question. does w register clear to 0 or 255 when you use movwf?
once I get this figured out I should be ready to start. I am working on the electronics and program at the same time.
the chip I have on hand is a 16f84a