SlideShare a Scribd company logo
PRE-REQUISITE
Basic revision on Microcomputers
By
Smita V More
Revision of Microcomputer System
Terminologies
• Binary Digit (BIT): basic unit of digital storage, a 0 or 1
• Nibble: 4 bits, ½ byte, 1 hex digit
• Byte: grouping of 8 bits handled as a single unit, has 28 = 256 possible values
• Central Processing Unit (CPU): the “brains” of a computer
• Memory (RAM/ROM): digital circuitry used to store programs and data
• Input/Output (I/O): generic term describing how information enters and exits a computer
• Bus: multi-bit communication channel used within a computer system
• Microprocessor (MPU or uP): complex logic I.C. that contains registers, counters & decoders and performs arithmetic, logic & control operations,
a CPU on a single LSI chip
• Microcomputer (uC): a fully functional system including a MPU, memory, I/O and a clock
• Microcontroller (MCU): a microcomputer on a single chip
• Operations (op codes): the set of basic operations that a computer can be instructed to perform, encoded in binary
• Operand: the data operated on by a particular operation • Instruction: combination of an op code and its operand
• Program: group of instructions that allows a computer to perform a specific job
• Programmer: a person who writes programs II. Computer Architecture Basics What is a computer? CPU + Memory + I/O interconnected by buses
and driven by a clock system
High level, Machine level and Assembly Level
programming Language
Machine level
• MACHINE LANGUAGES: Imagine them as the “native tongue” of the
computer, the language closest to the hardware itself.
• Each unique computer has a unique machine language.
• A machine language program is made up of a series of binary
patterns (e.g., 01011100) which represent simple operations that can
be accomplished by the computer (e.g., add two operands, move data
to a memory location).
• Machine language programs are executable, meaning that they can
be run directly. Programming in machine language requires
memorization of the binary codes and can be difficult for the human
programmer.
Example:- Machine Level
Machine
Instruction
Machine Operation
00000000 Stop Program
00000001 Turn bulb fully on
00000010 Turn bulb fully off
00000100 Dim bulb by 10%
00001000 Brighten bulb by 10%
00010000
If bulb is fully on, skip over next
instruction
00100000
If bulb is fully off, skip over next
instruction
01000000 Go to start of program (address 0)
ASSEMBLY LANGUAGES
• ASSEMBLY LANGUAGES: They represent an effort to make
programming easier for the human.
• The machine language instructions are replaced with simple
pneumonic abbreviations (e.g., ADD, MOV).
• Thus assembly languages are unique to a specific computer
(machine).
• Prior to execution, an assembly language program requires
translation to machine language. This translation is accomplished by a
computer program known as an Assembler. Assemblers are written
for each unique machine language.
HIGH LEVEL LANGUAGES
• HIGH LEVEL LANGUAGES: High-level languages, like C,C++, JAVA etc., are more English-like and,
therefore, make it easier for programmers to “think” in the programming language.
• High-level languages also require translation to machine language before execution.
• This translation is accomplished by either a compiler or an interpreter. Compilers translate the
entire source code program before execution.(Eg: C++, Java)
Interpreters translate source code programs one line at a time. (Eg: Python)Interpreters are more
interactive than compilers.
Difference between MicroProcessor &
MicroController
Difference between MicroProcessor &
MicroController
Microprocessor Microcontroller
System It is the heart of the computer system. It is the heart of an embedded system.
Contains
It contains CPU, general purpose registers, stack pointers, program
counters, clock timing and interrupt circuits.
It contains the circuitry of microprocessor and has built-in ROM, RAM,
I/O devices, timers and counters.
Data memory It has many instructions to move data between memory and CPU.
It has one or two instructions to move data between memory and
CPU.
Circuit It is large. It is small.
Cost Cost of the entire system increases. Cost of the entire system is low.
Bit instructions It has one or two bit handling instructions. It has many bit handling instructions.
Register numbers
It has less number of registers; hence the operations are memory
based.
It has more number of registers; hence the programs are easier to
write.
Storage
It is based on Von Neumann architecture, where the program and data
are stored in the same memory module.
It is based on the Harvard architecture, where the program memory
and data memory are stored in separate module.
Time Access time for memory and I/O devices is more. Less access time for built-in memory and I/O devices.
Hardware It requires more hardware. It requires less hardware.

More Related Content

What's hot

Basics of microprocessor
Basics of microprocessorBasics of microprocessor
Basics of microprocessor
Sunipa Bera
 
Computer architecture
Computer architectureComputer architecture
Computer architectureMrsNunn
 
