design and development of prbs generator

27
DESIGN AND DEVELOPMENT OF PRBS GENERATOR SYSTEM IDENTIFICATION AND ESTIMATION MEM 1763 ASSIGNMENT 2 AHMAD MUZAFFAR BIN ABDUL KADIR KHAIRUL ANUAR BIN SIDEK THARMINDRAN A/L SUBRAMANIAM Prepared for: ASSOCIATE PROFESSOR DR. MOHD FUA’AD BIN HJ RAHMAT

Upload: pundeki

Post on 08-Mar-2015

799 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Design and Development of Prbs Generator

DESIGN AND DEVELOPMENT OF PRBS GENERATOR

SYSTEM IDENTIFICATION AND ESTIMATIONMEM 1763

ASSIGNMENT 2

AHMAD MUZAFFAR BIN ABDUL KADIR

KHAIRUL ANUAR BIN SIDEK

THARMINDRAN A/L SUBRAMANIAM

Prepared for:ASSOCIATE PROFESSOR DR. MOHD FUA’AD BIN HJ

RAHMAT

Page 2: Design and Development of Prbs Generator

Contents

Objective Project background, Methodology and Theory Hardware implementation Result, Analysis and Discussion Conclusion

Page 3: Design and Development of Prbs Generator

Objectives

To design and generate PRBS generator with maximum length sequence using Electronic Computer Aided Design Software-PROTEUS-ISIS.

To design PRBS generator using hardware (Transistor-transistor logic-TTL)Peripheral Interface Controller

To analyze the characteristic of PRBS signal.

Page 4: Design and Development of Prbs Generator

Scope of Project

Design PRBS generator with 1023 maximum length sequence using software .

Implementing the PRBS generator using embedded Peripheral Interface Controller.

Page 5: Design and Development of Prbs Generator

Project Background

There are several types of PRBS schemes available such as Quadratic Residual Codes,Maximum Length Sequence and others.

This generator creates PRBS using maximum length sequence(MLS).

A 1023 length PRBS is implemented by using linear feedback shift registers

Page 6: Design and Development of Prbs Generator

Design Methodology

Designing PRBS generator using computer algorithm.

Design circuit using PROTEUS ISIS SOFTWARE.

Simulation of hardware and software withPROTEUS-ISIS.

Verify?

Literature review

End

Write programming code in C.

NO YES

Page 7: Design and Development of Prbs Generator

1023 Length PRBS Generator

Page 8: Design and Development of Prbs Generator

Theory

PRBS Signals Can take on only two possible states, i.e +x and –

x State can change only at discrete intervals of

time ∆t Sequence is periodic with period T=N ∆t where N

is an integer. The most commonly used type-maximum length

sequence (length N=2ª-1, where a is an integer) Generated by an a shift register

Page 9: Design and Development of Prbs Generator

Theory

The first stage of the shift register is determined by feedback of the appropriate modulo two sum ( the logic function exclusive or)

The logic contents of the shift register are moved one stage to the right every ∆t seconds by simultaneous triggering by a clock pulse.

FF1 FF5FF2 FF3 FF4

Page 10: Design and Development of Prbs Generator

The design and development of the 1024 length PRBS generator involves two phases. The generator is using Peripheral Interface Controller.

The first phase is software design whereby the PRBS generator works on the principle of 10 stage shift register with the feedback of the appropriate modulo two sum of the last stage and third stage. An appropriate algorithm is created to implement this function.

Implementation

Page 11: Design and Development of Prbs Generator

The second phase is the hardware design whereby the circuit is designed using PROTEUS-ISIS. The PIC used to implement this circuit is programmed by the computer programme written in C from the earlier stage.

Both stages are integrated by burning in the PIC flash microcontroller into the circuit. The circuit is validated by testing it with a scope.

Implementation

Page 12: Design and Development of Prbs Generator

Circuit Block Diagram

Page 13: Design and Development of Prbs Generator

The circuit consists of the PIC 16F877A-Flash 16 bit MICROCHIP microcontroller. The advantage of using this device is that it has reduced instruction set computing processor.

The frequency of the PRBS can be set using software.

A attenuating circuit for varying PRBS amplitude.

Components

Page 14: Design and Development of Prbs Generator

Circuit

Page 15: Design and Development of Prbs Generator

Circuit

Page 16: Design and Development of Prbs Generator

CIRCUIT

Page 17: Design and Development of Prbs Generator

Circuit

Page 18: Design and Development of Prbs Generator

Circuit

Page 19: Design and Development of Prbs Generator

Output

Page 20: Design and Development of Prbs Generator

The PIC is programmed using C language. Source code is loaded into the PIC using BIZCHIP Programmer.

Software Description

Page 21: Design and Development of Prbs Generator

output_low(pin_D5);//for clock signal delay_ms(delaytime/2);//delay for prbs clock bittest1=bit_test(byte1,2);//check value for bit3 bittest2=bit_test(byte2,1);//check value for bit10 if (bittest1==bittest2)// bit3 xor bit10 bit1=0; else bit1=1; bit9 = bit_test(byte1,7); //check value for first byte shift_left(&byte1,1,bit1);//shift register for 1st byte shift_left(&byte2,1,bit9);//shift register for portc=byte1; //output 1 byte at portc if (bit_test(byte2,0)) //output bit 9th at pin D0 output_high(pin_D0); else output_low(pin_D0); if (bit_test(byte2,1))//output bit 10th at pin D1 output_high(pin_D1); else output_low(pin_D1); output_high(pin_D5);//clock output delay_ms(delaytime/2);// delay for clock

A slice of the C source code

Page 22: Design and Development of Prbs Generator

if (input(PIN_D2)==0)//reduce frequency { delay_ms(100); if(input(PIN_D2)==0) { if (delaytime<1500) { delaytime=delaytime+10; } } } if (input(PIN_D3)==0)//add frequency { delay_ms(100); if(input(PIN_D3)==0) { if (delaytime>100) delaytime=delaytime-10;}}

A slice of the C source code

Page 23: Design and Development of Prbs Generator

The result obtained is analysed by using a portable scope. The wave form generated from the output is the compared to the simulated result from using Microsoft Excel.

RESULT,ANALYSIS AND DISCUSSION

Page 24: Design and Development of Prbs Generator

Circuit Simulation

Page 25: Design and Development of Prbs Generator

Circuit Simulation

Page 26: Design and Development of Prbs Generator

Output obtained from circuit

Page 27: Design and Development of Prbs Generator

The circuit designed using PIC functions as a PRBS Generator as the waveform output shows the same if simulated using PROTEUS-ISIS software.

Conclusion