• No results found

RS-232 FPGA based transmitter and receiver using VHDL code

N/A
N/A
Protected

Academic year: 2021

Share "RS-232 FPGA based transmitter and receiver using VHDL code"

Copied!
31
0
0

Loading.... (view fulltext now)

Full text

(1)

RS-232 TRANSMITTER AND RECEIVER

USING FPGA WITH VHDL CODE

Internal Guide by:-

Prof. Hardik .H .Patel Assistance professor, Department of EC, SRPEC, Unjha. External Guide by:- Mr. Elesh Patel By:- Ankita Patel(090780111007) Kinjal Prajapati(100783111004) Vidhi Patel(090780111001) 8th Semester, B.E (EC), SRPEC, Dabhi – Unjha

(2)

CONTENTS

 AIM  MOTIVATION  OVERVIEW OF PROJECT  COMPONENT  SPECIFICATION  STATE DIAGRAM  SIMULATION /RESULTS  WORK PLAN  CONCLUSION  FUTURE WORK  REFERENCES 8/14/2013

(3)

AIM

 Aim of this project is to transfer data from PC to FPGA

and FPGA to PC using serial communication. For this Serial communication we are using RS-232 for interfacing of PC and FPGA and Using Code of data transfer with VHDL language we Transfer data between FPGA and PC.

 Hyper terminal is used for transferring data and for

giving input for receiver section and showing output on hyper terminal for transmitting section.

8/14/2013 3

(4)

MOTIVATION

 Many more Data acquisition system are available in the

market Based on DSP ,microcontroller and FPGA etc…But the Faster response, low Power Consumption, less time consuming of FPGA we are going though FPGA.

Reason for Choosing FPGA based System:

 Faster Response.

 Low Power Consumption.

 Less Time Consuming.

 Data Security.

 Accuracy.

8/14/2013 4

(5)

OVERVIEW OF PROJECT

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 5

(6)

8/14/2013 6 ALTERA MODEL[1]

(7)

BLOCK DIAGRAM OF RECEIVER

RX RST CLK 8 BIT DATA R (7 DOWN T0 0)

RECEIVR

DATA

BLOCK

8/14/2013 7

RECIVER

DATA

BLOCK

RS-232 TX/RX USING FPGA WITH VHDL CODE

(8)

BLOCK DIAGRAM OF TRANSMITTER

8 BIT RST CLK TX DATA_TX (7 DOWN T0 0) TRANSMITTER DATA BLOCK

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 8

(9)

HYPER TERMINAL

 This is a built in interface in windows which sends and

receives data through the serial port.it has the option of sending through port COM1 and COM2 and also has flexible baud rate.

8/14/2013

(10)

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 10

(11)

COMPONENTS

 Altera kit(FPGA)

 RS-232

 Power Supply

Cyclone QUARTUS II software

 PC

8/14/2013

(12)

S

PECIFICATION OF ALTERA KIT

 5volt external supply.

 9600 baud rate.

 27 MHZ/25 MHZ frequency.

8/14/2013

(13)

DECIDING THE CLOCK AND BAUDRATE

 In FPGA clock in not standard. That is ,in FPGA clock is

use by 10MHZ,27MHZ,50MHZ etc..

 Baud rate that we are using is 9600.

 Also there is miss match between clock and baudrate

so calculate clock by:

Frequency/baud rate= new clock genereted

that is used

in FPGA

8/14/2013

(14)

DECIDING THE CLOCK AND BAUDRATE

 Here,

27MHZ/9600=2812 cycle

 so,there is a 1406 clock cycle for upper cycle and

similarly 1406 clock cycle for lower cycle.

 In this way clock and baud rate is decided

8/14/2013

(15)

STATE DIAGRAM

(16)

S5 IDEAL S0 S1 S2 S3

STATE DIGRAM OF RECEIVER

S7 S6 S4 S8 1 0 1 0 1 Data_r(0)<=rx Data_r(1)<=rx Data_r(2)<=rx Data_r(3)<=rx Data_r(4)<=rx Data_r(5)<=rx Data_r(6)<=rx Data_r(7)<=rx 8/14/2013 16 RST

RS-232 TX/RX USING FPGA WITH VHDL CODE

(17)

S5 RST IDEAL S0 S1 S2 S3

