83
An Introduction to CDMA © 2010 Nick Waterman VA3NNW

CDMA.ppt

Embed Size (px)

DESCRIPTION

CDMA -

Citation preview

Page 1: CDMA.ppt

An Introduction to CDMA

© 2010 Nick Waterman VA3NNW

Page 2: CDMA.ppt

An Introduction to CDMA

➲Follows on quite nicely from Mike Jarabek's “Modulation schemes and some light coding theory” talk in November

➲CDMA is a coding scheme used in many 3G cellular networks

➲There will be SOME math

Page 3: CDMA.ppt

An Introduction to CDMA

➲Follows on quite nicely from Mike Jarabek's “Modulation schemes and some light coding theory” talk in November

➲CDMA is a coding scheme used in many 3G cellular networks

➲There will be SOME maths

Page 4: CDMA.ppt

An Introduction to CDMA

➲Follows on quite nicely from Mike Jarabek's “Modulation schemes and some light coding theory” talk in November

➲CDMA is a coding scheme used in many 3G cellular networks

➲There will be SOME maths, but quite easy (x and +)

Page 5: CDMA.ppt

CDMA?

What does it stand for?➲Code➲Division➲Multiple➲Access

Page 6: CDMA.ppt

Multiple Access?

Page 7: CDMA.ppt

FDMA

➲Frequency➲Division➲Multiple➲Access

Page 8: CDMA.ppt

FDMA

Page 9: CDMA.ppt

FDMA

(1G Cellular Networks)

Page 10: CDMA.ppt

TDMA

➲Time➲Division➲Multiple➲Access

Page 11: CDMA.ppt

TDMA

Page 12: CDMA.ppt

F/TDMA

➲Frequency and Time➲Division➲Multiple➲Access

Page 13: CDMA.ppt

F/TDMA

(2G Cellular Networks)

Page 14: CDMA.ppt

F/TDMA

Ham Bands

Page 15: CDMA.ppt

CDMA

➲CODE➲Division➲Multiple➲Access

?

Page 16: CDMA.ppt

CDMA

Page 17: CDMA.ppt

CDMA

Uses the whole band, for the whole time(Scares the ҨӁɜʨѪ out of the CW narrow-bandwidth fans)

Page 18: CDMA.ppt

CDMA

Everyone transmits on top of everyone else.How do we show this?

Page 19: CDMA.ppt

CDMA

… but I prefer

Some people show it like this...

Page 20: CDMA.ppt

CDMA

(3G Cellular Networks)

Page 21: CDMA.ppt

… but you're probably wondering...

Page 22: CDMA.ppt

Hang on,Everyone transmits on top

of each other?Across the whole band?

At the same time?

Page 23: CDMA.ppt

YES.With different codes,

and if you know the right code, you can receive just

the person transmitting with that code.

Page 24: CDMA.ppt

Err, OK...So how do we make it?

First, a bit of a reminder:AM and SSB

Page 25: CDMA.ppt

Frequency Spectrum

Page 26: CDMA.ppt

Voice

Page 27: CDMA.ppt

Voice, Carrier

… and mix ...

Page 28: CDMA.ppt

AM

… or SSB ...

Page 29: CDMA.ppt

SSB

Page 30: CDMA.ppt

Let's do the same for CDMA:

Page 31: CDMA.ppt

Data Signal

… and a very wideband spreading code ...

Page 32: CDMA.ppt

Data Signal + Code

… and mix ...

Page 33: CDMA.ppt

CDMA

… to make really wideband CDMA spread spectrum signal

… but we can also turn the power down ...

Page 34: CDMA.ppt

CDMA

… right down ...

Page 35: CDMA.ppt

CDMA

… below the noise floor!… and still be heard!

Trust me. We'll prove it later.

Page 36: CDMA.ppt

… and the hardware?What does that look like?Let's again compare with

SSB:

Page 37: CDMA.ppt

SSB Transceiver Block Diagram

Page 38: CDMA.ppt

CDMA Transceiver Block DiagramExcept this is usually mostly digital, so...

Page 39: CDMA.ppt

CDMA Transceiver Block Diagram

Page 40: CDMA.ppt

Can we walk through an example?

Page 41: CDMA.ppt

WARNING! Here comes the maths!

… but it's quite simple multiplication

… though it does include negative numbers.

Don't worry, my 8-year old daughter can do it :-)

Page 42: CDMA.ppt

1x 1= 1

Multiplication

1x-1=-1

-1x 1=-1

-1x

-1= 1

Page 43: CDMA.ppt

CDMA example

Low-Bandwidth Signal:

High-Bandwidth Spreading Code:

...repeated...

Page 44: CDMA.ppt

CDMA example

Low-Bandwidth Signal:

High-Bandwidth Spreading Code:

Mix is a simple multiply

… and transmit.

Page 45: CDMA.ppt

CDMA example

To Decode / Receive, take the signal:

Page 46: CDMA.ppt

