Professional Documents
Culture Documents
Course Description
1
Introduction to 205335 Microprocessor
Points
1. Hardware
2. LED, 7-Segment, Button
3. Counter
4. Clock
2
Introduction to 205335 Microprocessor
Software
1. ASM-51
2. SDCC (C language) or KEIL
3. Flash Magic
4. Protel (PCB Design)
What is a “Microprocessor”?
The microprocessor was born by reducing the word size of the CPU from
32 bits to 4 bits, so that the transistors of its logic circuits would fit onto a single part.
One or more microprocessors typically serve as the CPU in a computer system
, embedded system, or handheld device.
3
What is the first “Microprocessor”?
There are 3 microprocessor developed and finished in the same period but the
first commercial microprocessor is developed and released by Intel. The first
Microprocessor is 4004. It is a 4 bit microprocessor that is released on November 15, 1971
, developed by Federico Faggin and Marcian Hoff.
Timeline
After the first microprocessor is released, Intel released the first 8-bits
microprocessor, 8008 in 1972. This microprocessor architecture is a precursor to the most
successful 8080 microprocessor that released in 1974. In the same year, Motorola also
released the 6800 series microprocessor. Zilog Company, which is established
by Marcian Hoff, released the Z80 microprocessor in 1976.
The first single-chip 16-bit microprocessor was TI's TMS 9900, which was also
compatible with their TI-990 line of minicomputers. The 9900 was used in the TI 990/4
minicomputer, the TI-99/4A home computer, and the TM990 line of OEM microcomputer
boards.
4
Timeline
Timeline
While 64-bit microprocessor designs have been in use in several markets since
the early 1990s, the early 2000s have seen the introduction of 64-bit microchips targeted at
the PC market. With AMD's introduction of the first 64-bit IA-32 backwards-compatible
architecture, AMD64, in September 2003, followed by Intel's own x86-64 chips, the 64-bit
desktop era began.Both processors can run 32-bit legacy apps as well as the new 64-bit
software. With 64-bit Windows XP, Windows vista x64, Linux and Mac OS X that run
64-bit native, the software too is geared to utilize the full power of such processors.
5
Timeline
What is a “Microcontroller”?
6
What is a Digital Signal Processor (DSP)
7
Where you can find microprocessor/controller ?
8
How can “Microprocessor” work ?
In order to make a microprocessor work, ROM, RAM and I/O is needed.
microprocessor by itself alone cannot perform any command because a microprocessor
don’t have memory inside. The microprocessor system contains
They are connected by the “BUS SYSTEM” and the bus system can be separated into
- Address bus
Address Bus
- Data bus
- Control bus
Data Bus
CPU
Control Bus
I/O Unit
9
CPU
CPU consists of
1. Registers
2. Arithmetic and Logic Unit (ALU)
3. Instruction Decode and Control Unit
4. Instruction Register (IR)
5. Program Counter (PC)
Address bus
Data bus
Control bus
IR PC
Sequence of Fetch
1. Program Counter (PC) Fetch by sending its address into the address bus.
2. Control unit sends “Read” command to control bus .
3. Memory after get the address and “Read” command, it send
the instruction data from that specific address to data bus.
4. Instruction Register (IR) get that instruction from data bus.
5. Decode Unit read the instruction in IR and ‘Execute’ that instruction.
6. Program Counter (PC) increase its own address in order to ready
for the next Fetch.
10
Bus System
Address bus : used to specific the location of instruction, data, and I/O unit.
Address bus is an unidirectional bus because the address come from CPU only.
Address bus is different in each system depended on bits of the CPU. If CPU is
n
an n-bits microprocessor then the total addresses that can refer to is 2 addresses
2 8 = 256
210 = 1,024 = 1 Kbyte
Bus System
Data bus : used to transfer data to memory, and to I/O unit. Address bus is a
bidirectional bus because the data come both in and out from CPU.
Control bus : control signal in the control bus are timing signals that are used
to synchronize external devices that are connected to CPU. The control signal will
synchronize the address and data bus. The control bus consists of Clock, Read,
Write, Interrupts and other signal depended on the CPU architecture.
11
Input / Output Unit
I/O unit , Peripherals are devices that extended from CPU (not include
Memory). This unit is used to interface the microprocessor system to user
,to mass storage and to control/monitor system.
Mass storage can be separated to archival and online storage. Online storage
is magnetic disk or “Hard Disk” while archival storage is magnetic tape and
floppy disk. Online storage is a mass storage that CPU can always access the
information when CPU needs, but archival storage is a storage that user have to
prepare for microprocessor and tell CPU to access it.
User Interface is a monitor, mouse, printer, keyboard, etc. some of these device
are bidirectional devices such as touch screen monitor. Others are one direction
Devices such as mouse is an input device, speaker is an output device.
Control/Monitor devices are the devices that are used to control or measure
some devices for example control relay that use to drive motor, measure
temperatures.
12
Software
Software Application
( User Interface)
Operating System
(Command language, Utilities)
Input/Output Subroutine
(Directly Access to Hardware)
Hardware
Software
Input/Output Subroutine is the lowest level that controls the input and output
of the hardware directly. Example, read the input from keyboard, Display data to
a monitor, etc. Input/Output Subroutine is importance and difference for each
microprocessor (PC) system because microprocessor system has a different
hardware. This subroutine is contained in a BIOS and in track of a hard disk
called bootstrap loader. Since the program can be run only on RAM then
Bootstrap loader has a responsibility to copy that program from a hard disk and
place it in RAM.
13
Software
Operating System will manage the sequence of operation and it is easier for
user to use a microprocessor system rather than use only Input/Output Subroutine.
Operating system consists of “command language” and “utility software”.
14
Microprocessor VS Microcontroller
One of the most advantage of MCU is interrupt. Interrupt is a event that can
cause by hardware (hardware interrupt) or software (software interrupt). When
the interrupt happens, MCU will jump to assigned sub-program that is already
assigned. Interrupt is used in Real-Time situation programming such as a
chemical pumping system whenever the fluid level excess the limit of a tank then
interrupt will occur to make the MCU cut the motor power.
MCS-51 VS Z-80
Z-80 has a lot of instructions but 71% of them are multi-bytes instruction so Z-80
has to Fetch more than one time to get the complete instruction while MCS-51 has
62% of its instruction are single-byte instruction. Because of this reason MCS-51 is
faster and optimal than Z-80.
Table : Page 9
15
MCS-51
MCS-51 series has many microcontrollers with the same architecture for example:
8031,8051,8952, etc. Most microcontroller in this series has both microcontroller
and microprocessor mode (set at EA pin).
MCS-51
16
Question ?
17