STATE DIGRAM OF TRANSMITTER

S7 S6 S4 S8 1 0 1 TX<=data_tx(0) TX<=data_tx(1) TX<=data_tx(1) TX<=data_tx(2) TX<=data_tx(3) TX<=data_tx(4) TX<=data_tx(5) TX<=data_tx(6)

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 17

(18)

SIMULATION/RESULT

(19)

Design flow

8/14/2013

RS-232 TX/RX USING FPGA WITH VHDL CODE 19

Fig:7 design flow of simulation process[2]

(20)

DESCRIPTION OF THE DESIGN FLOW

 Design Entry.  Synthesis.  Functional Simulation.  Fitting.  Timing Analysis.  Timing Simulation.

 Programming and Configuration.

(21)

TESTING WITH HARDWARE

8/14/2013

(22)

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 22

(23)

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 23

(24)

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 24

(25)

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 25

(26)

WORK PLAN

Sr. No Sr. No

Jul-12 Aug-12 Sep-12 Oct-12 W-1 W-2 W-3 W-4 W-1 W-2 W-3 W-4 W-1 W-2 W-3 W-4 W-1 W-2 W-3 W-4 (1) . Selection of project Topic (2) . Introduction (3) .

Detail study in project

work (4) . To study the VHDL Language (5) . To study project by software (6) . Programme practice

8/14/2013 RS-232 transmitter/Receiver using FPGA with vhdl 26

(27)

WORK PLAN

8/14/2013 RS-232 TX/RX USING FPGA WITH VHDL CODE 27

Sr.

No Sr. No

Jan-13 Feb-13 Mar-13 Apr-13 W-1 W-2 W-3 W-4 W-1 W-2 W-3 W-4 W-1 W-2 W-3 W-4 W-1 W-2 W-3 W-4 (1)

. Coding of receiver part

(2) .

Implement receiver

code on altera kit

(3) . Coding of transmiter part (4) . Implement transmiter

part on altera kit

(5) .

Implement both code on Xillinx spartan3

code

(6) .

Prepare a report and

(28)

CONCLUSION

 The FPGA based Transmitter/Receiver data using

serial communication are most of the high fidelity (hi-fi) are maintain using VHDL code design was successfully design by behavioral model.

 Here, we get particular output according input what we

are given as and that output is unique for every input.

 So that we control many circuits by every unique output

or we operate that many circuits by giving input.

(29)

FUTURE WORK

 We can also use this method, For transferring file and

documents from one pc to another pc like one pc is data transmit to the FPGA and from FPGA to another pc.

 In the transmitter section, There is not stable output

,that means here we get continuous output on the

hyper terminal. so we are trying to get the stable output or static output for transmitter section.

 In this session project was based on different code for

TX/RX. So, code will be merged for TX and RX with help of logic loop.

(30)

REFERENCES

[1] Cyclone II FPGA Starter Development Board Reference Manual

[2]Stephen Brown and Jonathan Rose(for fpga)s

Department of Electrical and Computer Engineering University of Toronto email: brown |

jayar@eecg.toronto.edu

(31)

THANK YOU…

References

Related documents

syntactically-encoded lexical semantic representation based on the structure of events, and that verb meanings are constructed from a combination of functional

Note that as the switching frequency increases, the minimum size of the inductor to produce continuous current and the minimum size of the capacitor to limit output ripple

The specific target of this research is to increase competitive advantage and the performance of SMEs in Bima City with the existence of entrepreneurial competencies that

1.2 Liability in tort may arise either vicariously or by breach of the employer’s personal duty in negligence to the employee; actions accruing before the Enterprise

The courts have held that the federal authorities were responsible for regulating teaching of Russian as the state language of the Federation, alongside teaching of official

06 Pacific white-sided dolphin 7 Risso’s dolphin 8 killer whale baleen whales 9 gray whale 10 humpback whale 11 blue whale 12 fin whale.. seals &amp;

TACL is interpreted code (thus not compiled). The use of TACL can heavily tax the system. You must use TACL wisely. You use more disk space as you every TACL macro is in a

Migrant Movements through Djibouti to Yemen (January 2020 - February 2021) Migrant Flows Observed Through Djibouti and at Yemen Points of Entry.. • Migrants’ movements into the