32-Bit RISC Series SH-4, ST40 System Architecture, Volume 1: System

Total Page:16

File Type:pdf, Size:1020Kb

32-Bit RISC Series SH-4, ST40 System Architecture, Volume 1: System UM0339 User manual SuperH™ (SH) 32-bit RISC series SH-4, ST40 system architecture, volume 1: system This manual describes the ST40 family system architecture. It is split into four volumes: ST40 System Architecture - Volume 1 System - ADCS 7153464. ST40 System Architecture - Volume 2 Bus Interfaces - ADCS 7181720. ST40 System Architecture - Volume 3 Video Devices - ADCS 7225754. ST40 System Architecture - Volume 4 I/O Devices - ADCS 7225754. July 2007 Rev 2 1/426 www.st.com PRELIMINARY DATA Contents Preface xxi Document identification and control xxi ST40 documentation suite xxi ST40 Micro Toolset User’s Guide xxi OS21 User’s Manual xxii OS21 for ST40 User Manual xxii 32-Bit RISC Series, SH-4 CPU Core Architecture xxii 32-Bit RISC Series, SH-4, ST40 System Architecture xxii Conventions used in this guide xxiii General notation xxiii Hardware notation xxiii Software notation xxiii 1Overview 1 1.1 ST40 features 1 1.2 Block diagram 2 1.2.1 CPU 3 1.2.2 FPU/MAC 3 1.2.3 MMU 4 1.2.4 Cache 4 1.2.5 Interrupt 5 1.2.6 DMA controller 5 STMicroelectronics ADCS 7153464G SH-4, ST40 System Architecture, Volume 1: System PRELIMINARY DATA vi 1.2.7 Debugging and emulation 5 1.2.8 Power management 6 1.2.9 Timers 6 1.2.10 Real-time clock 6 1.2.11 Serial communication 6 1.2.12 External memory support 6 2 System organization 7 2.1 The SuperHyway 7 2.1.1 SuperHyway architecture 7 2.1.2 Packets 9 2.1.3 Transactions 10 Request Response A complete transaction 2.1.4 SuperHyway packet-router 13 2.2 Physical address map 13 3 Interrupt controller (INTC) 15 3.1 Overview 15 3.1.1 INTC features 15 3.1.2 Block diagram 16 3.1.3 Pin configuration 17 3.1.4 Register configuration 17 3.2 Interrupt sources 19 3.2.1 NMI interrupts 19 3.2.2 IRL interrupts 20 3.2.3 On-chip peripheral module interrupts 22 3.2.4 Interrupt exception handling and priority 23 3.3 INTC registers 26 3.3.1 Interrupt priority registers A to D (IPRA to IPRD) 26 3.3.2 Interrupt control register (ICR) 27 STMicroelectronics SH-4, ST40 System Architecture, Volume 1: System ADCS 7153464G PRELIMINARY DATA vii Bit 15: NMI input level (NMIL) Bit 14: NMI interrupt mask (MAI) Bit 9: NMI block mode (NMIB) Bit 8: NMI edge select (NMIE) Bit 7: IRL pin mode Bits 13 to 10 and 6 to 0: reserved 3.3.3 Interrupt priority registers (INTPRI00, INTPRI04, INTPRI08) 30 3.3.4 Interrupt request registers (INTREQ00, INTREQ04, INTREQ08) 32 3.3.5 Interrupt mask registers (INTMSK00, INTMSK04, INTMSK08) 34 3.3.6 Interrupt mask clear registers (INTMSKCLR00, INTMSKCLR04, INTMSKCLR08) 36 3.3.7 INTC2 mode register (INTC2MODE) 38 3.4 INTC operation 40 3.4.1 Interrupt sequence 40 3.4.2 Multiple interrupts 42 4 GPDMA controller (DMAC) 43 4.1 Features 43 4.2 Address map 45 4.2.1 Channel 0: multiplexed DMA channel 47 4.2.2 Channels 1 to 4: linked list DMA channel 49 4.3 Peripheral allocation 50 4.4 DMA operation 51 4.4.1 DMA transfer procedure 51 Stall Error Disable Completion 4.4.2 DMA transfer units 53 4.4.3 DMA timing model 53 Free-running Triggered STMicroelectronics ADCS 7153464G SH-4, ST40 System Architecture, Volume 1: System PRELIMINARY DATA viii Paced 4.4.4 DMA requests 54 4.4.5 DMA data organization 55 Single location/0D Incrementing/1D Rectangular array/2D 4.4.6 Endianness 57 4.4.7 DMA channel arbitration 57 4.4.8 Extension to basic DMA operations 57 Single linked list Multiplexed channels 4.5 Interfaces 60 4.6 Register descriptions 61 4.6.1 Global registers 62 DMA.VCR.STATUS DMA.VCR.VERSION DMA.ENABLE DMA.DISABLE DMA.STATUS DMA.INTERRUPT DMA.ERROR DMA.DEFINED DMA.HANDSHAKE 4.6.2 Channel specific registers 71 DMA.CHAN[n].IDENTITY DMA.CHAN[n].ENABLE DMA.CHAN[n].DISABLE DMA.CHAN[n].STATUS DMA.CHAN[n].ACTION DMA.CHAN[n].POINTER DMA.CHAN[n].REQUEST DMA.CHAN[n].SUBBASE DMA.CHAN[n].SUBENABLE DMA.CHAN[n].SUBDISABLE DMA.CHAN[n].SUB_INTENB DMA.CHAN[n].SUBINT_DIS DMA.CHAN[n].SUBINT_STAT DMA.CHAN[n].SUBINT_ACT 4.6.3 Memory mapped channel registers 93 STMicroelectronics SH-4, ST40 System Architecture, Volume 1: System ADCS 7153464G PRELIMINARY DATA ix DMA.CHAN[n].CONTROL DMA.CHAN[n].COUNT DMA.CHAN[n].SAR DMA.CHAN[n].DAR DMA.CHAN[n].NEXT_PTR DMA.CHAN[n].SRC_LENGTH DMA.CHAN[n].SRC_STRIDE DMA.CHAN[n].DST_LENGTH DMA.CHAN[n].DST_STRIDE 5 Parallel input/output (PIO) 107 5.1 PIO ports 0 to 2 107 5.2 Register descriptions 109 5.2.1 Output registers 109 5.2.2 Input registers 112 5.2.3 Configuration registers 113 5.2.4 PIO input compare and compare mask registers 116 5.2.5 Pseudoregisters 118 6 Clock and power management 121 6.1 Overview 121 6.2 Address map 122 6.2.1 CPG bank 122 6.2.2 CLKGEN bank 123 6.3 Clock functionality 125 6.3.1 Internal organization 125 6.3.2 PLL1 control 127 Diagram Introduction Allowable transitions State definitions Enabling and disabling PLL1 Changing PLL1 divide ratios (clk1 to 3) Changing the PLL1 divide ratio for clock 14 Changing PLL1 lock frequency STMicroelectronics ADCS 7153464G SH-4, ST40 System Architecture, Volume 1: System PRELIMINARY DATA x PLL frequency calculation 6.3.3 Configuring PLL2 132 Introduction Procedure to enable and disable PLL2 Changing the frequency of PLL2 6.3.4 Register description 134 Frequency control register 1 (CPG.FRQCR) CLKGEN.PLL1CR1 CLKGEN.PLL1CR2 CLKGEN.PLL2CR CLOCKGEN.CLK4CR CLOCKGEN.CPGBYPASS CLKGEN.PLL2_MUXCR CLKGEN.CLK1CR CLKGEN.CLK2CR CLKGEN.CLK3CR CLKGEN.CLK_SELCR 6.4 Watchdog timer 153 6.4.1 Block diagram 153 6.4.2 Register configuration 154 6.4.3 Register descriptions 154 Watchdog timer counter (CPG.WTCNT) Watchdog timer control and status register (CPG.WTCSR) Bit 7: timer enable (TME) Bit 6: timer mode select (WT/NOT_IT) Bit 5: reset select (RSTS) Bit 4: watchdog timer overflow flag (WOVF) Bit 3: interval timer overflow flag (IOVF) Bits 2 to 0: clock select 2 to 0 (CKS2 to CKS0) Writing to CPG.WTCNT and CPG.WTCSR 6.4.4 Using the WDT 159 Standby clearing procedure Frequency changing procedure Using watchdog timer mode Using interval timer mode 6.5 Power management unit (PMU) 161 6.5.1 Types of power-down modes 162 6.5.2 Register configuration 164 STMicroelectronics SH-4, ST40 System Architecture, Volume 1: System ADCS 7153464G PRELIMINARY DATA xi 6.5.3 Pin configuration 165 6.5.4 Register descriptions 165 Standby control register (CPG.STBCR) Bit 7: standby (STBY) Bit 6: peripheral module pin high impedance control (PHZ) Bit 5: peripheral module pin pull-up control (PPU) Bit 4: unused Bit 3: module stop 3 (MSTP3) Bit 2: module stop 2 (MSTP2) Bit 1: module stop 1 (MSTP1) Bit 0: module stop 0 (MSTP0) Peripheral module pin pull-up control Standby control register 2 (CPG.STBCR2) Bit 7: unused Bit 6: status pin high-impedance control (STHZ) Bits 5 to 2: reserved Bit 1: module stop 6 (MSTP6) Bit 0: module stop 5 (MSTP5) Standby control request register (CLOCKGEN.STBREQCR) Standby control acknowledge register (CLOCKGEN.STBACKCR) 6.6 Functionality 171 6.6.1 Sleep mode 171 Transition to sleep mode Exit from sleep mode Exit by interrupt Exit by reset 6.6.2 Deep sleep mode 172 Transition to deep sleep mode Exit from deep sleep mode 6.6.3 Standby mode 172 Transition to standby mode Exit from standby mode Exit by interrupt Exit by reset 6.6.4 Clock pause function 174 6.7 Module standby function 175 STMicroelectronics ADCS 7153464G SH-4, ST40 System Architecture, Volume 1: System PRELIMINARY DATA xii 6.7.1 Transition to module standby function (CPG modules) 175 6.7.2 Transition to module standby function (CLOCKGEN modules) 176 6.7.3 Exit from module standby function (CPG modules) 176 6.7.4 Exit from module standby function (CLOCKGEN modules) 177 6.8 STATUS pin change timing 177 7Real-time clock (RTC) 179 7.1 Overview 179 7.1.1 Features 179 7.1.2 Block diagram 181 7.1.3 Pin configuration 182 7.1.4 Register configuration 182 7.1.5 Register initialization 184 7.2 Register descriptions 185 7.2.1 64 Hz counter (RTC.R64CNT) 185 7.2.2 Second counter (RTC.RSECCNT) 186 7.2.3 Minute counter (RTC.RMINCNT) 188 7.2.4 Hour counter (RTC.RHRCNT) 190 7.2.5 Day-of-week counter (RTC.RWKCNT) 192 7.2.6 Day counter (RTC.RDAYCNT) 194 7.2.7 Month counter (RTC.RMONCNT) 196 7.2.8 Year counter (RTC.RYRCNT) 198 7.2.9 Second alarm register (RTC.RSECAR) 200 7.2.10 Minute alarm register (RTC.RMINAR) 202 7.2.11 Hour alarm register (RTC.RHRAR) 204 7.2.12 Day-of-week alarm register (RTC.RWKAR) 206 7.2.13 Day alarm register (RTC.RDAYAR) 208 7.2.14 Month alarm register (RTC.RMONAR) 210 7.2.15 RTC control register 1 (RTC.RCR1) 212 7.2.16 RTC control register 2 (RTC.RCR2) 215 STMicroelectronics SH-4, ST40 System Architecture, Volume 1: System ADCS 7153464G PRELIMINARY DATA xiii 7.3 Operation 219 7.3.1 Time setting procedures 219 7.3.2 Time reading procedures 221 7.3.3 Alarm function 222 7.4 Interrupts 223 7.5 Usage notes 223 7.5.1 Register initialization 223 7.5.2 Crystal oscillator circuit 224 8 Timer unit (TMU) 227 8.1 Overview 227 8.1.1 Features 227 8.1.2 Block diagram 229 8.1.3 Pin configuration 229 8.1.4 Register configuration 230 8.2 Register descriptions 232 8.2.1 Timer output control register (TMU.TOCR) 232 8.2.2 Timer start register (TMU.TSTR) 233 8.2.3 Timer constant registers (TMU.TCOR) 234 8.2.4 Timer counters (TMU.TCNT) 235 8.2.5 Timer control registers (TMU.TCR) 236 8.2.6 Input capture register (TMU.TCPR2) 243 8.3 Operation 244 8.3.1 Counter operation 244 Example of count operation setting procedure Auto-reload count operation TCNT count timing 8.3.2 Input capture function 248 8.4 Interrupts 249 8.5 Usage notes 250 8.5.1 Register writes 250 8.5.2 TCNT register reads 250 STMicroelectronics ADCS 7153464G SH-4, ST40 System Architecture, Volume 1: System PRELIMINARY DATA xiv 8.5.3 Resetting the RTC frequency
Recommended publications
  • The Intel Microprocessors: Architecture, Programming and Interfacing Introduction to the Microprocessor and Computer
    Microprocessors (0630371) Fall 2010/2011 – Lecture Notes # 1 The Intel Microprocessors: Architecture, Programming and Interfacing Introduction to the Microprocessor and computer Outline of the Lecture Evolution of programming languages. Microcomputer Architecture. Instruction Execution Cycle. Evolution of programming languages: Machine language - the programmer had to remember the machine codes for various operations, and had to remember the locations of the data in the main memory like: 0101 0011 0111… Assembly Language - an instruction is an easy –to- remember form called a mnemonic code . Example: Assembly Language Machine Language Load 100100 ADD 100101 SUB 100011 We need a program called an assembler that translates the assembly language instructions into machine language. High-level languages Fortran, Cobol, Pascal, C++, C# and java. We need a compiler to translate instructions written in high-level languages into machine code. Microprocessor-based system (Micro computer) Architecture Data Bus, I/O bus Memory Storage I/O I/O Registers Unit Device Device Central Processing Unit #1 #2 (CPU ) ALU CU Clock Control Unit Address Bus The figure shows the main components of a microprocessor-based system: CPU- Central Processing Unit , where calculations and logic operations are done. CPU contains registers , a high-frequency clock , a control unit ( CU ) and an arithmetic logic unit ( ALU ). o Clock : synchronizes the internal operations of the CPU with other system components using clock pulsing at a constant rate (the basic unit of time for machine instructions is a machine cycle or clock cycle) One cycle A machine instruction requires at least one clock cycle some instruction require 50 clocks. o Control Unit (CU) - generate the needed control signals to coordinate the sequencing of steps involved in executing machine instructions: (fetches data and instructions and decodes addresses for the ALU).
    [Show full text]
  • SH-1/SH-2/SH-DSP Programming Manual
    Hitachi SuperH™ RISC Engine SH-1/SH-2/SH-DSP Programming Manual ADE-602-063C Rev. 4.0 5/13/99 Hitachi ,Ltd Cautions 1. Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s patent, copyright, trademark, or other intellectual property rights for information contained in this document. Hitachi bears no responsibility for problems that may arise with third party’s rights, including intellectual property rights, in connection with use of the information contained in this document. 2. Products and product specifications may be subject to change without notice. Confirm that you have received the latest product standards or specifications before final design, purchase or use. 3. Hitachi makes every attempt to ensure that its products are of high quality and reliability. However, contact Hitachi’s sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment or medical equipment for life support. 4. Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions and other characteristics. Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges. Even within the guaranteed ranges, consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail-safes, so that the equipment incorporating Hitachi product does not cause bodily injury, fire or other consequential damage due to operation of the Hitachi product.
    [Show full text]
  • Unit 8 : Microprocessor Architecture
    Unit 8 : Microprocessor Architecture Lesson 1 : Microcomputer Structure 1.1. Learning Objectives On completion of this lesson you will be able to : ♦ draw the block diagram of a simple computer ♦ understand the function of different units of a microcomputer ♦ learn the basic operation of microcomputer bus system. 1.2. Digital Computer A digital computer is a multipurpose, programmable machine that reads A digital computer is a binary instructions from its memory, accepts binary data as input and multipurpose, programmable processes data according to those instructions, and provides results as machine. output. 1.3. Basic Computer System Organization Every computer contains five essential parts or units. They are Basic computer system organization. i. the arithmetic logic unit (ALU) ii. the control unit iii. the memory unit iv. the input unit v. the output unit. 1.3.1. The Arithmetic and Logic Unit (ALU) The arithmetic and logic unit (ALU) is that part of the computer that The arithmetic and logic actually performs arithmetic and logical operations on data. All other unit (ALU) is that part of elements of the computer system - control unit, register, memory, I/O - the computer that actually are there mainly to bring data into the ALU to process and then to take performs arithmetic and the results back out. logical operations on data. An arithmetic and logic unit and, indeed, all electronic components in the computer are based on the use of simple digital logic devices that can store binary digits and perform simple Boolean logic operations. Data are presented to the ALU in registers. These registers are temporary storage locations within the CPU that are connected by signal paths of the ALU.
    [Show full text]
  • Superh RISC Engine SH-1/SH-2
    SuperH RISC Engine SH-1/SH-2 Programming Manual September 3, 1996 Hitachi America Ltd. Notice When using this document, keep the following in mind: 1. This document may, wholly or partially, be subject to change without notice. 2. All rights are reserved: No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without Hitachi’s permission. 3. Hitachi will not be held responsible for any damage to the user that may result from accidents or any other reasons during operation of the user’s unit according to this document. 4. Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Hitachi’s semiconductor products. Hitachi assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein. 5. No license is granted by implication or otherwise under any patents or other rights of any third party or Hitachi, Ltd. 6. MEDICAL APPLICATIONS: Hitachi’s products are not authorized for use in MEDICAL APPLICATIONS without the written consent of the appropriate officer of Hitachi’s sales company. Such use includes, but is not limited to, use in life support systems. Buyers of Hitachi’s products are requested to notify the relevant Hitachi sales offices when planning to use the products in MEDICAL APPLICATIONS. Introduction The SuperH RISC engine family incorporates a RISC (Reduced Instruction Set Computer) type CPU. A basic instruction can be executed in one clock cycle, realizing high performance operation. A built-in multiplier can execute multiplication and addition as quickly as DSP.
    [Show full text]
  • HOW FAST? the Current Intel® Core™ Processor Has 43,000,000% More Transistors Than the 4004 Processor
    40yrs of Intel® microprocessor innovation Following Moore’s Law the whole way Intel co-founder Gordon Moore once made a famous prediction that transistor The world’s first microprocessor count for computer chips would —the Intel® 4004—was “born” in 1971, double every two years. 10 years before the first PC came along. Using Moore’s Law as a guiding principle, Intel has provided ever-increasing functionality, performance and energy efficiency to its products. Just think: What if the world had followed this golden rule the last 40 years? HOW FAST? The current Intel® Core™ processor has 43,000,000% more transistors than the 4004 processor. If a village with a 1971 population of 100 had grown as quickly, it would now be by far the largest city in the world. War and Peace? Wait a second. The 4004 processor executed 92,000 instructions per second, while today’s Intel® Core™ i7 processor can run 92 billion. If your typing had accelerated at that rate, you’d be able to type Tolstoy’s classic in just over 1 second. 0101010101010101… You would need 25,000 years to turn a light switch on and off 1.5 trillion times, but today’s processors can do that in less than a second. A PENNY SAVED… When released in 1981, the first well- equipped IBM PC cost about $11,250 in inflation-adjusted 2011 dollars. Today, much more powerful PCs are available in the $500 range (or even less). Fly me to the moon If space travel had come down in price as much as transistors have since 1971, the Apollo 11 mission, which cost around $355 million in 1969, would cost about as much as a latte.
    [Show full text]
  • Superh Family Catalog 3A
    SuperH® Family of Microcontrollers and Microprocessors ® 2006.4 Renesas Technology America SuperH® Family of Microcontrollers & Microprocessors 2006 Catalog Renesas — Your Best Decision for Microcontrollers and Microprocessors Choose for your next design; use for all your future ones. Renesas Technology, the leading global supplier of microcontrollers and microprocessors for embedded systems, especially flash microcomputers, makes it easy to select the right device for any application. The hundreds of devices in our H8®, M16C™ and SuperH® families, among others, have upwardly compatible architectures and standard platforms covering wide spans of performance, integration, power efficiency and price points. Your choices extend from cost-effective 8-bit microcontrollers to high-performance 16-bit and high-end 32-bit devices. These easy-to-use chips can enable your design innovations now and in the future. Our advanced silicon solutions simplify system optimizations, facilitate design enhancements and diversifications, and help you meet tight cost budgets. Key markets for Renesas microcontrollers and microprocessors include the mobile, automotive and PC/AV fields. For example, we are a leader in devices for car information systems, the technology forerunner in application processors for multimedia mobile phones, and an innovator in devices for power inverter applications. By choosing world-class Renesas solutions, you get highly reliable designs produced in high-quality fabrication facilities, and benefit from ongoing development defined by solid technology roadmaps. You can shorten your system design cycles and improve your time-to-market by taking advantage of our total system support, including software solutions, starter kits, reference platforms, reference designs, and middleware. Expert third-party support is available as well.
    [Show full text]
  • Trends in Processor Architecture
    A. González Trends in Processor Architecture Trends in Processor Architecture Antonio González Universitat Politècnica de Catalunya, Barcelona, Spain 1. Past Trends Processors have undergone a tremendous evolution throughout their history. A key milestone in this evolution was the introduction of the microprocessor, term that refers to a processor that is implemented in a single chip. The first microprocessor was introduced by Intel under the name of Intel 4004 in 1971. It contained about 2,300 transistors, was clocked at 740 KHz and delivered 92,000 instructions per second while dissipating around 0.5 watts. Since then, practically every year we have witnessed the launch of a new microprocessor, delivering significant performance improvements over previous ones. Some studies have estimated this growth to be exponential, in the order of about 50% per year, which results in a cumulative growth of over three orders of magnitude in a time span of two decades [12]. These improvements have been fueled by advances in the manufacturing process and innovations in processor architecture. According to several studies [4][6], both aspects contributed in a similar amount to the global gains. The manufacturing process technology has tried to follow the scaling recipe laid down by Robert N. Dennard in the early 1970s [7]. The basics of this technology scaling consists of reducing transistor dimensions by a factor of 30% every generation (typically 2 years) while keeping electric fields constant. The 30% scaling in the dimensions results in doubling the transistor density (doubling transistor density every two years was predicted in 1975 by Gordon Moore and is normally referred to as Moore’s Law [21][22]).
    [Show full text]
  • What Is a Microprocessor?
    Behavior Research Methods & Instrumentation 1978, Vol. 10 (2),238-240 SESSION VII MICROPROCESSORS IN PSYCHOLOGY: A SYMPOSIUM MISRA PAVEL, New York University, Presider What is a microprocessor? MISRA PAVEL New York University, New York, New York 10003 A general introduction to microcomputer terminology and concepts is provided. The purpose of this introduction is to provide an overview of this session and to introduce the termi­ MICROPROCESSOR SYSTEM nology and some of the concepts that will be discussed in greater detail by the rest of the session papers. PERIPNERILS EIPERI MENT II A block diagram of a typical small computer system USS PRINIER KErBOARD INIERfICE is shown in Figure 1. Four distinct blocks can be STDRIGE distinguished: (1) the central processing unit (CPU); (2) external memory; (3) peripherals-mass storage, CONTROL standard input/output, and man-machine interface; 0111 BUS (4) special purpose (experimental) interface. IODiISS The different functional units in the system shown here are connected, more or less in parallel, by a number CENTKll ElIEBUL of lines commonly referred to as a bus. The bus mediates PROCESSING ME MOil transfer of information among the units by carrying UN IT address information, data, and control signals. For example, when the CPU transfers data to memory, it activates appropriate control lines, asserts the desired Figure 1. Block diagram of a smaIl computer system. destination memory address, and then outputs data on the bus. Traditionally, the entire system was built from a CU multitude of relatively simple components mounted on interconnected printed circuit cards. With the advances of integrated circuit technology, large amounts of circuitry were squeezed into a single chip.
    [Show full text]
  • Chapter 1: Microprocessor Architecture
    Chapter 1: Microprocessor architecture ECE 3120 – Fall 2013 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ [email protected] Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware organization 1.2 The processor 1.3 Memory system operation 1.4 Program Execution 1.5 HCS12 Microcontroller 1.1.1 Number System - Computer hardware uses binary numbers to perform all operations. - Human beings are used to decimal number system. Conversion is often needed to convert numbers between the internal (binary) and external (decimal) representations. - Octal and hexadecimal numbers have shorter representations than the binary system. - The binary number system has two digits 0 and 1 - The octal number system uses eight digits 0 and 7 - The hexadecimal number system uses 16 digits: 0, 1, .., 9, A, B, C,.., F 1 - 1 - A prefix is used to indicate the base of a number. - Convert %01000101 to Hexadecimal = $45 because 0100 = 4 and 0101 = 5 - Computer needs to deal with signed and unsigned numbers - Two’s complement method is used to represent negative numbers - A number with its most significant bit set to 1 is negative, otherwise it is positive. 1 - 2 1- Unsigned number %1111 = 1 + 2 + 4 + 8 = 15 %0111 = 1 + 2 + 4 = 7 Unsigned N-bit number can have numbers from 0 to 2N-1 2- Signed number %1111 is a negative number. To convert to decimal, calculate the two’s complement The two’s complement = one’s complement +1 = %0000 + 1 =%0001 = 1 then %1111 = -1 %0111 is a positive number = 1 + 2 + 4 = 7.
    [Show full text]
  • Embedded Operating Systems
    7 Embedded Operating Systems Claudio Scordino1, Errico Guidieri1, Bruno Morelli1, Andrea Marongiu2,3, Giuseppe Tagliavini3 and Paolo Gai1 1Evidence SRL, Italy 2Swiss Federal Institute of Technology in Zurich (ETHZ), Switzerland 3University of Bologna, Italy In this chapter, we will provide a description of existing open-source operating systems (OSs) which have been analyzed with the objective of providing a porting for the reference architecture described in Chapter 2. Among the various possibilities, the ERIKA Enterprise RTOS (Real-Time Operating System) and Linux with preemption patches have been selected. A description of the porting effort on the reference architecture has also been provided. 7.1 Introduction In the past, OSs for high-performance computing (HPC) were based on custom-tailored solutions to fully exploit all performance opportunities of supercomputers. Nowadays, instead, HPC systems are being moved away from in-house OSs to more generic OS solutions like Linux. Such a trend can be observed in the TOP500 list [1] that includes the 500 most powerful supercomputers in the world, in which Linux dominates the competition. In fact, in around 20 years, Linux has been capable of conquering all the TOP500 list from scratch (for the first time in November 2017). Each manufacturer, however, still implements specific changes to the Linux OS to better exploit specific computer hardware features. This is especially true in the case of computing nodes in which lightweight kernels are used to speed up the computation. 173 174 Embedded Operating Systems Figure 7.1 Number of Linux-based supercomputers in the TOP500 list. Linux is a full-featured OS, originally designed to be used in server or desktop environments.
    [Show full text]
  • Powerpc 620™ RISC Microprocessor Technical Summary
    SA14-2069-01 MPC620/D (IBM Order Number) (Motorola Order Number) 7/96 REV 1 ™ Advance Information PowerPC 620™ RISC Microprocessor Technical Summary This document provides an overview of the PowerPC 620 microprocessor. It includes the following: • Part 1, “PowerPC 620 Microprocessor Overview,” provides a summary of 620 features. • Part 2, “PowerPC 620 Microprocessor Hardware Implementation,” provides details about the 620 hardware implementation. This includes descriptions of the 620’s execution units, cache implementation, memory management units (MMUs), and system interface. • Part 3, “PowerPC 620 Microprocessor Execution Model,” provides a description of the 620 execution model. This section includes information about the programming model, instruction set, exception model, and instruction timing. • Part 4, “Performance Monitor,” discusses the performance monitor facility of the 620. In this document, the term ‘620’ is used as an abbreviation for ‘PowerPC 620 microprocessor’. The PowerPC 620 microprocessors are available from IBM as PPC620 and from Motorola as MPC620. To locate any published errata or updates for this document, refer to the website at http://www.mot.com/powerpc/ or at http://www.chips.ibm.com/products/ppc. 620 Technical Summary 620 Technical The PowerPC name, the PowerPC logotype, and PowerPC 620 are trademarks of International Business Machines Corporation, used by Motorola under license from International Business Machines Corporation. This document contains information on a new product under development by Motorola and IBM. Motorola and IBM reserve the right to change or discontinue this product without notice. © Motorola Inc., 1996. All rights reserved Portions hereof © International Business Machines Corporation, 1991–1996. All rights reserved Part 1 PowerPC 620 Microprocessor Overview This section describes the features of the 620, provides a block diagram showing the major functional units, and describes briefly how those units interact.
    [Show full text]
  • Superh TM RISC Engine High-Performance Embedded Workshop 3 User's Manual
    To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding. Renesas Electronics website: http://www.renesas.com April 1st, 2010 Renesas Electronics Corporation Issued by: Renesas Electronics Corporation (http://www.renesas.com) Send any inquiries to http://www.renesas.com/inquiry. Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website. 2. Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others. 3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part. 4. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples.
    [Show full text]