SlideShare a Scribd company logo
1 of 10
Download to read offline
1/15/2010
1
Lecture 1:
Introduction to Microcomputers
Today’s Topics
• What is a microcomputers?
Wh do e st d microcomp ters?• Why do we study microcomputers?
• Two basic types of microcomputer architectures
• Internal components of a microcomputers
1/15/2010
2
Microcomputer
• Major components of the computer - the processor, the control unit,
one or more memory ICs, one or more I/O ICs, and the clock
• A single printed circuit board usually connects the ICs, making a
computer called a microcomputer
Memory
Data/Instructions
Address/Control
Microprocessor
Processor
(ALU)
Control
Unit
Input /
Output
Clock
Status/Control
Data
Input
Output
Microprocessor
Another definitions
• Microcomputer
– Relatively small and inexpensive computer that is contained on
Microcomputers, Microcontrollers, and Microprocessors
one or a few chips
• Microcontroller
– A single-chip microcomputer
• Microprocessor
– The processor and control unit part of the single-chip
computer(=microcontroller) is called microprocessor.
There is no single and clear
definition of these terms.
1/15/2010
3
Why do we study Microcomputers?
• Embedded systems use microcontrollers or microcomputers.
Some interesting statistics (from a fe ears ago)• Some interesting statistics (from a few years ago)
– An average American interacts with 300 or more embedded
systems every day.
– 95% of all microprocessor will be sold each year for embedded
systems.
– IEEE estimated that over 700,000 people worldwide were
employed writing code for embedded system in 2007.
Basic Architecture
• There are many other architectures in use. They will be
discussed in a computer architecture course.
Princeton and Harvard
What are ….?
• Here, we will cover two major architecture of microcomputers.
– Princeton and Harvard architecture
– The main difference is the memory structure
• Princeton Architecture*
– Known as Von Neumann architecture
– Single memory contains both the program code and the dataSingle memory contains both the program code and the data.
• Harvard Architecture
– Two separate memories. One contains only data while the other
is containing only program code.
1/15/2010
4
Princeton Architecture
• No separate memory space for program code and data
Known as Von Neumann
Memory
Data/Instructions
Address/Control
D t
Input
Microprocessor
Processor
(ALU)
Control
Unit
Input /
Output
Clock
Status/Control
Data
Output
Harvard Architecture
• Two separate memory units
• The length of an instruction could be different from the data size
OK.. I see. One clear
distinction of these two is
whether two separate
memory units exist or not.
• Both data and a program instruction can be read at the same time
Data
Memory
Instructions
D t
Input
Microprocessor
Code
Memory
Data Address
/Control
Processor
(ALU)
Control
Unit
Input /
Output
Clock
Status/Control
Data
Output
1/15/2010
5
Major components
• Also called an arithmetic logic unit (ALU).
Operations s ch as addition s btraction bit ise AND and
1. Processor
• Operations such as addition, subtraction, bit-wise AND and
OR, shift operations.
• The processor has registers (groups of D flip-flops used to
store binary values).
• Many microcontrollers perform operations on data that is
located in a register. This requires the microcontroller to load
h d f hthe data from memory into a register in the processor,
manipulate the data, then store the new value back to
memory.
• The processor also generates signals that indicates when
values are negative, zero, or when arithmetic overflow occurs.
Major components
• A synchronous sequential machine that coordinates the flow
of data between the other units and operations of the other
bl k
2. Control Unit
blocks.
• The sequence of states and control output of the unit depend
on the inputs: the current program instruction, the status
outputs of the other blocks, and the input/output block.
• Generally speaking, central processing unit (CPU) refers to not
only the processor but also the control unit.
1/15/2010
6
A Quick Introduction of HCS12 Microcontroller
• The Motorola 68HC12 was introduced in 1996 as an upgrade
for the 68HC11.
HCS12 (=68HC12 or 9S12) family microprocessor
• Features
– 16-bit CPU
– Standard 64-KB address space support
– Multiplexed (address and data) external bus.
– 0 to 4 KB of on-chip EEPROM
– 2 KB to 14 KB of on-chip SRAM
10 bit A/D t– 10-bit A/D converter
– 16 KB to 512 KB of on-chip flash memory (or ROM)
– Etc. etc. etc.
Major components
• Memory is the place where program code and data are stored.
A seq ence of directl addressable ‘locations ’
3. Memory
• A sequence of directly addressable ‘locations.’
• Therefore, the number of addresses available in a memory is
limited by the number of bits used to represent the address.
• If 16 bits are used for the address, there are 65,536 (=216)
different addresses available.
1/15/2010
7
Major components
• A memory location is referred to as an information unit which
has two components: its address and its contents.
3. Memory - continued
• The content indicated by an address can be interpreted by the
microprocessor as one of t o things
CPU Memory
Address bus lines
Data bus lines
microprocessor as one of two things.
– Instruction code are used as inputs into the control unit and
determine how it operates. A group of instruction is called a
program.
– Data are the numbers to be processed or the results of
operations in the processor.
Major components
• A periodic signal for the sequential machine in the control
unit.
4. Clock
• Also used by other blocks to synchronize operations
1/15/2010
8
Major components
• The Input/Output (I/O for short.) block represents the
interface between the internals of the microcomputer and the
d ld
5. Input/Output
outside world.
• Keyboard, LED and LCD display, printers for example.
Instruction Codes
• Instruction codes consist of Operation Code and Operand
Operation Code (Op Code for short)• Operation Code (Op Code for short)
– This tells the microcomputer what action to perform and how to
interpret the operand. All instructions must have an op code.
• Operand
– The operand contains the data that microcontroller will perform
the action on.
– Some operands include several numbers for op codes that
specify more complex actions.
– Some operation codes that perform simple tasks do not need to
have operands.
1/15/2010
9
Instruction Length
• Fixed length
– Each instruction is the same number of bits as all others.
Fixed and Variable-length
• Variable length*
– The length of each instruction may be different.
Op Code 1 Operand
Op Code 2 Operand
Op Code 3 Operand
Op Code 1 Operand
Op Code 3 Operand
Op Code 2 Operand
Questions?
1/15/2010
10
Wrap-up
• The definitions of microcomputers, microcontroller, and
microprocessor
What we’ve learned
• The importance of microcomputers in the real world
• Princeton* and Harvard architectures
• Processor, control unit, memory, clock, and I/O are the major
components of microcomputers.
Now.. I get the clear picture what the
microcomputers are.
And I feel like that this is going to
be really fun.
What to Come
• Review number systems
Introd ction to the HCS12/9S12• Introduction to the HCS12/9S12

