2
1 SBF - v1 - 1 CS1011 Embedded Systems Embedded Systems n Agenda: What is an embedded system? Example - mobile phone handset GSM cellular telephony handset design System-on-Chip (SoC) design designing embedded systems SBF - v1 - 2 CS1011 Embedded Systems What is an embedded system? n A computer the user can’t program? the computer is just a system component often the program is fixed interacting in real-time with external events n sometimes the distinction is fuzzy is a PDA an embedded system? is a games console an embedded system? n 90% of computers are embedded! SBF - v1 - 3 CS1011 Embedded Systems SBF - v1 - 4 CS1011 Embedded Systems The Cellular Concept 1 2 3 4 5 6 7 1 2 3 4 5 6 7 n Coverage area of a transmitter called a cell n Radio Propagation power decreases by 1 / distance 2 (ideal), 1 / distance 4 (real). n Spectrum scarcity, so reuse frequencies SBF - v1 - 5 CS1011 Embedded Systems GSM Architecture MS BTS BSC MSSC PSTN radio interface HLR VLR Mobile station Base transceiver station Base station controller Mobile services switching centre Public switched telephone network SBF - v1 - 6 CS1011 Embedded Systems Radio Interface n T ime D ivision M ultiple A ccess (TDMA) Assigned spectrum is divided into 8 time slots, numbered 0 to 7 (called a Frame) 1 0 1 2 3 4 5 6 7 7 6 0 TDMA frame (4.615 ms) 2 3 4 5 6 7 0 1 1 0 2 3 7 0 1 2 3 4 5 6 6 5 7 0 BTS transmits MS transmits Each time slot is assigned to an individual user MS & BTS do not transmit at the same time The radio transmission during a time slot is called a burst

Embed

Embed Size (px)

DESCRIPTION

life

Citation preview

Page 1: Embed

1

SBF - v1 - 1CS1011 Embedded Systems

Embedded Systems

n Agenda:• What is an embedded system?• Example - mobile phone handset

– GSM cellular telephony

– handset design

– System-on-Chip (SoC) design

• designing embedded systems

SBF - v1 - 2CS1011 Embedded Systems

What is an embedded system?

n A computer the user can’t program?• the computer is just a system component• often the program is fixed• interacting in real-time with external events

n sometimes the distinction is fuzzy• is a PDA an embedded system?• is a games console an embedded system?

n 90% of computers are embedded!

SBF - v1 - 3CS1011 Embedded Systems SBF - v1 - 4CS1011 Embedded Systems

The Cellular Concept

1

2

3

4

5

6

7

1

2

3

4

5

6

7

n Coverage area of a transmitter called a celln Radio Propagation

• power decreases by 1/distance2 (ideal), 1/distance

4 (real).

n Spectrum scarcity, so reuse frequencies

SBF - v1 - 5CS1011 Embedded Systems

GSM Architecture

MS

BTS

BSCMSSC PSTN

radio interface

HLR

VLR

Mobile station

Base transceiverstation

Base stationcontroller Mobile services

switching centre

Public switchedtelephone network

SBF - v1 - 6CS1011 Embedded Systems

Radio Interface

n Time DivisionMultiple Access(TDMA)• Assigned spectrum is

divided into 8 timeslots, numbered 0 to 7(called a Frame)

10 1 2 3 4 5 6 776 0

TDMA frame (4.615 ms)

2 3 4 5 6 7 0 110 2 3

7 0 1 2 3 4 5 665 7 0

BTS transmits

MS transmits

• Each time slot is assigned to an individual user

• MS & BTS do not transmit at the same time

• The radio transmission during a time slot is called aburst

Page 2: Embed

2

SBF - v1 - 7CS1011 Embedded Systems

Operation of the Handset

n Transmit speech• analog voice is digitised

and band-limited

• data rates reduced bycompression

• encode then interleave toreduce transmission errors

• add burst information andcipher for security

• convert up frequency andtransmit

Speech Coding

ChannelCoding

Interleaving

BurstFormatting

Ciphering

Modulation Demodulation

Deciphering

BurstFormatting

De-Interleaving

ChannelDecoding

SourceDecoding

Speech Speech

8 K samples /second,13 bits /sample

= 104 K bits /second

Block of 260 bitsevery 20 ms

= 13 K bits /second

Block of 456 bitsevery 20 ms

= 22.8 K bits /second

1 block of 456 bitsspread into 8 bursts insub-blocks of 57 bits

Digitising

Add burst controlbits

XOR the coded datawith a key

Convert toanalog

SBF - v1 - 8CS1011 Embedded Systems

Partitioning the design

UserInterface

Control & Protocol Processing

A/D

D/A

VoiceCoding

VoiceDecoding

Channel Coding&

Interleaving

ChannelDecoding

&Deinterleaving

Encryption

Decryption

Modulation

Demodulation &

Equalisation

D/A

A/D

Baseband: 30% of cost

RFModulation

RFDemodulation

PA

RF/IFConversion

RF: 20% of cost

Power Supply

Battery

Power: 10% of Cost

Keyboard,Display,Plastics,

Manufacture& Test:

40 % of cost

SBF - v1 - 9CS1011 Embedded Systems

A Typical Implementation

USER DISPLAY

KEYPAD

SIM CARD

TMS320C54x DSP

Software:Layer 1 (Speechcode/decode, Equalisation,Demodulation,Channel code, Errorcorrection)

ARM7TDMISoftware:User Interface, Layer 2 (radioresource) and Layer 3 (mobilty &connection management)

Digital Baseband

AudioInterface

RFInterface

Analog Baseband Receiver

Synthesiser

Modulator

Power Amp

Baseband Subsystem RF Subsystem

SBF - v1 - 10CS1011 Embedded Systems

System-on-Chip: e.g. AMULET3i

AMULET3

8 KbyteRAM

DMAcontroller

8 Kbyte

Synchronousperipheralinterface

Testinterfacecontroller

Synchronousperipheral

subsystem

data

address

chipselects

DRAMcontrol

peripheralI/Os

asynchronous

synchronous

MARBLE bus

DMArq DMAak

test

Memoryinterface

ROM

SBF - v1 - 11CS1011 Embedded Systems

AMULET3i - physical SoC layout

AMULET3

1K RAM

1K RAM 1K RAM 1K RAM 1K RAM

1K RAM 1K RAM 1K RAM

DMA ROMExtI/f Control

SBF - v1 - 12CS1011 Embedded Systems

Embedded systems: conclusions

n design constraints differ• especially in real-time performance

n general-purpose machines containembedded subsystems:• disk, keyboard, battery, modem, …

n SoC designs feature strongly

n 90% of all computers are embedded• a lot of folk are employed making them