basic structure of computers
basic structure of computersbasic structure of computers
basic structure of computersHimanshu Chawla
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architecture
Shishir Aryal
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE Himanshu Sharma
 
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organizationBadrinath Kadam
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
Zuhaib Zaroon
 
Computer architecture
Computer architecture Computer architecture
Computer architecture
International Islamic University
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
Ashhad Kamal
 
Int 2 computer structure 2010
Int 2 computer structure 2010Int 2 computer structure 2010
Int 2 computer structure 2010iarthur
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
AmrutaMehata
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitKumar
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computersKumar
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
Rishabha Garg
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
 
Computer Structure Slides
Computer Structure SlidesComputer Structure Slides
Computer Structure Slidesiarthur
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
jeetesh036
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecture
ktosri
 

What's hot (20)

Basics of microprocessor
Basics of microprocessorBasics of microprocessor
Basics of microprocessor
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
basic structure of computers
basic structure of computersbasic structure of computers
basic structure of computers
 
Von-Neumann machine and IAS architecture
Von-Neumann machine and  IAS architectureVon-Neumann machine and  IAS architecture
Von-Neumann machine and IAS architecture
 
BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE BASIC COMPUTER ARCHITECTURE
BASIC COMPUTER ARCHITECTURE
 
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organization
 
Ntroduction to computer architecture and organization
Ntroduction to computer architecture and organizationNtroduction to computer architecture and organization
Ntroduction to computer architecture and organization
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer architecture
Computer architecture Computer architecture
Computer architecture
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Int 2 computer structure 2010
Int 2 computer structure 2010Int 2 computer structure 2010
Int 2 computer structure 2010
 
Computer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and MicrocontrollerComputer Organization: Introduction to Microprocessor and Microcontroller
Computer Organization: Introduction to Microprocessor and Microcontroller
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Basic structure of computers
Basic structure of computersBasic structure of computers
Basic structure of computers
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
 
Computer Structure Slides
Computer Structure SlidesComputer Structure Slides
Computer Structure Slides
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
CS4109 Computer System Architecture
CS4109 Computer System ArchitectureCS4109 Computer System Architecture
CS4109 Computer System Architecture
 

Similar to Pre requisite of COA- for Micro controller Embedded systems

Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
JLoknathDora
 
Introduction to Embedded System
Introduction to Embedded SystemIntroduction to Embedded System
Introduction to Embedded System
Zakaria Gomaa
 
An Introduction To Python - Understanding Computers
An Introduction To Python - Understanding ComputersAn Introduction To Python - Understanding Computers
An Introduction To Python - Understanding Computers
Blue Elephant Consulting
 
Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
ssuserb78e291
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
sonykhan3
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
Mohamed Al-Emam, PMP®, CAP®
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
SaifulAhmad27
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
deval patel
 
Hardware and software of computer
Hardware and software of computerHardware and software of computer
Hardware and software of computer
Surath Khadka
 
Microprocessors Assignment
Microprocessors AssignmentMicroprocessors Assignment
Microprocessors Assignment
RAHUL957367
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan
 
CS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdfCS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdf
Asst.prof M.Gokilavani
 
SPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming languageSPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming language
Mohammad Imam Hossain
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
oudesign
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
DevaKumari Vijay
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systems
Muhammad Waqas
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer systemdofirfauzi1302
 
An introduction to digital signal processors 1
An introduction to digital signal processors 1An introduction to digital signal processors 1
An introduction to digital signal processors 1
Hossam Hassan
 

Similar to Pre requisite of COA- for Micro controller Embedded systems (20)

Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
 
Introduction to Embedded System
Introduction to Embedded SystemIntroduction to Embedded System
Introduction to Embedded System
 
An Introduction To Python - Understanding Computers
An Introduction To Python - Understanding ComputersAn Introduction To Python - Understanding Computers
An Introduction To Python - Understanding Computers
 
Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
 
Introduction to Computer System
Introduction to Computer System Introduction to Computer System
Introduction to Computer System
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Hardware and software of computer
Hardware and software of computerHardware and software of computer
Hardware and software of computer
 
Microprocessors Assignment
Microprocessors AssignmentMicroprocessors Assignment
Microprocessors Assignment
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
CS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdfCS304PC:Computer Organization and Architecture UNIT I.pdf
CS304PC:Computer Organization and Architecture UNIT I.pdf
 
SPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming languageSPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming language
 
CST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic DesignCST 20363 Session 4 Computer Logic Design
CST 20363 Session 4 Computer Logic Design
 
Week 01.pdf
Week 01.pdfWeek 01.pdf
Week 01.pdf
 
Unit 1 computer architecture (1)
Unit 1   computer architecture (1)Unit 1   computer architecture (1)
Unit 1 computer architecture (1)
 
