SlideShare a Scribd company logo
1 of 37
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Introduction to Computing
Slides from Nicerland.com
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Topics
• Internal organization of computers
– The different parts of a computer
• I/O
• Memory
• CPU
– Connecting the different parts
• Connecting memory to CPU
• Connecting I/Os to CPU
– How computers work
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Vacuum tube computers
SAGE Blockhouse/Computer:
10,170m2, 250 tons, houses More than 200,000
vacuum tubes @ 3,000,000 Watts
www.williamson-labs.com/480_cpu.htm
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Transistor Computers
• 2nd Generation
• From 1956
• Half a room
The Harwell Dekatron Computer under restoration at the British National Museum of Computing
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Invention of ICs
• 3rd generation
5
IBM 360 made by ICs (1964)
HSU
HSU
www. Micro Digital Ed. com
BIHE university
First microprocessors/Microcontrollers
• TI TMS1000
• 4004 (from Intel)
• 6800 (Motorola)
6
Intel 4004 (1971)
www.computerhistory.org
PICO1 (1971)
http://en.wikipedia.org/wiki/Microprocessor
TI TMS1000
(1971-1974)
http://www.antiquetech.com/
Motorola MC6800
(1974)
http://en.wikipedia.org/wiki/Motorola_6800
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Internal organization of
computers
• CPU
• Memory
• I/O
– Input
• E.g. Keyboard, Mouse, Sensor
– Output
• E.g. LCD, printer, hands of a robot
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Memory
• Everything that can store, retain, and recall
information.
– E.g. hard disk, a piece of paper, etc.
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Memory characteristics
• Capacity
– The number of bits that a memory can store.
• E.g. 128 Kbits, 256 Mbits
• Organization
– How the locations are organized
• E.g. a 128 x 4 memory has 128 locations, 4 bits
each
• Access time
– How long it takes to get data from memory
…
4 bits
128
locations
0
1
2
127
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Semiconductor memories
•
RAM
–
SRAM
(
Static RAM
)
–
DRAM
(
Dynamic RAM
)
–
NV-RAM
(
Nonvolatile
RAM
)
• ROM
– Mask ROM
– PROM (Programmable
ROM)
– EPROM (Erasable
PROM)
– EEPROM (Electronic
Erasable PROM)
– Flash EPROM
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryROMMask ROM
• Programmed by the IC manufacturer
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryROMPROM
(Programmable ROM)
• OTP (One-Time Programmable)
– You can program it only once
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryROMEPROM (Erasable
Programmable ROM)
• UV-EPROM
– You can shine ultraviolet (UV) radiation to
erase it
– Erasing takes up to 20 minutes
– The entire contents of ROM are erased
2764
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryROMEEPROM (Electrically
Erasable Programmable ROM)
• Erased Electrically
– Erased instantly
– Each byte can be erased separately
VSS
I/O2
I/O1
I/O0
A0
A1
A2
A3
A4
A5
A6
A7
A12
RDY/BSY
I/O3
I/O4
I/O5
I/O6
I/O7
CE
A10
OE
A11
A9
A8
NC
WE
VCC
8K x 8
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryROMFlash ROM
• Erased in a Flash
• the entire device(block) is erased at once
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryRAMSRAM (Static RAM)
• Made of flip-flops (Transistors)
• Advantages:
– Faster
– No need for refreshing
• Disadvantages:
– High power consumption
– Expensive
2K x 8
SRAM
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryRAMDRAM (Dynamic RAM)
• Made of capacitors
• Advantages:
– Less power consumption
– Cheaper
– High capacity
• Disadvantages:
– Slower
– Refresh needed
HSU
HSU
www. Micro Digital Ed. com
BIHE university
MemoryRAMNV-RAM (Nonvolatile
RAM)
• Made of SRAM, Battery, control circuitry
• Advantages:
– Very fast
– Infinite program/erase cycle
– Non-volatile
• Disadvantage:
– Expensive
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting memory to CPU
VCC
GND
A0-An-1
n
D0-D7
8
CS
OE
WE
CPU
VCC
Address
Data
WE
Time
CS
Writing to memory
Address
Data
WE
Time
CS
Reading from memory
OE
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting I/Os to CPU
• CPU should have
lots of pins! Mouse
Keyboard
Graphic Card
Sound Card
Network
CPU
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting I/Os to CPU using
bus
CPU
I/O 0
Address bus
Data bus
Control bus
I/O 1 I/O 2 I/O n
Write
Read
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting I/Os and Memory to CPU
VCC
GND
A0-An-1
n
D0-D7
8
CS
OE
WE
VCC
CPU I/O 0
Address bus
Data bus
Control bus
I/O 1 I/O 2 I/O n
Write
Read
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting I/Os and memory to CPU using bus
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
I/O 0
Address bus
Data bus
Control bus
I/O 1 I/O 2 I/O n
Write
Read
0
1
2
3
0
How could we manage it?
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting I/Os and Memory
to CPU using bus
(Peripheral I/O)
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
Address bus
Data bus
Control bus
Write
Read
0
1
..
63
IO/MEM
I/O 0 I/O 1 I/O 2 I/O n
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Connecting I/Os and Memory
to CPU using bus
(Memory Mapped I/O)
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
I/O 16
Address bus
Data bus
Control bus
I/O 17 I/O 18 I/O n
Write
Read
0
1
..
15
Logic circuit
The logic circuit
enables CS
when address is
between 0 and
15
How could we make the logic
circuit?
Solution
1. Write the address range in binary
0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 1
From address 0 
To address15 
2. Separate the fixed part of address
3. Using a NAND, design a logic circuit whose output
activates when the fixed address is given to it.
a7 a6 a5 a4 a3 a2 a1 a0
a5
a6
a4
a7
CS
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Another example for address
decoder
• Design an address decoder for address of
300H to 3FFH.
Solution
1. Write the address range in binary
2. Separate the fixed part of address
3. Design the logic circuit.
a9
a10
a8
a11
CS
0 0 1 1 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1
From address 300H 
To address 3FFH 
a7 a6 a5 a4 a3 a2 a1 a0
a11 a10 a9 a8
0 0 1 1
a11 a10 a9 a8
An easy way of
designing
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Inside the CPU
• PC (Program Counter)
• Instruction decoder
• ALU (Arithmetic Logic Unit)
• Registers
CPU
PC
ALU B
A
D
C
registers
Instruction decoder
HSU
HSU
www. Micro Digital Ed. com
BIHE university
How computers work
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
ALU B
A
D
C
registers
Inst. Dec.
I/O 16 I/O 17 I/O 18 I/O n
Logic circuit
PC: 0
1
Address bus
Data bus
Control bus Write
Read
0
0
1
2
3
4
5
6
7
31h
C4h
26h
81h
EAh
0h
5h
31
A [17]
B  A
A  [6]
AA+B
[7]A
HSU
HSU
www. Micro Digital Ed. com
BIHE university
How computers work
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
ALU B
A
D
C
registers
Inst. Dec.
I/O 16 I/O 17 I/O 18 I/O n
Logic circuit
PC: 1
Address bus
Data bus
Control bus Write
Read
0
1
2
3
4
5
6
7
31h
C4h
26h
81h
EAh
0h
5h
31
A [17]
B  A
A  [6]
AA+B
[7]A
17
9
HSU
HSU
www. Micro Digital Ed. com
BIHE university
How computers work
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
ALU B
A
D
C
registers
Inst. Dec.
I/O 16 I/O 17 I/O 18 I/O n
Logic circuit
PC: 1
2
Address bus
Data bus
Control bus Write
Read
1
0
1
2
3
4
5
6
7
31h
C4h
26h
81h
EAh
0h
5h
C4 A [17]
B  A
A  [6]
AA+B
[7]A
17
9
9
2
26
3
6
5
HSU
HSU
www. Micro Digital Ed. com
BIHE university
How computers work
V
CC
GND
A0-A
n-1
D0-D7
CS
OE
WE
CPU
ALU B
A
D
C
registers
Inst. Dec.
I/O 16 I/O 17 I/O 18 I/O n
Logic circuit
PC:
Address bus
Data bus
Control bus Write
Read
0
1
2
3
4
5
6
7
31h
C4h
26h
81h
EAh
0h
5h
A [17]
B  A
A  [6]
AA+B
[7]A
5
9
81
3
3
4
5
9
+
E
4
EA
E
7
Eh
5
HSU
HSU
www. Micro Digital Ed. com
BIHE university
How Instruction decoder
works
Operation Code Meaning
000 A  x
001 A  [x]
010 A  A – register (x)
011 A  A + x
100 A  A + register (x)
101 A  A – x
110 Register (xH)  Register (xL)
111 [x]  A
Opcode Operand
Instruction
Opcode Operand
Instruction
0
1
2
3
4
5
6
7
31h
C4h
26h
81h
EAh
0h
5h
A [17]
B  A
A  [6]
AA+B
[7]A
0011 0001
1100 0100
0010 0110
1000 0001
1110 1010
0000 0000
0000 0101
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Von Neumann vs. Harvard architecture
• Harvard architecture
Address bus
Data bus
Control bus
Address bus
Data bus
Control bus
CPU Address bus
Data bus
Control bus
Data
Memory
Code
Memory
• Von Neumann architecture
CPU
Code
Memory
Data
Memory
HSU
HSU
www. Micro Digital Ed. com
BIHE university
General Purpose Microprocessors
vs. Microcontrollers
• General Purpose Microprocessors
• Microcontrollers
Microcontroller
CPU
RAM ROM
I/O
Port
Timer
Buses
Serial
Port
General
Purpose
Micropro
cessor
(CPU)
RAM ROM
I/O
Port
Timer
Buses
Serial
Port
HSU
HSU
www. Micro Digital Ed. com
BIHE university
Most common
microcontrollers
• 8-bit microcontrollers
– AVR
– PIC
– HCS12
– 8051
• 32-bit microcontrollers
– ARM
– AVR32
– PIC32
– CodeFire
– PowerPC
HSU
HSU
www. Micro Digital Ed. com
BIHE university
AVR internal architecture
PROGRAM
ROM
Ports
OSC
CPU
Timers
Other
Peripherals
Program
Bus Bus
RAM
I/O
PINS
EEPROM
Interrupt
Unit
28 pin
10
11
1
2
3
4
5
6
7
8
9
12
13
14
(PCINT14/RESET) PC6
(PCINT16/RXD) PD0
(PCINT17/TXD) PD1
(PCINT18/INT0) PD2
(PCINT19/OC2B/INT1) PD3
(PCINT20/XCK/T0) PD4
VCC
GND
(PCINT6/XTAL1/TOSC1) PB6
(PCINT7/XTAL2/TOSC2) PB7
(PCINT22/OC0A/AIN0) PD6
(PCINT21/OC0B) PD5
(PCINT23/AIN1) PD7
(PCINT0/CLKO/ICP1) PB0
MEGA328
19
18
28
27
26
25
24
23
22
21
20
17
16
15
PC5 (ADC5/SCL/PCINT13)
PC4 (ADC4/SDA/PCINT12)
PC3 (ADC3/PCINT11)
PC2 (ADC2/PCINT10)
PC1 (ADC1/PCINT9)
PC0 (ADC0/PCINT8)
GND
AREF
AVCC
PB5 (SCK/PCINT5)
PB3 (MOSI/OC2A/PCINT3)
PB4 (MISO/PCINT4)
PB2 (SS/OC1B/PCINT2)
PB1 (OC1A/PCINT1)
HSU
HSU
www. Micro Digital Ed. com
BIHE university
AVR different groups
• Classic AVR
– e.g. AT90S2313, AT90S4433
• Mega
– e.g. ATmega8, ATmega32, ATmega128
• Tiny
– e.g. ATtiny13, ATtiny25
• Special Purpose AVR (Application Oriented AVR)
– e.g. AT90PWM216,AT90USB1287
• XMega
– New features like DMA, DAC, crypto engine, etc.
SOIC
TSSOP
CBGA

