No flags are affected. Operation: RRC; Function: Rotate Accumulator Right Through Carry; Syntax: RRC A; Instructions: OpCode: Bytes: Flags: RRC A: 0x13: 1: C: Description: Shifts the bits of the Accumulator to the right. Operations on SFR byte address 208 or bit addresses 209-215 (that is, the PSW or bits in the PSW) also affect flag setti ngs. See Also: RL, RLC, RR, RRC, Instruction Set <<< Click here to come back on (8051 / 8052 - Instruction Set) Intel's original versions were popular in the 1980s and early 1990s and enhanced binary compatible derivatives remain popular today. In 8051 Microcontroller there is 25 different instructions under the Logical Group. RRC: - Each binary bit of the accumulator is rotated right by one position. The following instruction, RR A Description: The eight bits in the Accumulator and the carry flag are together rotated one bit to the right. Instructions: OpCode: Bytes: Flags: RRC A: 13: 1: C . The 8051 family of microcontrollers has a very useful assembly instruction RRC. Atmel 8051 Microcontrollers Hardware 1 0509C–8051–07/06 Section 1 8051 Microcontroller Instruction Set For interrupt response time information, refer to the hardware description chapter. What RRC do is simple – it will move value of port 0.0 to the carry bit. In the 8051, to rotate a byte the operand must be in register A. Rotate Accumulator Right – RR A The eight bits in the Accumulator are rotated one bit to the right. Description: Shifts the bits of the Accumulator to the right. The Carry Flag (CY) affects only by instruction RRC and RLC. Bit D0 is placed in the position of D7 as well as in the Carry flag. Function: Rotate Accumulator Right through Carry flag. 8051 Instruction Set: RRC. See Also: RL, RLC, RRC, Instruction Set <<< Click here to come back on (8051 / 8052 - Instruction … This instruction is identical to executing "RR A" or "RL A" four times. RRC A. In total there are 49 opcodes. No flags are affected by this instruction. Any other bit is not affected. 8051 Instruction Set Manual. Description: SWAP swaps bits 0-3 of the Accumulator with bits 4-7 of the Accumulator. You can learn more about this instruction here – 8051 programming tutorial 1 . Now we can check the carry bit using instruction JC – which means “jump if carry is set” . Architecture Overview Opcodes Instructions ACALL ADD ADDC AJMP ANL CJNE CLR CPL DA DEC DIV DJNZ INC JB JBC JC JMP JNB JNC JNZ JZ LCALL LJMP MOV MOVC MOVX MUL NOP ORL POP PUSH RET RETI RL RLC RR RRC SETB SJMP SUBB SWAP XCH XCHD XRL Description: Shifts the bits of the Accumulator to the right. CY is modified according to bit D0. 2. Operation: RRC: Function: Rotate Accumulator Right Through Carry: Syntax: RRC A . RRC – means – rotate right through carry. Note: 1. Encoding: 0 0 0 0 0 0 1 1 The Accumulator holds the value 0C5H (11000101B). See Also: RLC, RR, RRC RL A C AC F0 RS1 RS0 OV P Bytes 1 Cycles 1 Encoding 00100011 Operation RL An+1 = An WHERE n = 0 TO 6 A0 = A7 Example RL A The RL instruction rotates the eight bits in the accumulator left one bit position. The following instruction, RLC A leaves the Accumulator holding the value 8BH (10001010B) with the carry set. 8051 Instruction Set: RRC. Bit 7 of the accumulator is rotated into bit 0, bit 0 into bit 1, bit 1 into bit 2, and so on. The Intel MCS-51 (commonly termed 8051) is a single chip microcontroller (MCU) series developed by Intel in 1980 for use in embedded systems.The architect of the Intel MCS-51 instruction set was John H. Wharton. This instruction rotates carry into the MSB of the given register, shifts that register right by 1, and carry becomes equal to what used to be the LSB of the register. Bit 0 is rotated into the bit 7 position. 23. In the following table, we will see the Mnemonics, Lengths, Execution Time in … The right-most bit (bit 0) of the Accumulator is loaded into bit 7.