Chapter1 introduction to computer systems
Chapter1 introduction to computer systemsChapter1 introduction to computer systems
Chapter1 introduction to computer systems
 
Intro. to computer system
Intro. to computer systemIntro. to computer system
Intro. to computer system
 
An introduction to digital signal processors 1
An introduction to digital signal processors 1An introduction to digital signal processors 1
An introduction to digital signal processors 1
 

Recently uploaded

Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 

Recently uploaded (20)

Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 

Pre requisite of COA- for Micro controller Embedded systems

  • 1. PRE-REQUISITE Basic revision on Microcomputers By Smita V More
  • 2. Revision of Microcomputer System Terminologies • Binary Digit (BIT): basic unit of digital storage, a 0 or 1 • Nibble: 4 bits, ½ byte, 1 hex digit • Byte: grouping of 8 bits handled as a single unit, has 28 = 256 possible values • Central Processing Unit (CPU): the “brains” of a computer • Memory (RAM/ROM): digital circuitry used to store programs and data • Input/Output (I/O): generic term describing how information enters and exits a computer • Bus: multi-bit communication channel used within a computer system • Microprocessor (MPU or uP): complex logic I.C. that contains registers, counters & decoders and performs arithmetic, logic & control operations, a CPU on a single LSI chip • Microcomputer (uC): a fully functional system including a MPU, memory, I/O and a clock • Microcontroller (MCU): a microcomputer on a single chip • Operations (op codes): the set of basic operations that a computer can be instructed to perform, encoded in binary • Operand: the data operated on by a particular operation • Instruction: combination of an op code and its operand • Program: group of instructions that allows a computer to perform a specific job • Programmer: a person who writes programs II. Computer Architecture Basics What is a computer? CPU + Memory + I/O interconnected by buses and driven by a clock system
  • 3. High level, Machine level and Assembly Level programming Language
  • 4. Machine level • MACHINE LANGUAGES: Imagine them as the “native tongue” of the computer, the language closest to the hardware itself. • Each unique computer has a unique machine language. • A machine language program is made up of a series of binary patterns (e.g., 01011100) which represent simple operations that can be accomplished by the computer (e.g., add two operands, move data to a memory location). • Machine language programs are executable, meaning that they can be run directly. Programming in machine language requires memorization of the binary codes and can be difficult for the human programmer.
  • 5. Example:- Machine Level Machine Instruction Machine Operation 00000000 Stop Program 00000001 Turn bulb fully on 00000010 Turn bulb fully off 00000100 Dim bulb by 10% 00001000 Brighten bulb by 10% 00010000 If bulb is fully on, skip over next instruction 00100000 If bulb is fully off, skip over next instruction 01000000 Go to start of program (address 0)
  • 6. ASSEMBLY LANGUAGES • ASSEMBLY LANGUAGES: They represent an effort to make programming easier for the human. • The machine language instructions are replaced with simple pneumonic abbreviations (e.g., ADD, MOV). • Thus assembly languages are unique to a specific computer (machine). • Prior to execution, an assembly language program requires translation to machine language. This translation is accomplished by a computer program known as an Assembler. Assemblers are written for each unique machine language.
  • 7. HIGH LEVEL LANGUAGES • HIGH LEVEL LANGUAGES: High-level languages, like C,C++, JAVA etc., are more English-like and, therefore, make it easier for programmers to “think” in the programming language. • High-level languages also require translation to machine language before execution. • This translation is accomplished by either a compiler or an interpreter. Compilers translate the entire source code program before execution.(Eg: C++, Java) Interpreters translate source code programs one line at a time. (Eg: Python)Interpreters are more interactive than compilers.
  • 9. Difference between MicroProcessor & MicroController Microprocessor Microcontroller System It is the heart of the computer system. It is the heart of an embedded system. Contains It contains CPU, general purpose registers, stack pointers, program counters, clock timing and interrupt circuits. It contains the circuitry of microprocessor and has built-in ROM, RAM, I/O devices, timers and counters. Data memory It has many instructions to move data between memory and CPU. It has one or two instructions to move data between memory and CPU. Circuit It is large. It is small. Cost Cost of the entire system increases. Cost of the entire system is low. Bit instructions It has one or two bit handling instructions. It has many bit handling instructions. Register numbers It has less number of registers; hence the operations are memory based. It has more number of registers; hence the programs are easier to write. Storage It is based on Von Neumann architecture, where the program and data are stored in the same memory module. It is based on the Harvard architecture, where the program memory and data memory are stored in separate module. Time Access time for memory and I/O devices is more. Less access time for built-in memory and I/O devices. Hardware It requires more hardware. It requires less hardware.