More Related Content

Similar to Micro_Lec2_IntroductionToComputing.pptx

Introduction to Computer Engineering. Motherboard.
Introduction to Computer Engineering. Motherboard.Introduction to Computer Engineering. Motherboard.
Introduction to Computer Engineering. Motherboard.marada0033
 
Introduction to Microprocessor lecture 01
Introduction to Microprocessor lecture  01Introduction to Microprocessor lecture  01
Introduction to Microprocessor lecture 01Md. Murshedul Arifeen
 
Micro controller
Micro controllerMicro controller
Micro controllerDevi Prasad
 
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...Maria Gizelle Aragon
 
ECESLU Microprocessors lecture
ECESLU Microprocessors lecture ECESLU Microprocessors lecture
ECESLU Microprocessors lecture Jeffrey Des Binwag
 
W4647 _ JVNArchitecture.ppt
W4647 _ JVNArchitecture.pptW4647 _ JVNArchitecture.ppt
W4647 _ JVNArchitecture.pptTrungNguynTin5
 
Motherboard Components and Their Functions.docx
Motherboard Components and Their Functions.docxMotherboard Components and Their Functions.docx
Motherboard Components and Their Functions.docxJulieAnnGuimbaoMuyco
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085Sumit Swain
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware systemRai University
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware systemRai University
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080Vivek Venugopal
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware systemRai University
 
Bsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemBsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemRai University
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerSenthil Kumar
 
Lecturer1 introduction to computer architecture (ca)
Lecturer1   introduction to computer architecture (ca)Lecturer1   introduction to computer architecture (ca)
Lecturer1 introduction to computer architecture (ca)ADEOLA ADISA
 

Similar to Micro_Lec2_IntroductionToComputing.pptx (20)

Introduction to Computer Engineering. Motherboard.
Introduction to Computer Engineering. Motherboard.Introduction to Computer Engineering. Motherboard.
Introduction to Computer Engineering. Motherboard.
 
Introduction to 8085svv
Introduction to 8085svvIntroduction to 8085svv
Introduction to 8085svv
 
Introduction to Microprocessor lecture 01
Introduction to Microprocessor lecture  01Introduction to Microprocessor lecture  01
Introduction to Microprocessor lecture 01
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
Expansion Bus, Internal & External Buses, Northbridge/Southbridge, Device Dri...
 
ECESLU Microprocessors lecture
ECESLU Microprocessors lecture ECESLU Microprocessors lecture
ECESLU Microprocessors lecture
 
W4647 _ JVNArchitecture.ppt
W4647 _ JVNArchitecture.pptW4647 _ JVNArchitecture.ppt
W4647 _ JVNArchitecture.ppt
 
