1 microprocessor-based systems course 5 special-purpose microprocessors

21
1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

Upload: eustace-warren

Post on 03-Jan-2016

230 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

1

Microprocessor-based Systems

Course 5 Special-purpose microprocessors

Page 2: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

2

Special-purpose microprocessors

Architecture dedicated for a well-defined scope

Types: Microcontrollers

a computer system in a single integrated circuit

Designed for control applications (enbedded systems)

Digital signal processors (DSP) Designed for (high speed) signal processing

Page 3: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

3

Digital signal processing DSP

Replace analog signal processing schemes Why digital processing?

higher noise immunity (significant difference between logical 0 and 1, hard to influence with noise)

higher precision results does not depend on environment changes

(temperature, humidity, pressure) or power supply changes

allows implementation of complex processing procedures (e.g. filters with many poles)

results are repeated in time (no aging of components) changes in the processing procedure does not impose

changes in the hardware (usually changes are made only in the program not in the hardware scheme)

Page 4: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

4

Signal processing procedures

Filters, convolutions, transforms (Fourier, Laplace, Z)

+Y(t)= f()X(t-)d

- where: Y(t)- the output function (signal) X(t)- the input function (signal) f(t)- transformation (processing) function In the digital field the integral is changed into a sum:

+Y(nT)= f(kT)*X(nT-kT)

k=-where: Y(nT) – the discreet output signal

X(nT) – the discreet input signal f(nT) – the discreet transformation function

Page 5: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

5

Architectural characteristics of digital signal processors

Multiply and Accumulate Unit - MAC Replaces a classical ALU

Multiple data and program buses 2-4 buses

Internal memory for program and data RAM, ROM, EPROM memories for data and program

Multiple register sets More register banks

String oriented addressing modes Automatic indexing, circular buffers

Complex multiply and accumulate instructions variations of MAC instructions

Page 6: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

6

MAC – Multiply and Accumulate Unit P ro g ra m b u s

D a ta b u s

S h if t 1 6 b i ts M U X

P a ra l le l m u lt ip lie s

3 2 b i ts

S h if t

M U X

A L U

A c u m u la to r

S h if t

Page 7: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

7

Internal scheme of the TMS320C25 Bus controller Program bus Cmnds PC Special ROM Stivă registers Address … Data Data bus AR0 ARP AR1 DP MAC … AR7

B0 RAM B0 RAM B1

Page 8: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

8

Internal scheme of TMS320C25

- RAM – memory blocks:- B0- 256*16 - data and program; - B1- 256*16 – data- B2-32*16 – data

- ROM – internal program memory (non-volatile memory)- MAC –multiply and accumulate unit- AR0-7- auxiliary registers- ARP – pointer to auxiliary registers- DP – domain pointer- PC – program counter

Page 9: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

9

TMS320 families and versions

16 bits processors for integers: TMS320C10, TMS320C20 şi TMS320C50

32 bits processors for floating point: TMS320C30 şi TMS320C40

multi-processor architecture for multimedia processing: TMS320C80

Page 10: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

10

Applications with DSPs

Electric motors and actuators Intelligent sensors Measuring devices Signal analyzers (ex. Digital Oscilloscope) Medical devices coder/decoders for audio/video signals Modems, communication controllers, routers Musical instruments, Electronic toys, Sound synthesizer, 3D graphical accelerators, image processing and recognition

Page 11: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

11

Limitations of DSPs

Limited frequencies for on-line processing the processing time of a signal sample limits

the maximum sampling frequency and consequently the maximum frequency of the input signal (half of the sampling frequency)

Discreet input and output values limited number of discreet values

Discreet processing – not continuous like in the case of analog schemes

Page 12: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

12

Microcontrollers

Definition: a (whole) computer system in a single VLSI integrated circuit

Components: CPU, ROM memory (for program), RAM memory (for data), interrupt system input/output ports, Timers/Counters Analog to digital converters and digital to

