Microprocessors & microcontrollers Mehdi Dehghani.

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
ECP2036 Microprocessor and Interfacing
Chapter 1 The 8051 Microcontroller
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
 CPU: Central Processing Unit  I/O: Input /Output  Bus: Address bus & Data bus  Memory: RAM & ROM  Timer  Interrupt  Serial Port  Parallel Port.
LS R First Design Key board. A B Second Design A B C D CD B Key board Third Design.
1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Computer Organization Prepared by:Anh Q. Vu Course:CS-147 Professor:Sin-Min Lee Date:Summer
Chapter 5 Internal Memory
IT Systems Memory EN230-1 Justin Champion C208 –
Micro-controller or embedded controller
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
The 8051 Microcontroller Architecture
Microcontroller 8051.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Introduction to Microcontrollers Dr. Konstantinos Tatas
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
2. Memory. Main memory – speed & types Organization of RAM RAM – Random Access Mem Static RAM [SRAM] - In SRAM, a bit of data is stored using the state.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Memory Hierarchy.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Memory and I/O Interfacing
Memory Hierarchy Registers Cache Main Memory Fixed Disk (virtual memory) Tape Floppy Zip CD-ROM CD-RWR Cost/Bit Access/Speed Capacity.
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
COMP3221: Microprocessors and Embedded Systems
TEJ3M Teacher: Ms. Luce Name: Alex H. Date: February 18th 2010
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Computer Architecture CST 250 MEMORY ARCHITECTURE Prepared by:Omar Hirzallah.
1 Memory Hierarchy The main memory occupies a central position by being able to communicate directly with the CPU and with auxiliary memory devices through.
CIM101 : Introduction to computer Lecture 3 Memory.
Chapter 6: Internal Memory Computer Architecture Chapter 6 : Internal Memory Memory Processor Input/Output.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Organization & Assembly Language © by DR. M. Amer.
Memory Hierarchy Registers Cache Main Memory Fixed Disk (virtual memory) Tape Floppy Zip CD-ROM CD-RWR Cost/Bit Access/Speed Capacity.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
 Historical view:  1940’s-Vacuum tubes  1947-Transistors invented by willliam shockely & team  1959-Integrated chips invented by Texas Instrument.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
MEMORY ORGANIZATION - Memory hierarchy - Main memory - Auxiliary memory - Cache memory.
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
Presented by Sadhish Prabhu
Computer operation is of how the different parts of a computer system work together to perform a task.
1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.
8085 FAQ R.RAJKUMAR DEPT OF CSE SRM UNIVERSITY. FAQ What is a Microprocessor? - Microprocessor is a program-controlled device, which fetches the instructions.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
THE PPT OF THE FINAL YEAR PROJECT OF B-TECH ECE (4-TH YEAR) UNDER THE GUIDANCE OF SWARASATI SAHA,LECTURER OF DEPARTMENT OF ECE IS SUBMITTED BY- ARIJIT.
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
Chapter 2 content Basic organization of computer What is motherboard
Internal Memory.
Microcontroller Based Digital Code Lock
Module IV Memory Organization.
The Central Processing Unit
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Microcomputer Architecture
Introduction to Microprocessors and Microcontrollers
Subject Name: Embedded system Design Subject Code: 10EC74
Module IV Memory Organization.
Computer Memory BY- Dinesh Lohiya.
Introduction to Computing Chapter 0
MICROPROCESSOR MEMORY ORGANIZATION
Presentation transcript:

Microprocessors & microcontrollers Mehdi Dehghani

Topics What is a Computer? Some Kinds of memory Memory addressing Microprocessors Microcontroller Microcontroller Vs Microprocessors What is AVR ? Why we study AVR? AVR; Pins & Ports Programming and Programmer Programming environment Programming languages

Topics Writing the simple program and execute it. Adding the button What's debouncing? How could it solved Timer & counters in AVR About interrupts Power supplies Introduction to LCD Writing programs and passing strings to LCD Display numeric in LCD Introduction to ads Programming ads using interrupts Introduction to PWM

4 What is a Computer? Central Processing Unit (CPU) – Executes the programs Primary Memory – Stores programs and data Input / Output Devices – Allow CPU to communicate with external hardware System Bus – Connects everything together – Address, Data, Control signals

5

6 Processor dx /Pentium (Pro) Data Bus Address Bus Max Addressable Memory 1,048,576 (1Mb) 16,777,21(16Mb) 4,294,976,296 (4Gb)

7 Intel

8

9 Data Bus Address Bus Control Bus Processor Memory I/O ( BUS CPU ) Address Bus provides a memory address to system memory and I/O address to system I/O devices Data Bus transfers data between the microprocessor and the memory and I/O attached to the system Control Bus provides control signals that cause memory or I/O devices to perform a read or write operation