Motherboard Components and Their Functions.docx
Motherboard Components and Their Functions.docxMotherboard Components and Their Functions.docx
Motherboard Components and Their Functions.docx
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Micro controller & Micro processor
Micro controller & Micro processorMicro controller & Micro processor
Micro controller & Micro processor
 
Bba i-introduction to computer-u-1-computer hardware system
Bba  i-introduction to computer-u-1-computer hardware systemBba  i-introduction to computer-u-1-computer hardware system
Bba i-introduction to computer-u-1-computer hardware system
 
Histry n intro
Histry n introHistry n intro
Histry n intro
 
fundamental of computer-u-1-computer hardware system
fundamental of  computer-u-1-computer hardware systemfundamental of  computer-u-1-computer hardware system
fundamental of computer-u-1-computer hardware system
 
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
AN INTEGRATED FOUR-PORT DC-DC CONVERTER-CEI0080
 
Mca i-fundamental of computer-u-1-computer hardware system
Mca  i-fundamental of  computer-u-1-computer hardware systemMca  i-fundamental of  computer-u-1-computer hardware system
Mca i-fundamental of computer-u-1-computer hardware system
 
Mpi unit i_8086_architectures
Mpi unit i_8086_architecturesMpi unit i_8086_architectures
Mpi unit i_8086_architectures
 
Bus interface 8086
Bus interface 8086Bus interface 8086
Bus interface 8086
 
Bsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware systemBsc cs 1 fit u-1 computer hardware system
Bsc cs 1 fit u-1 computer hardware system
 
Ec6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontrollerEc6504 microprocessor and microcontroller
Ec6504 microprocessor and microcontroller
 
Lecturer1 introduction to computer architecture (ca)
Lecturer1   introduction to computer architecture (ca)Lecturer1   introduction to computer architecture (ca)
Lecturer1 introduction to computer architecture (ca)
 