More Related Content

What's hot (20)

Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
Interrupts
InterruptsInterrupts
Interrupts
 
Io processing
Io processingIo processing
Io processing
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Pipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture pptPipeline hazards in computer Architecture ppt
Pipeline hazards in computer Architecture ppt
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
 
The CPU and Memory and Major Components
The CPU and Memory and  Major ComponentsThe CPU and Memory and  Major Components
The CPU and Memory and Major Components
 
Superscalar Processor
Superscalar ProcessorSuperscalar Processor
Superscalar Processor
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
DMA operation
DMA operationDMA operation
DMA operation
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Random Access Memory ppt
Random Access Memory pptRandom Access Memory ppt
Random Access Memory ppt
 
Bus interconnection
Bus interconnectionBus interconnection
Bus interconnection
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Transport layer
Transport layer Transport layer
Transport layer
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 

Similar to 01 introduction to microcomputers

Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentalsJLoknathDora
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.pptsiminkhan
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxDrVaibhavMeshram
 
Embedded systems 101 final
Embedded systems 101 finalEmbedded systems 101 final
Embedded systems 101 finalKhalid Elmeadawy
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introductionKiran Bagale
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationAmrutaMehata
 
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Mrunal Deshkar
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1Sally Salem
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded Systemrmkceteee
 
