Electronic Circuits - Electronic Tutorials - Electronic Hobby Projects - A Complete Electronic Resource Centre

MICROCONTROLLER TUTORIALS - 8052

Videos

Products

Sitemap

Circuits

Tutorials

8051

Introduction

Chapter 1
Types of Memory

Chapter 2
Special Function Registers

Chapter 3
Basic Registers

Chapter 4
Addressing Modes

Chapter 5
Program Flow

Chapter 6
Low Level Information

Chapter 7
Timers

Chapter 8
Serial Port Operations

Chapter 9
Interrupts

Additional Features in 8052

8052 Instruction Set

8051 / 8052 Microcontroller
Instruction Set 
XCH - Exchange Bytes

Operation: XCH
Function: Exchange Bytes
Syntax: XCH A,register

 

Instructions OpCode Bytes Cycles Flags
XCH A,@R0 0xC6 1 1 None
XCH A,@R1 0xC7 1 1 None
XCH A,R0 0xC8 1 1 None
XCH A,R1 0xC9 1 1 None
XCH A,R2 0xCA 1 1 None
XCH A,R3 0xCB 1 1 None
XCH A,R4 0xCC 1 1 None
XCH A,R5 0xCD 1 1 None
XCH A,R6 0xCE 1 1 None
XCH A,R7 0xCF 1 1 None
XCH A,iram addr 0xC5 2 1 None

 

Description: Exchanges the value of the Accumulator with the value contained in register.

See Also: MOV, Instruction Set

 
  <<< Click here to come back on (8051 / 8052 - Instruction Set)
 

<<<<  Back to 8051 / 52  Microcontroller Tutorial