Hi,
I have a mock exam question which talks about creating the correct hex code from assembly code. Attached is the exact question.
PIC16F628A datasheet: https://www.electro-tech-online.com/custompdfs/2011/04/40044f.pdf
So, to do this should I find out the binary for the command from table15-2, then convert this binary to hex?
Question one says to convert the following command:
BTFSS STATUS, TOUT
This has the binary:
01 11BB BFFF FFFF
Am I right up to this point?
Im not sure how to find out bit status is in the datasheet. I can see that TOUT is equated to 0x04H at the top, which is in binary:
0000 0000 0000 0100
This goes in the file section of the hex to give me:
01 11BB B000 0100
How is all this looking?
James
I have a mock exam question which talks about creating the correct hex code from assembly code. Attached is the exact question.
PIC16F628A datasheet: https://www.electro-tech-online.com/custompdfs/2011/04/40044f.pdf
So, to do this should I find out the binary for the command from table15-2, then convert this binary to hex?
Question one says to convert the following command:
BTFSS STATUS, TOUT
This has the binary:
01 11BB BFFF FFFF
Am I right up to this point?
Im not sure how to find out bit status is in the datasheet. I can see that TOUT is equated to 0x04H at the top, which is in binary:
0000 0000 0000 0100
This goes in the file section of the hex to give me:
01 11BB B000 0100
How is all this looking?
James