Topic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structureTopic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structureBai Haqi
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 

Similar to 01 introduction to microcomputers (20)

PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
 
micro controllers 1.ppt
micro controllers 1.pptmicro controllers 1.ppt
micro controllers 1.ppt
 
Module -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptxModule -4_microprocessor (1).pptx
Module -4_microprocessor (1).pptx
 
Embedded systems 101 final
Embedded systems 101 finalEmbedded systems 101 final
Embedded systems 101 final
 
Unit 1. introduction
Unit 1. introductionUnit 1. introduction
Unit 1. introduction
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Computer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organizationComputer Organization : CPU, Memory and I/O organization
Computer Organization : CPU, Memory and I/O organization
 
Chapter12
Chapter12Chapter12
Chapter12
 
Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor Overview of microcontroller and microprocessor
Overview of microcontroller and microprocessor
 
Processors
ProcessorsProcessors
Processors
 
Microcontroller overview 1
Microcontroller overview 1Microcontroller overview 1
Microcontroller overview 1
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Uc1(vii sem)
Uc1(vii sem)Uc1(vii sem)
Uc1(vii sem)
 
EE6602 Embedded System
EE6602 Embedded SystemEE6602 Embedded System
EE6602 Embedded System
 
Cao u1
Cao u1Cao u1
Cao u1
 
Topic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structureTopic 5 Digital Technique basic computer structure
Topic 5 Digital Technique basic computer structure
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 

