STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

The Fetch – Execute Cycle
Central Processing Unit
CS364 CH16 Control Unit Operation
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
6. The CPU and Memory Chapt. 7.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Computer Architecture Lecture 9 by Engineer A. Lecturer Aymen Hasan AlAwady 10/2/2014 University of Kufa - Information Technology Research and Development.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Fetch-execute cycle.
 Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
Control Unit Operations Chapter10:. What is Control Unit (CU)?(1)  Part of a CPU or other device that directs its operation.  Tells the rest of the.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Microprocessors 3 Buses, Addresses and Machine Cycles 1 Modified April 2011 ©Paul R. Godin prgodin gmail.com.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
CPU Lesson 2.
Unit Microprocessor.
8085 Microprocessor Architecture
Basic Computer Organization and Design
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
Basic Processor Structure/design
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Gunjeet Kaur Dronacharya Group of institutions
CHAPTER 4 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Lecture on Microcomputer
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture
William Stallings Computer Organization and Architecture 7th Edition
Dr. Michael Nasief Lecture 2
collected by C.Gokul AP/EEE,VCET
8085 Microprocessor Architecture
Buses.
Chapter 15 Control Unit Operation
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
Interfacing Memory Interfacing.
Number Representations and Basic Processor Architecture
Instruction cycle Instruction: A command given to the microprocessor to perform an operation Program : A set of instructions given in a sequential.
Computer Organization and ASSEMBLY LANGUAGE
Parallel communication interface 8255
Morgan Kaufmann Publishers Computer Organization and Assembly Language
ECEG-3202 Computer Architecture and Organization
William Stallings Computer Organization and Architecture 7th Edition
8085 Microprocessor Architecture
Chapter 14 Control Unit Operation
Fundamental Concepts Processor fetches one instruction at a time and perform the operation specified. Instructions are fetched from successive memory locations.
Chapter 4 Introduction to Computer Organization
8085 Microprocessor Architecture
A Top-Level View Of Computer Function And Interconnection
Computer Architecture Assembly Language
Computer Architecture
Computer Architecture
Presentation transcript:

STUDY OF PIC MICROCONTROLLERS.

Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming

BUS Structure  Bus is a group of lines carrying digital Information  Bus width indicates number of bit lines  Two Types of Buses in any Processor: Data Bus (eg: 8 bit processor has 8 bit data bus. Eg: PIC) Data Bus (eg: 8 bit processor has 8 bit data bus. Eg: PIC) Address Bus (Defines the memory size) Address Bus (Defines the memory size) I/O Device Processor Memory Bidirectional Data Bus Unidirectional Address Bus Control Signals Basic Micro Computer Bus is driven by buffers from different devices, processor &memory. Ques: How to arbitrate between different devices that want to access the bus at the same time?

TRISTATE BUFFERS TRISTATE BUFFERS Regular BUFFERS INTRODUCTION TO MEMORIES

Output Buffer Memory Addressing and Access Input Buffer Register 0 Register 3 Register 2 Memory Address Decoder Processor A0A WR RD 1)Register addresses : 00,01, 10, 11 2)Active Low Wr and Read enable signal comes from control unit 3) Additional chip select also provided if more than one set of memory registers available Questions: For a memory of 1 K byte and word size of 8 bits 1)What is the width of MAR 2)How many address lines come out of the decoder 3)What is the register width 4)What is the input/output data width ??? 5)What is the size of processor address bus 6)What is the size of the processor data bus Data Bus Register 1 Memory Address Register [MAR]

DATA Transfer Unit Main Memory location

DATA Transfer Unit Main Memory location along with MAR and Decoder

DATA Transfer Unit Memory with Working Register WW : work register write (Data bus to register) WR: Work register read (reg to bus) WCLK: clock

DATA Transfer Unit

ENHANCED DTU (With Program Counter) Program memory is separate from data memory OPCODE= instruction codes.

ENHANCED DTU (With Addition of Control and timing)

Status of control lines S. No. RAWEREWEIEOWEWWWRActivity Transfer data from input port to working register Write address into RAM address register (get ready to select an address location in the register file) Transfer data from working register into the selected RAM location Transfer data from working register to the output port Transfer data from selected RAM location into the working register Transfer data from selected RAM location into the output port Transfer data from input port to working register

SYSTEM CLOCK and PIPELINING Instruction execution takes place in 2 stages, each stage needs 4 clock cycles. Instruction Fetch and Instruction Decode Fetch: clock1: Increment PC (PC <= PC+1) (phase 1) clock 2,3: idle. Clock 4: Instruction loaded in to IR Decode: clock 1 : Instruction decode clock 2 : Fetch data from register or port clock 3 :Operations carried out with data Clock 4 :Results loaded back to destination FETCH AND DECODE ARE INDEPENDENT. HENCE THEY CAN BE DONE IN PARALLEL. THIS IS CALLED PIPELINING. This is a 2 stage pipelining concept.

Instruction Cycle Pipelining