analog converters Other interfaces (PWM, WD)

Page 13: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

13

Destination

Control and monitoring applications Embedded systems Intelligent sensors Advantages:

Low costs Small dimensions Reduced power consumption

Page 14: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

14

The structure of the I 80C31/51 uC Interrupts Interrupt Timer 2 system ROM RAM Timer 1 4k-32k 128-512o Timer 0 CPU Serial Interf. ADC DAC Clock gen Port I/E *4 32 I/O lines RS 232 Analog Analog Output Inputs

Page 15: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

15

Components of the I8031/51 uC

- CPU – Central processing unit executes the instructions

- ROM – non-volatile program memory contains the application program and some constant parameters it may be PROM, EPROM or EEPROM, FLASH ; dimension: 0 to 32kB; extendable to 64 KB

- RAM –data memory stores variables and the stack the first part – 4 sets of 8 registers – the general purpose registers there is a bit addressable zone – for efficient use in case of logical variables dimension: 128-512 bytes; extendable with an external memory (not

recommended) the interrupt system –

handles internal and external interrupts/events interrupt sources:

2 external lines, serial cannel, counters/timers clock generator –

synchronize the CPU generate the source clock signal for other frequencies (e.g. for the serial

cannel)

Page 16: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

16

Components of the I8031/51 uC

Input/Output ports – handles input and output digital signals 4 or 6 ports of 8 signals; a signal may be of input, output or bidirectional

Serial channel – implements the RS 232 protocol – serial asynchronous character-

based, bidirectional communication; optional - I2C –serial bus for external components

Timer 0, 1, 2 – set of 2 or 3 timer/counters used for events/impulse counting for delays for frequency generation

-DAC – digital to analog converter generates an analog output signal it is optional

- CAN – analog to digital converter reads analog signals (8 in this case)

WD – watch dog PWM – Pulse Width Modulation

Page 17: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

17

Characteristics of the I8031/51

CPU reduced instruction set instructions executed in a fixed time (ex: 1 us)

ROM memory 0-32KB – for program internal and external memory

RAM memory 128-256 bytes 4*8 internal registers Special function registers (SFRs) mapped on

the data (RAM) memory space

Page 18: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

18

Interfaces Serial channel(s):

RS232 - mandatory I2C - optional Network interface (ex: CAN) - optional

Input/Output ports 4-6 ports * 8 bits (inputs, outputs or bidirectional)

Timers/Counters Counting events (impulses) Delay generation Frequency generator Real-time clock

PWM – pulse width modulation for the generation of “continuous” signals, using digital ones cheaper and easier to build

WD – watch dog for self-control of proper operation Resets itself in case of an error

Page 19: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

19

Working modes

Normal All components are working (are supplied)

Idle mode Only the memory and the clock generator is

supplied low consumption

Power-down mode Only the memory is supplied (in order to

preserve parameters) the power consumption is almost undetectable

Page 20: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

20

Processor variants Type ROM/

EPROMRAM Speed

MHzInterfaces

80C3180C51

87C51

04k ROM

4k EPROM

128 33 -UART (RS 232), 2 counters, 4 ports

80C3280C52

87C52

08k ROM

8k EPROM

256 20 -UART (RS 232), 3 counters, 4 ports

83C550

87C550 4k ROM

4k EPROM 128 16 -UART (RS 232),

2 counters, 4 ports,

8 analog channels on 8 bits,

watch-dog 80C55283C552

87C552

08k ROM

8k EPROM

256 16,24 -UART (RS 232), I2C, 3 counters, 6 ports,

8 analog channels on 10 bits,

watch-dog, 2 PWM outputs 80C59283C592

0-16k ROM16k EPROM

512 16

Page 21: 1 Microprocessor-based Systems Course 5 Special-purpose microprocessors

21

Other μC families

Intel - I8048, Microchip - PIC 12, PIC16, PIC17 ARM Motorola 68C05