Atmel 8051 Microcontrollers Hardware Manual 1
4316B–8051–02/04
Table of Contents
Section 1
The 8051 Instruction Set.......................................................................1-2
1.1 Program Status Word................................................................................1-2
1.2 Addressing Modes ....................................................................................1-3
1.3 Arithmetic Instructions...............................................................................1-5
1.4 Logical Instructions ...................................................................................1-6
1.5 Data Transfers .........................................................................................1-7
1.6 External RAM.........................................................................................1-10
1.7 Lookup Tables .......................................................................................1-10
1.8 Boolean Instructions ...............................................................................1-11
1.9 Jump Instructions....................................................................................1-13
1.10 Read-Modify-Write Instruction Features .................................................1-15
1.11 Instruction Set Summary.........................................................................1-16
1.12 Instructions That Affect Flag Settings .....................................................1-20
1.13 Instruction Table .....................................................................................1-21
1.14 Instruction Definitions..............................................................................1-24
Section 2
Common Features Description...........................................................2-64
2.1 Introduction ............................................................................................2-64
2.2 Special Function Registers .....................................................................2-65
2.3 Oscillator and Clock Circuit.....................................................................2-68
2.4 CPU Timing.............................................................................................2-69
2.5 Port Structures and Operation ................................................................2-71
2.6 Accessing External Memory....................................................................2-75
2.7 PSEN ......................................................................................................2-76
2.8 ALE .........................................................................................................2-76
2.9 Timer/Counters .......................................................................................2-78
2.10 Timer 0....................................................................................................2-78
2.11 Timer 1....................................................................................................2-81
2.12 Timer 2....................................................................................................2-86
2.13 Serial Interface........................................................................................2-91
2.14 Framing Error Detection........................................................................2-101
2.15 Automatic Address Recognition............................................................2-102
2.16 Interrupts...............................................................................................2-109