Professional Documents
Culture Documents
Learn The Architecture and Instruction Set of The 8051 Microcontroller and Program Some Basic Examples Using ASM Assembly Language
Learn The Architecture and Instruction Set of The 8051 Microcontroller and Program Some Basic Examples Using ASM Assembly Language
Presented by group 1
instruction on 8051
8051 microcontroller
microcontroller
Chapter 1
Introduction
of a high-performance, cost-effective
(PWM) modules.
Characteristics
• Compact instruction set, focused on controlling input and output operations.
• Can operate with 1-bit data (suitable for controlling 2 states such as On/Off, zero and one, chip
buzzer...).
• Software is permanently loaded into ROM, serving a specific purpose.
microcontroller program is
stored.
■ The first address of the
to 0FFFH
■ The 8051 internal RAM is
(80H-FFH). ).
Memory Organization
• SFR:
⚬ Main register A
⚬ Sub register B
⚬ Port registers P0 - P3
⚬ Program Status Register PSW
⚬ Timer/counter register
⚬ Interrupt register
Internal memory
Assembly Code
• Data movement instructions: MOV, MOVC, MOVX, XCH, XCHD.
• Bit handling instructions:
⚬ CLR (clear bit)
including the CPU, memory, and input/output ports. The memory organization is