Skip to content

Opening book details…

Can I read PIC Microcontroller Instruction Set Guide on EtoBox?

PIC Microcontroller Instruction Set Guide by Hiru Purushothaman Hirudayanathan is a document available to read on EtoBox.

What is PIC Microcontroller Instruction Set Guide about?

Here are the steps to solve this problem: 1) BSF STATUS,C sets the C bit of the STATUS register to 1 2) MOVLW 0x26 loads 0x26 into WREG 3) MOVWF MREG copies 0x26 from WREG to MREG 4) RLF MREG,F rotates MREG left through the C bit, which is 1. So the bits become 0x4B with C=0. 5) RLF again rotates to 0x96 with C=1 6) RLF again rotates to 0x2D with C=0 Therefore, the final contents of MREG after this code is executed is 0x2

Author
Hiru Purushothaman Hirudayanathan
Language
EN

More by Hiru Purushothaman Hirudayanathan

Browse all works by Hiru Purushothaman Hirudayanathan