IC Microcontroller Presentation 16 17 OK
IC Microcontroller Presentation 16 17 OK
Embedded Systems
Szilárd Aradi (PhD), István Ferenc Lövétei
Department of Control for Transportation and Vehicle
Systems, Budapest University of Technology and
Economics, Budapest, Hungary
Table of Contents
• General Introduction
• IC – Integrated Circuit – Technology
• Architectures of Computers
• Memories
• CPU vs. MCU
• MCU
• Short Presentation of MCU Intel 8051
5/12/2016 I +C Technologies: Embedded Systems 2
General Introduction
• Embedded System: An embedded system is
a computer system with a dedicated
function.
• traffic lights and measuring systems (road
traffic);
• railway interlocking systems, train controlling
systems, controlling units of trains;
• flight control units of aircrafts;
• industrial process control;
• vehicle systems;
• etc…
5/12/2016 I +C Technologies: Embedded Systems 3
General Introduction
• Generation of ICs:
• ICs – number of transistors:
• SSI (Small-Scale Integration): 10x
• MSI (Medium-Scale Integration): 100x
• LSI (Large-Scale Integration): 10000x
• VLSI (Very Large-Scale Integration): 100000x
• ULSI (Ultra Large-Scale Integration): 1000000x
• SoC (System on Chip): a „whole computer” integrated in a single IC.
(E.g.: motherboard of smart phones)
• Intel 4004 (1971): 2300
• Intel Core i7 (2008): 781 million
• Wire width in the chip:
• Intel 4004 (1971): 10 µm
• Intel Core i7 (2008): 45 nm
• Memories:
• Volatile:
• RAM (Random – Access Memory):
• Dynamic RAM,
• Static RAM.
• Non – Volatile:
• ROM (Read-Only Memory),
• PROM (Programmable ROM),
• EPROM (Erasable Programmable ROM),
• EEPROM (Electrically Erasable Programmable ROM),
• Flash.
5/12/2016 I +C Technologies: Embedded Systems 13
Memories
• RAM:
• Dynamic RAM:
• one cell consists of one transistor and one capacitor,
• it has to refresh time to time, because the capacitor is discharged due to the
trickle current,
• slow, smaller size, cheap.
• Static RAM:
• one cell consists of more transistors (flip-flop),
• it stores the data for any length of time, if there is a power supply,
• fast, small energy consumption, expensive.
5/12/2016 I +C Technologies: Embedded Systems 14
Memories
• ROM
• Programmed by the manufacturer, the user can only read it.
• PROM
• User can program it once, than he can only read it.
• EPROM
• Cleared by UV light, programmed by special equipment.
• EEPROM
• Programmed and cleared by special equipment.
• Flash
• Type of EEPROM, programmed and cleared by the computer.
5/12/2016 I +C Technologies: Embedded Systems 15
CPU vs. MCU
• Instruction set:
• Reduced Instruction Set • Complex Instruction Set
Computer, Computer
• few, simple instructions, • many, complex instructions,
• uses more registers, • less registers,
• fewer addressing mode, • more addressing mode,
• instructions take one cycle • instructions take a varying
time, amount of cycle time,
• emphasis on software. • emphasis on hardware.
5/12/2016 I +C Technologies: Embedded Systems 19
MCU
• e.g. an excerpt of the CISC of Intel 8051
• CPU:
• Arithmetic Logic Unit:
• performs arithmetic and bitwise operations on integer binary number,
• AND, NOT, OR, XOR,
• addition, subtraction, multiplication, division (in 2’s complement code),
• shift, rotate.
• Control Unit:
• it tells the computer's memory, arithmetic/logic unit and input and output devices how
to respond to a program's instructions.
• it directs the operation of the other units by providing timing and control signals.
• Address Generation Unit:
• calculates addresses used by the CPU to access main memory.
5/12/2016 I +C Technologies: Embedded Systems 23
MCU
• Registers:
• a processor register is a quickly accessible location available to a digital
CPU, size: 1-2 words (e. g. in an 8 bits controller: 1- 2 bytes),
• data register, to store the data,
• address register, suitable for memory addressing,
• general purpose register, suitable for store data or address,
• special function register:
• suitable for running and tracking of the program (code);
• or suitable for handling other hardware modules.
5/12/2016 I +C Technologies: Embedded Systems 24
MCU
• E.g. combinational
logic circuitry of
the type 74181 IC,
which is a simple
four-bit ALU.
FLASH ROM
4 kB + 64 kB
RAM
384 B + 64 kB
• Live presentation:
• 8051 with ASM;
• 8051 with C;
• small electric motor controlling task.