Recently uploaded

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Recently uploaded (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

01 introduction to microcomputers

  • 1. 1/15/2010 1 Lecture 1: Introduction to Microcomputers Today’s Topics • What is a microcomputers? Wh do e st d microcomp ters?• Why do we study microcomputers? • Two basic types of microcomputer architectures • Internal components of a microcomputers
  • 2. 1/15/2010 2 Microcomputer • Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock • A single printed circuit board usually connects the ICs, making a computer called a microcomputer Memory Data/Instructions Address/Control Microprocessor Processor (ALU) Control Unit Input / Output Clock Status/Control Data Input Output Microprocessor Another definitions • Microcomputer – Relatively small and inexpensive computer that is contained on Microcomputers, Microcontrollers, and Microprocessors one or a few chips • Microcontroller – A single-chip microcomputer • Microprocessor – The processor and control unit part of the single-chip computer(=microcontroller) is called microprocessor. There is no single and clear definition of these terms.
  • 3. 1/15/2010 3 Why do we study Microcomputers? • Embedded systems use microcontrollers or microcomputers. Some interesting statistics (from a fe ears ago)• Some interesting statistics (from a few years ago) – An average American interacts with 300 or more embedded systems every day. – 95% of all microprocessor will be sold each year for embedded systems. – IEEE estimated that over 700,000 people worldwide were employed writing code for embedded system in 2007. Basic Architecture • There are many other architectures in use. They will be discussed in a computer architecture course. Princeton and Harvard What are ….? • Here, we will cover two major architecture of microcomputers. – Princeton and Harvard architecture – The main difference is the memory structure • Princeton Architecture* – Known as Von Neumann architecture – Single memory contains both the program code and the dataSingle memory contains both the program code and the data. • Harvard Architecture – Two separate memories. One contains only data while the other is containing only program code.
  • 4. 1/15/2010 4 Princeton Architecture • No separate memory space for program code and data Known as Von Neumann Memory Data/Instructions Address/Control D t Input Microprocessor Processor (ALU) Control Unit Input / Output Clock Status/Control Data Output Harvard Architecture • Two separate memory units • The length of an instruction could be different from the data size OK.. I see. One clear distinction of these two is whether two separate memory units exist or not. • Both data and a program instruction can be read at the same time Data Memory Instructions D t Input Microprocessor Code Memory Data Address /Control Processor (ALU) Control Unit Input / Output Clock Status/Control Data Output
  • 5. 1/15/2010 5 Major components • Also called an arithmetic logic unit (ALU). Operations s ch as addition s btraction bit ise AND and 1. Processor • Operations such as addition, subtraction, bit-wise AND and OR, shift operations. • The processor has registers (groups of D flip-flops used to store binary values). • Many microcontrollers perform operations on data that is located in a register. This requires the microcontroller to load h d f hthe data from memory into a register in the processor, manipulate the data, then store the new value back to memory. • The processor also generates signals that indicates when values are negative, zero, or when arithmetic overflow occurs. Major components • A synchronous sequential machine that coordinates the flow of data between the other units and operations of the other bl k 2. Control Unit blocks. • The sequence of states and control output of the unit depend on the inputs: the current program instruction, the status outputs of the other blocks, and the input/output block. • Generally speaking, central processing unit (CPU) refers to not only the processor but also the control unit.
  • 6. 1/15/2010 6 A Quick Introduction of HCS12 Microcontroller • The Motorola 68HC12 was introduced in 1996 as an upgrade for the 68HC11. HCS12 (=68HC12 or 9S12) family microprocessor • Features – 16-bit CPU – Standard 64-KB address space support – Multiplexed (address and data) external bus. – 0 to 4 KB of on-chip EEPROM – 2 KB to 14 KB of on-chip SRAM 10 bit A/D t– 10-bit A/D converter – 16 KB to 512 KB of on-chip flash memory (or ROM) – Etc. etc. etc. Major components • Memory is the place where program code and data are stored. A seq ence of directl addressable ‘locations ’ 3. Memory • A sequence of directly addressable ‘locations.’ • Therefore, the number of addresses available in a memory is limited by the number of bits used to represent the address. • If 16 bits are used for the address, there are 65,536 (=216) different addresses available.
  • 7. 1/15/2010 7 Major components • A memory location is referred to as an information unit which has two components: its address and its contents. 3. Memory - continued • The content indicated by an address can be interpreted by the microprocessor as one of t o things CPU Memory Address bus lines Data bus lines microprocessor as one of two things. – Instruction code are used as inputs into the control unit and determine how it operates. A group of instruction is called a program. – Data are the numbers to be processed or the results of operations in the processor. Major components • A periodic signal for the sequential machine in the control unit. 4. Clock • Also used by other blocks to synchronize operations
  • 8. 1/15/2010 8 Major components • The Input/Output (I/O for short.) block represents the interface between the internals of the microcomputer and the d ld 5. Input/Output outside world. • Keyboard, LED and LCD display, printers for example. Instruction Codes • Instruction codes consist of Operation Code and Operand Operation Code (Op Code for short)• Operation Code (Op Code for short) – This tells the microcomputer what action to perform and how to interpret the operand. All instructions must have an op code. • Operand – The operand contains the data that microcontroller will perform the action on. – Some operands include several numbers for op codes that specify more complex actions. – Some operation codes that perform simple tasks do not need to have operands.
  • 9. 1/15/2010 9 Instruction Length • Fixed length – Each instruction is the same number of bits as all others. Fixed and Variable-length • Variable length* – The length of each instruction may be different. Op Code 1 Operand Op Code 2 Operand Op Code 3 Operand Op Code 1 Operand Op Code 3 Operand Op Code 2 Operand Questions?
  • 10. 1/15/2010 10 Wrap-up • The definitions of microcomputers, microcontroller, and microprocessor What we’ve learned • The importance of microcomputers in the real world • Princeton* and Harvard architectures • Processor, control unit, memory, clock, and I/O are the major components of microcomputers. Now.. I get the clear picture what the microcomputers are. And I feel like that this is going to be really fun. What to Come • Review number systems Introd ction to the HCS12/9S12• Introduction to the HCS12/9S12