8051 Microcontroller
8051 Microcontroller
8051 Microcontroller
RACHIT SHARMA
EI/08/8532
INTRODUCTION TO
EMBEDDED SYSTEM
• The embedded system is a combination of
computer hardware, software additional
electrical & mechanical parts
• A computer is used in such devices primarily
as a means to simplify the system design and
to provide flexibility.
• Embedded systems employ the use of a RTOS
(Real-Time Operating System).
APPLICATONS OF
EMBEDDED SYSTEMS
• Consumer electronics
• Telecommunication
• Automobile
• Medical instrumentation
• Industrial control equipment
• Defense
• Communication satellite
• Data communication
• Internet appliances
INTRODUCTION
TO MICROCONTROLLER
• A microcontroller is a computer-on-a-chip.
• Micro suggests that the device is small, and
controller tells you that the device might be
used to control objects, processes, or events.
• Another term to describe a microcontroller is
embedded controller, because the
microcontroller and its support circuits are
often built into, or embedded in, the devices
they control.
8051
MICROCONTROLLER
• Complete, highly-integrated microcomputer
– CPU, RAM, ROM, IO
• Port 0
– 8-bit bidirectional I/O port OR
– multiplexed low-order address and data bus bytes
• Port 1
– 8-bit bidirectional I/O port
• Port 2
– 8-bit bidirectional I/O port OR
– high-order address byte
• Port 3
– 8-bit bidirectional I/O port OR
– various special-function signals
8051 MICROCONTROLLER
Interface Signals
8
Port 0 or Lo Addr/Data PO/AD[7-0]
P2 / A[15-8] 8
Port 2 or Hi Addr
Timer 0 P3.4 / T0
Timer 1 P3.5 / T1
[I/O]
Serial Input Port P3.0 /RXD
Serial Output Port P3.1 /TXD
Port 1 P1 8
8051 ARCHITECTURE
ORG 500H
DATA1: DB 39H
DATA2: DB “2591” ;ASCII NUMBERS
ORG 518H
DATA3: DB “Computer Engineering”
ASSEMBLER DIRECTIVES