1 / 15

STUDY OF PIC MICROCONTROLLERS.

STUDY OF PIC MICROCONTROLLERS. Design Flow. C CODE. Compiler. Assembly Code. Assembler. Hex File. Chip Programming. I/O Device. Unidirectional Address Bus. Bidirectional Data Bus. Processor. Control Signals. Memory. Basic Micro Computer. BUS Structure.

barr
Télécharger la présentation

STUDY OF PIC MICROCONTROLLERS.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. STUDY OF PIC MICROCONTROLLERS.

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

  3. I/O Device Unidirectional Address Bus Bidirectional Data Bus Processor Control Signals Memory Basic Micro Computer 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) • Address Bus (Defines the memory size) 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?

  4. TRISTATE BUFFERS Regular BUFFERS INTRODUCTION TO MEMORIES

  5. Memory Addressing and Access 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 Data Bus Processor Input Buffer WR A1 A0 00 Register 0 01 Memory Address Decoder Memory Address Register [MAR] Register 1 10 Register 2 10 Register 3 Output Buffer • Questions: • For a memory of 1 K byte and word size of 8 bits • What is the width of MAR • How many address lines come out of the decoder • What is the register width • What is the input/output data width ??? • What is the size of processor address bus • What is the size of the processor data bus RD

  6. DATA Transfer Unit Main Memory location

  7. DATA Transfer Unit Main Memory location along with MAR and Decoder

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

  9. DATA Transfer Unit

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

  11. ENHANCED DTU (With Addition of Control and timing)

  12. 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.

  13. Instruction Cycle Pipelining

  14. Instruction Cycle Pipelining

More Related