CDMA example

To Decode / Receive, take the signal:

Multiply by the same Spreading Code:

… to get ...

… which you should recognise as...

Page 47: CDMA.ppt

CDMA example

To Decode / Receive, take the signal:

Multiply by the same Spreading Code:

… to get ...

Page 48: CDMA.ppt

(Discuss noise)

To Decode / Receive, take the signal:

Multiply by the same Spreading Code:

… to get ...

Page 49: CDMA.ppt

What if we use the wrong code?

Take the same signal:

Multiply by the wrong Spreading Code:

Page 50: CDMA.ppt

What if we use the wrong code?

Take the same signal:

Multiply by the wrong Spreading Code:

… for example, let's just shift the same code left a bit:

Page 51: CDMA.ppt

What if we use the wrong code?

Take the same signal:

Multiply by the wrong Spreading Code:

… for example, let's just shift the same code left a bit:

Page 52: CDMA.ppt

Take the same signal:

Multiply by the wrong Spreading Code:

… you get ...

… which clearly hasn't recovered the original signal.Using wrong code is like being off-frequency.

What if we use the wrong code?

Page 53: CDMA.ppt

This obviously shows thattiming is critical. To receive a signal, you not only need to be

generating the RIGHT code, but your TIMING needs to be locked very tightly to the

received signal too.More on that later if I have time.

Page 54: CDMA.ppt

A more serious example:

Audience Participation!

Page 55: CDMA.ppt

Data

xSpreading Code

=CDMA

Audience Participation

Page 56: CDMA.ppt

Audience Participation

➲ LEFT side of room:➲ Take some “data”(pick a letter)➲ Multiply by Spreading

Code A➲ “Transmit” CDMA to

me

➲ RIGHT side of room:➲ Take some “data”(pick a letter)➲ Multiply by Spreading

Code B➲ “Transmit” CDMA to

me

2 volunteers will make some NOISE :-)

I will add LEFT+RIGHT+NOISE to see what might be receivedon the band

Page 57: CDMA.ppt

Audience Participation

➲ LEFT side of room:➲ Multiply by Spreading

Code B➲ “Receive” CDMA

from RIGHT

➲ RIGHT side of room:➲ Multiply by Spreading

Code A➲ “Receive” CDMA

from LEFT

… and with some luck, it'll work!

I will add LEFT+RIGHT+NOISE to see what might be received

Page 58: CDMA.ppt

First, pick a letter. Write it in Box 1

Letter Data

2 3 4 5 6

N 1 -1 -1 1 -1

O 1 -1 -1 -1 1

P 1 -1 -1 -1 -1

Q -1 1 1 1 1

R -1 1 1 1 -1

S -1 1 1 -1 1

T -1 1 1 -1 -1

U -1 1 -1 1 1

V -1 1 -1 1 -1

W -1 1 -1 -1 1

X -1 1 -1 -1 -1

Y -1 -1 1 1 1

Z -1 -1 1 1 -1

Letter Data

2 3 4 5 6

A 1 1 1 1 1

B 1 1 1 1 -1

C 1 1 1 -1 1

D 1 1 1 -1 -1

E 1 1 -1 1 1

F 1 1 -1 1 -1

G 1 1 -1 -1 1

H 1 1 -1 -1 -1

I 1 -1 1 1 1

J 1 -1 1 1 -1

K 1 -1 1 -1 1

L 1 -1 1 -1 -1

M 1 -1 -1 1 1

Page 59: CDMA.ppt

Now copy Data into boxes 2-6

Letter Data

2 3 4 5 6

N 1 -1 -1 1 -1

O 1 -1 -1 -1 1

P 1 -1 -1 -1 -1

Q -1 1 1 1 1

R -1 1 1 1 -1

S -1 1 1 -1 1

T -1 1 1 -1 -1

U -1 1 -1 1 1

V -1 1 -1 1 -1

W -1 1 -1 -1 1

X -1 1 -1 -1 -1

Y -1 -1 1 1 1

Z -1 -1 1 1 -1

Letter Data

2 3 4 5 6

A 1 1 1 1 1

B 1 1 1 1 -1

C 1 1 1 -1 1

D 1 1 1 -1 -1

E 1 1 -1 1 1

F 1 1 -1 1 -1

G 1 1 -1 -1 1

H 1 1 -1 -1 -1

I 1 -1 1 1 1

J 1 -1 1 1 -1

K 1 -1 1 -1 1

L 1 -1 1 -1 -1

M 1 -1 -1 1 1

Page 60: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA

2 3

Page 61: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA 1

Page 62: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA 1 -1

Page 63: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA 1 -1 1 -1 -1 1 -1 1

Page 64: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA 1 -1 1 -1 -1 1 -1 1 -1

Page 65: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA 1 -1 1 -1 -1 1 -1 1 -1 1

Page 66: CDMA.ppt

Example TX

Data 1 -1

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

