Presentation is loading. Please wait.

Presentation is loading. Please wait.

INTRODUCTION TO Microprocessors Dr. Hugh Blanton ENTC 4337/5337.

Similar presentations


Presentation on theme: "INTRODUCTION TO Microprocessors Dr. Hugh Blanton ENTC 4337/5337."— Presentation transcript:

1 INTRODUCTION TO Microprocessors Dr. Hugh Blanton ENTC 4337/5337

2 Dr. Blanton - ENTC 4337 - Introduction 2 Objectives Build intuition for signal processing concepts Translate signal processing concepts into real-time digital communications software in laboratory

3 Dr. Blanton - ENTC 4337 - Introduction 3 General Information Contact Information Email—blanton@etsu.edu Phone—(423) 439-4177 Web Page http://faculty.etsu.edu/blanton Office Hours MWF—10:15-11:45

4 Dr. Blanton - ENTC 4337 - Introduction 4 Grading Calculation of numeric grades 15% midterm #1 25% final #2 (semi-cumulative) 20% homework 50% laboratory

5 Dr. Blanton - ENTC 4337 - Introduction 5 Laboratory component Students work in teams of two on lab assignments/reports Assign team members same lab report grade and then apply individual deductions for attendance/participation Lowest lab report dropped

6 Dr. Blanton - ENTC 4337 - Introduction 6 Academic Integrity Homework/Exam assignments Discuss homework/exam questions with others Be sure to submit your own independent solution Turning in two identical (or nearly identical) homework sets is considered academic dishonesty

7 Dr. Blanton - ENTC 4337 - Introduction 7 Laboratory reports Should only contain work of those named on report If any other work is included, then reference source Copying information from another source without giving proper reference and quotation is plagiarism Source code must be original work

8 Dr. Blanton - ENTC 4337 - Introduction 8 Topics The TMS320C6X (1 week) Programming (4 weeks) C Code Composer Assembly Language Hardware (4 weeks) architecture

9 Dr. Blanton - ENTC 4337 - Introduction 9 Applications FIR Filters IIR Filters Fast Fourier Transforms

10 Dr. Blanton - ENTC 4337 - Introduction 10 TMS320C6x Manuals You need to refer to various TMS320C6000 manuals, which are only available electronically: Code Composer User’s Guide http://focus.ti.com/lit/ug/spru301c/spru301c.pdf Optimizing C Compiler http://www-s.ti.com/sc/psheets/spru187k/spru187k.pdf Programmer’s Guide http://www-s.ti.com/sc/psheets/spru198g/spru198g.pdf CPU and Instruction Set Reference Guide http://www-s.ti.com/sc/psheets/spru189f/spru189f.pdf

11 Dr. Blanton - ENTC 4337 - Introduction 11 Microprocessors General-purpose processors or microcontrollers (GPPs/MCUs for short) are either not specialized for a specific kind of applications (in the case of general- purpose processors), or they are designed for control-oriented applications (in the case of microcontrollers).

12 Dr. Blanton - ENTC 4337 - Introduction 12 Digital Signal Processors DSP processors have features designed to support high-performance, repetitive, numerically intensive tasks. Mostly designed with the same few basic operations in mind They share the same set of basic characteristics These characteristics fall into three categories: specialized high speed arithmetic data transfer to and from the real world multiple access memory architecture

13 Dr. Blanton - ENTC 4337 - Introduction 13 DSP Features Features that accelerate performance in DSP applications include: Single-cycle multiply-accumulate (MAC) capability; high-performance DSPs often have two multipliers that enable two multiply-accumulate operations per instruction cycle; some DSP have four or more multipliers Specialized addressing modes, for example, pre- and post-modification of address pointers, circular addressing, and bit-reversed addressing

14 Dr. Blanton - ENTC 4337 - Introduction 14 DSP Features Most DSPs provide various configurations of on-chip memory and peripherals tailored for DSP applications. DSPs generally feature multiple-access memory architectures that enable DSPs to complete several accesses to memory in a single instruction cycle Specialized execution control. Usually, DSP processors provide a loop instruction that allows tight loops to be repeated without spending any instruction cycles for updating and testing the loop counter or for jumping back to the top of the loop

15 Dr. Blanton - ENTC 4337 - Introduction 15 DSP Features DSP processors are known for their irregular instruction sets, which generally allow several operations to be encoded in a single instruction. For example, a processor that uses 32-bit instructions may encode two additions, two multiplications, and four 16-bit data moves into a single instruction. In general, DSP processor instruction sets allow a data move to be performed in parallel with an arithmetic operation. GPPs/MCUs, in contrast, usually specify a single operation per instruction

16 Dr. Blanton - ENTC 4337 - Introduction 16 DSP Features It is worth noting that the difference between DSPs and GPPs/MCUs is fading: many GPPs/MCUs now include DSP features, and DSPs are increasingly adding microcontroller features.

17 Dr. Blanton - ENTC 4337 - Introduction 17 What is a DSP? Digital Signal Processors (DSP) process digital signals An alternative method to process analog world signals Once the signal is in digital form, the DSP can easily process it After the DSP has processed the signal, the output signal must be converted back to analog so that we can sense it. ADCDSPDAC

18 Dr. Blanton - ENTC 4337 - Introduction 18 Why DSP? Advantages of digital signal processing Programmability—one hardware does many tasks Flexibility and upgradeability—develop a new code Repeatability—A CD player always plays the same music quality Advantages of analog signal processing low cost in some applications—attenuators, amplifiers wide bandwidth (GHz) Infinite resolution (no quantization error) and low signal levels

