EmbDev.net

Forum: FPGA, VHDL & Verilog UART communication through Nexys 3


von Roger S. (roger237)


Rate this post
useful
not useful
I am currently working on a project which involes manipulation of input 
data, (which can be anything, probably audio or text)  I am using a 
Nexys 3 board which has an on-board USB UART for data communication. 
This UART allows PC applications to communicate with the board using 
standard Windows COM port commands.

As stated on the reference manual of the Nexys 3 board, Serial port data 
is exchanged with the FPGA using a two-wire serial port (TXD/RXD) and 
software flow control (XON/XOFF). After the drivers are installed, I/O 
commands from the PC directed to the COM port will produce serial data 
traffic on the
N17 and N18 FPGA pins.

First of all, do you have any idea of any software I can use to 
literally be sending a file to my board... Also would someone care to 
explain how I would have access to this data as I'm pretty new to these 
things.

I have searched for some tutorials on this but couldnt find any.

Looking forward to your replies! :)

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Roger Swan wrote:
> First of all, do you have any idea of any software I can use to
> literally be sending a file to my board...
Serach for "terminal software" and you will find things like Hyperterm 
(part of Windows) or RealTerm, TeraTerm or HTerm...

> Also would someone care to explain how I would have access to this data
> as I'm pretty new to these things.
You will need some kind of HDL description (Verilog or VHDL) to decode 
the bitstream and do something with it.

> I have searched for some tutorials on this but couldnt find any.
Your searched the wrong way/words. There are plenty of RS232 
implementations on the internet...

: Edited by Moderator
von Roger S. (roger237)


Rate this post
useful
not useful
Lothar Miller wrote:
> Roger Swan wrote:
>> First of all, do you have any idea of any software I can use to
>> literally be sending a file to my board...
> Serach for "terminal software" and you will find things like Hyperterm
> (part of Windows) or RealTerm, TeraTerm or HTerm...
>

Does that mean that through the use of terminal software I would avoid 
the need of having to write a program of my own in order to be able to 
communicate with my board?

What would be the commands that I need to pass should i for example need 
to send an audio which is 1.3mb through com1 ?

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Roger Swan wrote:
> Does that mean that through the use of terminal software I would avoid
> the need of having to write a program of my own in order to be able to
> communicate with my board?
Yes.

> What would be the commands that I need to pass should i for example need
> to send an audio which is 1.3mb through com1 ?
No one sends encoded audio through a RS232 connection...
What should be the purpose this?
What the heck do you want to do at all?

: Edited by Moderator
von Roger S. (roger237)


Rate this post
useful
not useful
I would need to perform amplitude modulation on this data. (note data 
can be either audio or text)

You're saying that it cannot be done ?

von jonas biensack (Guest)


Rate this post
useful
not useful
>You're saying that it cannot be done ?

It can be done, but it makes no sense. You need to decode the audio in 
your own special format, transfer over RS232 (even for 2 channel audio 
16 bit @4400kHz it is to slow). Then you need to buffer on the fpga 
board (no realtime calc. because of slow rs232) which needs big ram 
resources on the fpga...

kind regards Jonas

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Roger Swan wrote:
> You're saying that it cannot be done ?
Of course it can. But it is senseless! Or let me say: I cannot see any 
sense. Maybe I don't see the purpose of the whole thing. Whats the 
output after processing the data?

> I would need to perform amplitude modulation on this data.
> (note data can be either audio or text)
You are speaking in riddles! AM on text?
Is it something like that:  xxxxXXXXxxxxXXXX?

> (note data can be either audio or text)
Audio is NOT mp3!
mp3 is a encoded data which contains audio information. But you cannot 
simply play it on a speaker.

von asdfg (Guest)


Rate this post
useful
not useful
Here is a good tutorial on RS232 communication using VHDL.

https://www.youtube.com/watch?v=fMmcSpgOtJ4

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.