Hello guys, just a quick question.
I am going through nigels first manchester encoding tutorial line by line, trying to understand what is going on but i have become stuck on what i think is something trivial.
In the "send" subroutine it has a line of code as follows...
movf INDF,W
I assume this means, "move contents of file-register which FSR is pointing to, to the accumilator, W". Obviously, FSR is accessed via INDF. To check this i wrote a very short piece of code which i have attatched.
From this command above, (in my code), it should result in the number 7, being moved into W, however, in the watch window, it says 0xA2 instead.
Does this function differently to what i am thinking or have i written the code wrong?
Thanks
I am going through nigels first manchester encoding tutorial line by line, trying to understand what is going on but i have become stuck on what i think is something trivial.
In the "send" subroutine it has a line of code as follows...
movf INDF,W
I assume this means, "move contents of file-register which FSR is pointing to, to the accumilator, W". Obviously, FSR is accessed via INDF. To check this i wrote a very short piece of code which i have attatched.
From this command above, (in my code), it should result in the number 7, being moved into W, however, in the watch window, it says 0xA2 instead.
Does this function differently to what i am thinking or have i written the code wrong?
Thanks