19 Dr. Blanton - ENTC 4337 - Introduction 19 The DSP System DSP chip Arithmetic Logic Unit (ALU) TMS320C6X Memory Converters Analog-to-Digital Digital-to-Analog Communication Ports Serial Parallel DSPADCDAC Memory Ports

20 Dr. Blanton - ENTC 4337 - Introduction 20 Review: Signals Continuous-time (analog) signals are functions of a real argument x(t) where t can take any real value Discrete-time (digital) signals are functions of an argument that takes values from a discrete set x[n] n  {...-3,-2,-1,0,1,2,3...} Integer index n instead of time t for discrete-time systems Value for x may be real or complex

21 Dr. Blanton - ENTC 4337 - Introduction 21 Analog and Digital Signals Amplitude of an analog signal can take any real or complex value at each time (sample) Amplitude of a digital signal takes values from a discrete set  

22 Dr. Blanton - ENTC 4337 - Introduction 22 Analog and Digital Signals A system is a transformation from one signal (called the input) to another signal (called the output or the response). Continuous-time systems with input signal x and output signal y (a.k.a., the response): Discrete-time system examples

23 Dr. Blanton - ENTC 4337 - Introduction 23 Audio Compact Discs Human hearing is from about 20 Hz to 20 kHz Sampling theorem: sample analog signal at a rate of more than twice the highest analog frequency Apply a lowpass filter to pass frequencies up to 20 kHz; e.g. a coffee filter water (small particles) through a coffee filter but not coffee grounds (large particles) Lowpass filter needs 10% of maximum passband frequency to roll off to zero (2 kHz rolloff in this case). Sampling at 44.1 kHz captures analog frequencies that are less than 22.05 kHz

24 Dr. Blanton - ENTC 4337 - Introduction 24 Signal Processing Systems Speech synthesis and speech recognition Audio CD players Audio compression (MP3, AC3) Image compression (JPEG, JPEG 2000) Optical character recognition Video CDs (MPEG 1) DVD, digital cable, and HDTV (MPEG 2) Wireless video (MPEG 4/H.263)

25 Dr. Blanton - ENTC 4337 - Introduction 25 Communication Systems Voiceband Dialup/Fax modems Digital subscriber line (DSL) modems ISDN: 144 kilobits per second (kbps) Business/symmetric: HDSL and HDSL2 Home/symmetric: ADSL and VDSL Cable modems Cell phones First generation (1G): AMPS Second generation (2G): GSM, IS-95 (CDMA) Third generation (3G): cdma2000, WCDMA

26 Dr. Blanton - ENTC 4337 - Introduction 26 DSP Architectures Multiply-Add-Accumulate (MAC) instruction Most common operation in DSP, A=B*C+D Typically 70 clock cycles with ordinary processors Single instruction cycle Havard architecture Separate data memory/bus and program memory/bus Multiple memory accesses per instruction cycle Modified von Neuman architecture multiple memory accesses per instruction cycle by the simple trick of running the memory clock faster than the instruction cycle.

27 Dr. Blanton - ENTC 4337 - Introduction 27 DSP Architectures Deterministic interrupt service routine latency Special addressing modes supported in hardware Modulo addressing for circular buffers (e.g. FIR filters) Bit-reversed addressing (e.g. fast Fourier transforms) DSP needs a program that is a series of instructions that perform certain functions.

28 Dr. Blanton - ENTC 4337 - Introduction 28 Digital vs Analog Digital Signal Processing More flexible. Often easier system upgrade. Data easily stored. Better control over accuracy requirements. Reproducibility. Advantages A/D & signal processors speed: wide-band signals still difficult to treat (real-time systems). Finite word-length effect. Obsolescence (analog electronics has it, too!). Limitations

29 Dr. Blanton - ENTC 4337 - Introduction 29 Impact of DSP on Modern Living Cellular/mobile telephony Speech and channel coding Voice and data processing Power management Multipath equaliztion Digital audio Stereo and surround sound Audio equalization and mixing Electronic music Automotive Digital Audio Digital Radio Personal communication systems Active suspension Medical electronics Critical/intensive care monitors Digital X-rays ECG analyzers Cardiac monitors Medical imaging Personal computer Sound cards Data storage and retrieval Error correction/concealment Multimedia Modems

30 Dr. Blanton - ENTC 4337 - Introduction 30 Analog & digital signals Continuous function continuous Continuous function V of continuous variable t (time, space etc) : V(t). Analog Discrete function discrete Discrete function V k of discrete sampling variable t k, with k = integer: V k = V(t k ). Digital Uniform (periodic) sampling. Sampling frequency f S = 1/ t S

31 Dr. Blanton - ENTC 4337 - Introduction 31 DSP: aim & tools Software Programming languages: Pascal, C / C++... “High level” languages: Matlab, Mathcad, Mathematica… Dedicated tools (ex: filter design s/w packages). Applications Predicting a system’s output. Implementing a certain processing task. Studying a certain signal. General purpose processors (GPP),  -controllers. Digital Signal Processors (DSP). Programmable logic ( PLD, FPGA ). Hardware real-time DSPing FastFaster


Download ppt "INTRODUCTION TO Microprocessors Dr. Hugh Blanton ENTC 4337/5337."

Similar presentations


Ads by Google