Professional Documents
Culture Documents
MICROCONTROLLERS
OUTLINES
Comparison of microprocessors & microcontrollers
Advantages of microcontrollers
Embedded systems
Choose a microcontroller
Speed, packaging, memory & cost per unit
Various members of 8051 family
Various manufacturers of 8051
MICROCONTROLLER VS.
MICROPROCESSORS
a microprocessor or microcontroller to
do one task only
Printer
PC
Word
PC
X86
PC embedded applications
Home
Appliances,
Office
Telephones,
Auto
Engine
CHOOSING A MICROCONTROLLER
Computing needs
Speed,
support
Web Site
Intel
www.intel.com/design/mcs51
Atmel
www.atmel.com
Philips/Signetics
www.semiconductors.philips.com
Siemens
www.sci.siemens.com
Dallas Semiconductor
www.dalsemi.com
by Intel in 1981
10
PACKAGES
11
8051 ARCHITECTURE
8951 ARCHITECTURE
32
13
8051 FAMILY
Feature
8051
8052
4K
8k
0k
128
256
128
Timers
I/O pins
32
32
32
Serial port
Interrupt sources
RAM (bytes)
8031
14
AT89C51
Compatible with MCS-51 Products
4K Bytes of In-System Reprogrammable Flash
Memory
Endurance: 1,000 Write/Erase Cycles
Fully Static Operation: 0 Hz to 24 MHz
Three-Level Program Memory Lock
128 x 8-Bit Internal RAM
32 Programmable I/O Lines
Two 16-Bit Timer/Counters
Six Interrupt Sources
Programmable Serial Channel
15
Low Power Idle and Power Down Modes
microcontroller
UV-EPROM
AT89C51
Flash
DS5000
NV-RAM
OTP
(one-time-programmable) version of
8051
8051 family from Philips
AD,
16
89C51 MICROCONTROLLER
17
OSCILLATOR CONNECTIONS
18
PORT OPERATIONS
Total 4 ports
Port 0 may serve as inputs, outputs, or as a low
order address and data bus for external memory.
Port 1 may be used as input/output port.
Port 2 may be used as input/output or high order
address byte.
Port 3 may be used as an input/output and for
some alternate function.
19
PORT OPERATIONS
Pin
20
PORT OPERATIONS
To read and write from port:
MOV A, P0 or MOV A,80h
- This copies data from port 0 pins to
register A.
MOV P1, #0a5h or MOV 90h,#0a5h
- This moves a constant number into port1.
Moving data to a port changes the port
latch, moving data from a port gets data
from the port pins.
21
22