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 
INC - Increment Register

Operation: INC
Function: Increment Register
Syntax: INC register

 

Instructions OpCode Bytes Cycles Flags
INC A 0x04 1 1 None
INC iram addr 0x05 2 1 None
INC @R0 0x06 1 1 None
INC @R1 0x07 1 1 None
INC R0 0x08 1 1 None
INC R1 0x09 1 1 None
INC R2 0x0A 1 1 None
INC R3 0x0B 1 1 None
INC R4 0x0C 1 1 None
INC R5 0x0D 1 1 None
INC R6 0x0E 1 1 None
INC R7 0x0F 1 1 None
INC DPTR 0xA3 1 2 None

 

Description: INC increments the value of register by 1. If the initial value of register is 255 (0xFF Hex), incrementing the value will cause it to reset to 0. Note: The Carry Flag is NOT set when the value "rolls over" from 255 to 0.

In the case of "INC DPTR", the value two-byte unsigned integer value of DPTR is incremented. If the initial value of DPTR is 65535 (0xFFFF Hex), incrementing the value will cause it to reset to 0. Again, the Carry Flag is NOT set when the value of DPTR "rolls over" from 65535 to 0.

See Also: ADD, ADDC, DEC, Instruction Set

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

<<<<  Back to 8051 / 52  Microcontroller Tutorial