Recently uploaded

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Micro_Lec2_IntroductionToComputing.pptx

  • 1. HSU HSU www. Micro Digital Ed. com BIHE university Introduction to Computing Slides from Nicerland.com
  • 2. HSU HSU www. Micro Digital Ed. com BIHE university Topics • Internal organization of computers – The different parts of a computer • I/O • Memory • CPU – Connecting the different parts • Connecting memory to CPU • Connecting I/Os to CPU – How computers work
  • 3. HSU HSU www. Micro Digital Ed. com BIHE university Vacuum tube computers SAGE Blockhouse/Computer: 10,170m2, 250 tons, houses More than 200,000 vacuum tubes @ 3,000,000 Watts www.williamson-labs.com/480_cpu.htm
  • 4. HSU HSU www. Micro Digital Ed. com BIHE university Transistor Computers • 2nd Generation • From 1956 • Half a room The Harwell Dekatron Computer under restoration at the British National Museum of Computing
  • 5. HSU HSU www. Micro Digital Ed. com BIHE university Invention of ICs • 3rd generation 5 IBM 360 made by ICs (1964)
  • 6. HSU HSU www. Micro Digital Ed. com BIHE university First microprocessors/Microcontrollers • TI TMS1000 • 4004 (from Intel) • 6800 (Motorola) 6 Intel 4004 (1971) www.computerhistory.org PICO1 (1971) http://en.wikipedia.org/wiki/Microprocessor TI TMS1000 (1971-1974) http://www.antiquetech.com/ Motorola MC6800 (1974) http://en.wikipedia.org/wiki/Motorola_6800
  • 7. HSU HSU www. Micro Digital Ed. com BIHE university Internal organization of computers • CPU • Memory • I/O – Input • E.g. Keyboard, Mouse, Sensor – Output • E.g. LCD, printer, hands of a robot
  • 8. HSU HSU www. Micro Digital Ed. com BIHE university Memory • Everything that can store, retain, and recall information. – E.g. hard disk, a piece of paper, etc.
  • 9. HSU HSU www. Micro Digital Ed. com BIHE university Memory characteristics • Capacity – The number of bits that a memory can store. • E.g. 128 Kbits, 256 Mbits • Organization – How the locations are organized • E.g. a 128 x 4 memory has 128 locations, 4 bits each • Access time – How long it takes to get data from memory … 4 bits 128 locations 0 1 2 127
  • 10. HSU HSU www. Micro Digital Ed. com BIHE university Semiconductor memories • RAM – SRAM ( Static RAM ) – DRAM ( Dynamic RAM ) – NV-RAM ( Nonvolatile RAM ) • ROM – Mask ROM – PROM (Programmable ROM) – EPROM (Erasable PROM) – EEPROM (Electronic Erasable PROM) – Flash EPROM
  • 11. HSU HSU www. Micro Digital Ed. com BIHE university MemoryROMMask ROM • Programmed by the IC manufacturer
  • 12. HSU HSU www. Micro Digital Ed. com BIHE university MemoryROMPROM (Programmable ROM) • OTP (One-Time Programmable) – You can program it only once
  • 13. HSU HSU www. Micro Digital Ed. com BIHE university MemoryROMEPROM (Erasable Programmable ROM) • UV-EPROM – You can shine ultraviolet (UV) radiation to erase it – Erasing takes up to 20 minutes – The entire contents of ROM are erased 2764
  • 14. HSU HSU www. Micro Digital Ed. com BIHE university MemoryROMEEPROM (Electrically Erasable Programmable ROM) • Erased Electrically – Erased instantly – Each byte can be erased separately VSS I/O2 I/O1 I/O0 A0 A1 A2 A3 A4 A5 A6 A7 A12 RDY/BSY I/O3 I/O4 I/O5 I/O6 I/O7 CE A10 OE A11 A9 A8 NC WE VCC 8K x 8
  • 15. HSU HSU www. Micro Digital Ed. com BIHE university MemoryROMFlash ROM • Erased in a Flash • the entire device(block) is erased at once
  • 16. HSU HSU www. Micro Digital Ed. com BIHE university MemoryRAMSRAM (Static RAM) • Made of flip-flops (Transistors) • Advantages: – Faster – No need for refreshing • Disadvantages: – High power consumption – Expensive 2K x 8 SRAM
  • 17. HSU HSU www. Micro Digital Ed. com BIHE university MemoryRAMDRAM (Dynamic RAM) • Made of capacitors • Advantages: – Less power consumption – Cheaper – High capacity • Disadvantages: – Slower – Refresh needed
  • 18. HSU HSU www. Micro Digital Ed. com BIHE university MemoryRAMNV-RAM (Nonvolatile RAM) • Made of SRAM, Battery, control circuitry • Advantages: – Very fast – Infinite program/erase cycle – Non-volatile • Disadvantage: – Expensive
  • 19. HSU HSU www. Micro Digital Ed. com BIHE university Connecting memory to CPU VCC GND A0-An-1 n D0-D7 8 CS OE WE CPU VCC Address Data WE Time CS Writing to memory Address Data WE Time CS Reading from memory OE
  • 20. HSU HSU www. Micro Digital Ed. com BIHE university Connecting I/Os to CPU • CPU should have lots of pins! Mouse Keyboard Graphic Card Sound Card Network CPU
  • 21. HSU HSU www. Micro Digital Ed. com BIHE university Connecting I/Os to CPU using bus CPU I/O 0 Address bus Data bus Control bus I/O 1 I/O 2 I/O n Write Read
  • 22. HSU HSU www. Micro Digital Ed. com BIHE university Connecting I/Os and Memory to CPU VCC GND A0-An-1 n D0-D7 8 CS OE WE VCC CPU I/O 0 Address bus Data bus Control bus I/O 1 I/O 2 I/O n Write Read
  • 23. HSU HSU www. Micro Digital Ed. com BIHE university Connecting I/Os and memory to CPU using bus V CC GND A0-A n-1 D0-D7 CS OE WE CPU I/O 0 Address bus Data bus Control bus I/O 1 I/O 2 I/O n Write Read 0 1 2 3 0 How could we manage it?
  • 24. HSU HSU www. Micro Digital Ed. com BIHE university Connecting I/Os and Memory to CPU using bus (Peripheral I/O) V CC GND A0-A n-1 D0-D7 CS OE WE CPU Address bus Data bus Control bus Write Read 0 1 .. 63 IO/MEM I/O 0 I/O 1 I/O 2 I/O n
  • 25. HSU HSU www. Micro Digital Ed. com BIHE university Connecting I/Os and Memory to CPU using bus (Memory Mapped I/O) V CC GND A0-A n-1 D0-D7 CS OE WE CPU I/O 16 Address bus Data bus Control bus I/O 17 I/O 18 I/O n Write Read 0 1 .. 15 Logic circuit The logic circuit enables CS when address is between 0 and 15 How could we make the logic circuit? Solution 1. Write the address range in binary 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 From address 0  To address15  2. Separate the fixed part of address 3. Using a NAND, design a logic circuit whose output activates when the fixed address is given to it. a7 a6 a5 a4 a3 a2 a1 a0 a5 a6 a4 a7 CS
  • 26. HSU HSU www. Micro Digital Ed. com BIHE university Another example for address decoder • Design an address decoder for address of 300H to 3FFH. Solution 1. Write the address range in binary 2. Separate the fixed part of address 3. Design the logic circuit. a9 a10 a8 a11 CS 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 From address 300H  To address 3FFH  a7 a6 a5 a4 a3 a2 a1 a0 a11 a10 a9 a8 0 0 1 1 a11 a10 a9 a8 An easy way of designing
  • 27. HSU HSU www. Micro Digital Ed. com BIHE university Inside the CPU • PC (Program Counter) • Instruction decoder • ALU (Arithmetic Logic Unit) • Registers CPU PC ALU B A D C registers Instruction decoder
  • 28. HSU HSU www. Micro Digital Ed. com BIHE university How computers work V CC GND A0-A n-1 D0-D7 CS OE WE CPU ALU B A D C registers Inst. Dec. I/O 16 I/O 17 I/O 18 I/O n Logic circuit PC: 0 1 Address bus Data bus Control bus Write Read 0 0 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h 31 A [17] B  A A  [6] AA+B [7]A
  • 29. HSU HSU www. Micro Digital Ed. com BIHE university How computers work V CC GND A0-A n-1 D0-D7 CS OE WE CPU ALU B A D C registers Inst. Dec. I/O 16 I/O 17 I/O 18 I/O n Logic circuit PC: 1 Address bus Data bus Control bus Write Read 0 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h 31 A [17] B  A A  [6] AA+B [7]A 17 9
  • 30. HSU HSU www. Micro Digital Ed. com BIHE university How computers work V CC GND A0-A n-1 D0-D7 CS OE WE CPU ALU B A D C registers Inst. Dec. I/O 16 I/O 17 I/O 18 I/O n Logic circuit PC: 1 2 Address bus Data bus Control bus Write Read 1 0 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h C4 A [17] B  A A  [6] AA+B [7]A 17 9 9 2 26 3 6 5
  • 31. HSU HSU www. Micro Digital Ed. com BIHE university How computers work V CC GND A0-A n-1 D0-D7 CS OE WE CPU ALU B A D C registers Inst. Dec. I/O 16 I/O 17 I/O 18 I/O n Logic circuit PC: Address bus Data bus Control bus Write Read 0 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h A [17] B  A A  [6] AA+B [7]A 5 9 81 3 3 4 5 9 + E 4 EA E 7 Eh 5
  • 32. HSU HSU www. Micro Digital Ed. com BIHE university How Instruction decoder works Operation Code Meaning 000 A  x 001 A  [x] 010 A  A – register (x) 011 A  A + x 100 A  A + register (x) 101 A  A – x 110 Register (xH)  Register (xL) 111 [x]  A Opcode Operand Instruction Opcode Operand Instruction 0 1 2 3 4 5 6 7 31h C4h 26h 81h EAh 0h 5h A [17] B  A A  [6] AA+B [7]A 0011 0001 1100 0100 0010 0110 1000 0001 1110 1010 0000 0000 0000 0101
  • 33. HSU HSU www. Micro Digital Ed. com BIHE university Von Neumann vs. Harvard architecture • Harvard architecture Address bus Data bus Control bus Address bus Data bus Control bus CPU Address bus Data bus Control bus Data Memory Code Memory • Von Neumann architecture CPU Code Memory Data Memory
  • 34. HSU HSU www. Micro Digital Ed. com BIHE university General Purpose Microprocessors vs. Microcontrollers • General Purpose Microprocessors • Microcontrollers Microcontroller CPU RAM ROM I/O Port Timer Buses Serial Port General Purpose Micropro cessor (CPU) RAM ROM I/O Port Timer Buses Serial Port
  • 35. HSU HSU www. Micro Digital Ed. com BIHE university Most common microcontrollers • 8-bit microcontrollers – AVR – PIC – HCS12 – 8051 • 32-bit microcontrollers – ARM – AVR32 – PIC32 – CodeFire – PowerPC
  • 36. HSU HSU www. Micro Digital Ed. com BIHE university AVR internal architecture PROGRAM ROM Ports OSC CPU Timers Other Peripherals Program Bus Bus RAM I/O PINS EEPROM Interrupt Unit 28 pin 10 11 1 2 3 4 5 6 7 8 9 12 13 14 (PCINT14/RESET) PC6 (PCINT16/RXD) PD0 (PCINT17/TXD) PD1 (PCINT18/INT0) PD2 (PCINT19/OC2B/INT1) PD3 (PCINT20/XCK/T0) PD4 VCC GND (PCINT6/XTAL1/TOSC1) PB6 (PCINT7/XTAL2/TOSC2) PB7 (PCINT22/OC0A/AIN0) PD6 (PCINT21/OC0B) PD5 (PCINT23/AIN1) PD7 (PCINT0/CLKO/ICP1) PB0 MEGA328 19 18 28 27 26 25 24 23 22 21 20 17 16 15 PC5 (ADC5/SCL/PCINT13) PC4 (ADC4/SDA/PCINT12) PC3 (ADC3/PCINT11) PC2 (ADC2/PCINT10) PC1 (ADC1/PCINT9) PC0 (ADC0/PCINT8) GND AREF AVCC PB5 (SCK/PCINT5) PB3 (MOSI/OC2A/PCINT3) PB4 (MISO/PCINT4) PB2 (SS/OC1B/PCINT2) PB1 (OC1A/PCINT1)
  • 37. HSU HSU www. Micro Digital Ed. com BIHE university AVR different groups • Classic AVR – e.g. AT90S2313, AT90S4433 • Mega – e.g. ATmega8, ATmega32, ATmega128 • Tiny – e.g. ATtiny13, ATtiny25 • Special Purpose AVR (Application Oriented AVR) – e.g. AT90PWM216,AT90USB1287 • XMega – New features like DMA, DAC, crypto engine, etc. SOIC TSSOP CBGA