10 CPU General- Purpose Micro- processor RAMROM I/O Port Timer Serial COM Port Data Bus Address Bus General-purpose microprocessor: CPU for Computers Commonly no RAM, ROM, I/O on CPU chip itself Many chips on motherboard

ACOE343 - Real-Time Embedded Processor Systems - Frederick University 11 Components of a microprocessor/controller CPU: Central Processing Unit I/O: Input /Output Bus: Address bus & Data bus Memory: RAM & ROM Timer Interrupt Serial Port Parallel Port

ACOE343 - Real-Time Embedded Processor Systems - Frederick University 12 RAM ROM I/O Port Timer Serial COM Port Microcontroller CPU A single-chip computer On-chip RAM, ROM, I/O ports... Example : Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X A single chip Microcontroller :

Microprocessor vs. Microcontroller Microprocessor CPU is stand-alone, RAM, ROM, I/O, timer are separate designer can decide on the amount of ROM, RAM and I/O ports. More power versatility general-purpose Microcontroller CPU, RAM, ROM, I/O and timer are all on a single chip fix amount of on-chip ROM, RAM, I/O ports for applications in which cost, power and space are critical Less applications

14 Data Type Numbers – bit (e.g., 1) ; nibble = 4 bits – DB: byte = octet = 8 bits – DW: Word = 2 bytes = 16 bits – DD: DoubleWord = 4 bytes = 32 bits

15 Memory Data Types Text – Letters and characters (7-bit ASCII standard), e.g., 'A'=65=0x41 – Extended ASCII (8-bit) allows for extra 128 graphics/symbols) – Collection of characters = Strings – Collection of Strings = Documents Data Type

16 Data Type

17 Computer System Disk Memory-I/O bus Processor Cache Memory I/O controller I/O controller I/O controller I/O controller I/O controller I/O controller Display Network Reg

18

19

20 Speed & cost

21 Mask ROM

22 What is the difference between flash memory and EEPROM? Best Answer EEPROM is an older, more reliable technology. It is somewhat slower than Flash. Flash and EEPROM are very similar, but there is a subtle difference. Flash and EEPROM both use quantum cells to trap electrons. Each cell represents one bit of data. The presence - or absence - of electrons in a cell indicates whether the bit is a 1 or 0. The cells have a finite life - every time a cell is erased, it wears out a little bit. In EEPROM, cells are erased one-by-one. The only cells erased are those which are 1 but need to be zero. (Writing a 1 to a cell that's 0 causes very little wear, IIRC) In Flash, a large block is erased all at once. In some devices, this "block" is the entire device. So in Flash, cells are erased whether they need it or not. This cuts down on the lifespan of the device, but is much, much faster than the EEPROM method of going cell-by-cell. (flash Vs EEPROM )

23 RAM

24 Semiconductor Memory Types RAM: the stored data is volatile – DRAM A capacitor to store data, and a transistor to access the capacitor Need refresh operation Low cost, and high density  it is used for main memory – SRAM Consists of a latch Don ’ t need the refresh operation High speed and low power consumption  it is mainly used for cache memory and memory in hand-held devices RAM

25 Static RAM (SRAM) Fast – ~4 nsec access time Persistent – as long as power is supplied – no refresh required Expensive – ~$100/MByte – 6 transistors/bit Stable – High immunity to noise and environmental disturbances Technology for caches SRAM

26 Dynamic RAM (DRAM) Slower than SRAM – access time ~60 nsec Nonpersistant – every row must be accessed every ~1 ms (refreshed) Cheaper than SRAM – ~$1.50 / MByte – 1 transistor/bit Fragile – electrical noise, light, radiation Workhorse memory technology DRAM

27 Memory Address Pins

28 memory & data size

29 بانک های حافظه در میکرو پروسسور های 16 بیتی

30 بانک های حافظه در میکرو پروسسور های 32 بیتی یک CPU با داشتن 16 خط آدرس چه تعداد خانه حافظه و چه تعداد I/O را آدرس دهی میکند؟

31 بانک های حافظه در میکرو پروسسور های 32 بیتی سوال امتحان : یک CPU با داشتن 16 خط آدرس چه تعداد خانه حافظه را آدرس دهی میکند؟ 2 16 = 2 6 X 2 10 = 64 X 1K = 64K سوال امتحان : یک CPU 8 خط دیتا دارد این CPU چند بیتی است؟ 8 بیتی

32 If a memory chip has 13 address pins (A0..A12), then it has: 2 13 = 2 3 X 2 10 = 8 X 1K = 8K If a memory chip has 4K locations, then it should have N pins: 4K = 4 X 1K = 2 2 X 2 10 = 2 12  N=12 address pins (A0..A11) Memory Decoder

33 Memory Decoder

34 Memory Decoder ( Decoder 3 TO 8 )

35 Memory Decoder ( * Decoder 2 TO 4 )

36 Memory Decoder سوال امتحان : یک عدد EPROM - 4 K را در آدرس 1000 – 1FFF به CPU وصل وصل کنید