CDMA 1 -1 1 -1 -1 1 -1 1 -1 1 -1 1 1 -1 1 -17

Page 67: CDMA.ppt

1x 1= 1

Datax Spreading Code

= CDMA

1x-1=-1

-1x 1=-1

-1x

-1= 1

(Step 7)

Page 68: CDMA.ppt

Step 8: A + B + Noise = Band

CDMAA

1 -1 1 -1 -1 1 -1 1 -1 1 -1 1 1 -1 1 -1

+ + + + + + + + + + + + + + + + +

CMDAB

1 -1 -1 1 -1 1 1 -1 -1 1 1 -1 1 -1 -1 1

+ + + + + + + + + + + + + + + + +

NOISE 3 2 3 2 5 5 3 2 5 4 5 4 2 4 5 5

= = = = = = = = = = = = = = = = =

BAND

Page 69: CDMA.ppt

Step 8: A + B + Noise = Band

CDMAA

1 -1 1 -1 -1 1 -1 1 -1 1 -1 1 1 -1 1 -1

+ + + + + + + + + + + + + + + + +

CMDAB

1 -1 -1 1 -1 1 1 -1 -1 1 1 -1 1 -1 -1 1

+ + + + + + + + + + + + + + + + +

NOISE 3 2 3 2 5 5 3 2 5 4 5 4 2 4 5 5

= = = = = = = = = = = = = = = = =

BAND 5 0 3 2 3 7 3 2 3 6 5 4 4 2 5 5

Page 70: CDMA.ppt

Example RX

BAND 5 0 3 2 3 7 3 2 3 6 5 4 4 2 5 5

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

Demod 5

Add these └───────┬───────┘+

└───────┬───────┘+

Total1 or -1?

9

10

Page 71: CDMA.ppt

Example RX

BAND 5 0 3 2 3 7 3 2 3 6 5 4 4 2 5 5

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

Demod 5 0 3 -2 -3 7 -3 2 3 -6 5 -4 -4 3 -5 5

Add these └───────┬───────┘+

└───────┬───────┘+

Total1 or -1?

10

11

Page 72: CDMA.ppt

Example RX

BAND 5 0 3 2 3 7 3 2 3 6 5 4 4 2 5 5

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

Demod 5 0 3 -2 -3 7 -3 2 3 -6 5 -4 -4 3 -5 5

Add these └───────┬───────┘+

└───────┬───────┘+

Total 9 -3

1 or -1?

11

Page 73: CDMA.ppt

Example RX

BAND 5 0 3 2 3 7 3 2 3 6 5 4 4 2 5 5

x x x x x x x x x x x x x x x x x

Spreading Code

1 -1 1 -1 -1 1 -1 1 1 -1 1 -1 -1 1 -1 1

= = = = = = = = = = = = = = = = =

Demod 5 0 3 -2 -3 7 -3 2 3 -6 5 -4 -4 3 -5 5

Add these └───────┬───────┘+

└───────┬───────┘+

Total 9 -3

1 or -1? 1 -1

11

12

Page 74: CDMA.ppt

Step 13: Find The Letter.Write it in box 13

Letter Data

2 3 4 5 6

N 1 -1 -1 1 -1

O 1 -1 -1 -1 1

P 1 -1 -1 -1 -1

Q -1 1 1 1 1

R -1 1 1 1 -1

S -1 1 1 -1 1

T -1 1 1 -1 -1

U -1 1 -1 1 1

V -1 1 -1 1 -1

W -1 1 -1 -1 1

X -1 1 -1 -1 -1

Y -1 -1 1 1 1

Z -1 -1 1 1 -1

Letter Data

2 3 4 5 6

A 1 1 1 1 1

B 1 1 1 1 -1

C 1 1 1 -1 1

D 1 1 1 -1 -1

E 1 1 -1 1 1

F 1 1 -1 1 -1

G 1 1 -1 -1 1

H 1 1 -1 -1 -1

I 1 -1 1 1 1

J 1 -1 1 1 -1

K 1 -1 1 -1 1

L 1 -1 1 -1 -1

M 1 -1 -1 1 1

Page 75: CDMA.ppt

Step 14:

Congratulate yourselves! :-)

Work out what went wrong? :-(

Page 76: CDMA.ppt

An Introduction to CDMA

© 2010 Nick Waterman VA3NNW

Thanks!

This has been:

Page 77: CDMA.ppt

An Introduction to CDMA

© 2010 Nick Waterman VA3NNW

Questions?

This has been:

Page 78: CDMA.ppt

Supplemental Material

Page 79: CDMA.ppt

CDMA Transceiver Block Diagram

Page 80: CDMA.ppt

CDMA Transceiver Block Diagram

Page 81: CDMA.ppt

CDMA Transceiver Block Diagram

Page 82: CDMA.ppt

CDMA Transceiver Block Diagram

Page 83: CDMA.ppt

CDMA Transmitter Block Diagram