FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2006, 10:48 AM
Smith
Guest
 
Posts: n/a
Default Using Hyper Terminal to send& capture data

Hi all
Thanks advance for the help given to me. Hopefully you all can help me
in the trouble I face which I had tried many times, but still fail.

I am using the Hyper Terminal to send and capture the data to the UART
module. The UART module has been downloaded to the Xilinx Spartan 3
FPGA, and the DB9 connector on the Spartan 3 prototyping board is
connected to the DB9 connector in the computer.

I tried to feed the module with the data of 01010101 by typing it on
the screen of the Hyper Terminal program. However, it doesnot show
anything on the screen. Is that the way I did to feed the data to the
UART module wrong? Can someone tell me the right way to feed the UART
with data by using the Hyper Terminal? How about the way to capture the
data comes from the UART module?Can it be the process of sending and
receiving the data going on simultaneously?

Besides, am i need to tune the freqeuncy on the Spartan 3 prototyping
board to match the frequecy of the clock signal used for the UART
module?

Thanks advance

Best regards,
Smith

Reply With Quote
  #2 (permalink)  
Old 06-30-2006, 05:39 PM
Mark Norton
Guest
 
Posts: n/a
Default Re: Using Hyper Terminal to send& capture data

Smith wrote:
> Hi all
> Thanks advance for the help given to me. Hopefully you all can help me
> in the trouble I face which I had tried many times, but still fail.
>
> I am using the Hyper Terminal to send and capture the data to the UART
> module. The UART module has been downloaded to the Xilinx Spartan 3
> FPGA, and the DB9 connector on the Spartan 3 prototyping board is
> connected to the DB9 connector in the computer.
>
> I tried to feed the module with the data of 01010101 by typing it on
> the screen of the Hyper Terminal program. However, it doesnot show
> anything on the screen. Is that the way I did to feed the data to the
> UART module wrong? Can someone tell me the right way to feed the UART
> with data by using the Hyper Terminal? How about the way to capture the
> data comes from the UART module?Can it be the process of sending and
> receiving the data going on simultaneously?


RX and TX happen simultaneously. Try making sure you have a loopback
echo in your FPGA (i.e. as soon as a character is received by your RX
portion of the UART, put it into the TX queue to be transmitted back).
If you have the loopback in, then you'll know when you are communicating.

Depending on what you used for your UART, you ought to know what baud
rate it supports, and internal to the UART you are probably creating a
baud clock from the main clock source with a divider. So you should
know what baud rate to set your terminal to.

Hope this helps.

Mark Norton

--
==============================
Mark Norton <[email protected]>
Concept Development, Inc.
Irvine, CA, USA
Reply With Quote
  #3 (permalink)  
Old 07-01-2006, 10:13 AM
Guest
 
Posts: n/a
Default Re: Using Hyper Terminal to send& capture data

Hi Smith,

If the Hyper terminal you are talking about is the one of the Windows
XP, actually what all u are typing is being sent on the serial port
definetely, what u type wont be seen on the hyper terminal screen, only
the data received from the serial port wud be visible, also do check
that you had made correct settings for the Baud rate and the frame
combination.

regards
bipin
Smith wrote:
> Hi all
> Thanks advance for the help given to me. Hopefully you all can help me
> in the trouble I face which I had tried many times, but still fail.
>
> I am using the Hyper Terminal to send and capture the data to the UART
> module. The UART module has been downloaded to the Xilinx Spartan 3
> FPGA, and the DB9 connector on the Spartan 3 prototyping board is
> connected to the DB9 connector in the computer.
>
> I tried to feed the module with the data of 01010101 by typing it on
> the screen of the Hyper Terminal program. However, it doesnot show
> anything on the screen. Is that the way I did to feed the data to the
> UART module wrong? Can someone tell me the right way to feed the UART
> with data by using the Hyper Terminal? How about the way to capture the
> data comes from the UART module?Can it be the process of sending and
> receiving the data going on simultaneously?
>
> Besides, am i need to tune the freqeuncy on the Spartan 3 prototyping
> board to match the frequecy of the clock signal used for the UART
> module?
>
> Thanks advance
>
> Best regards,
> Smith


Reply With Quote
  #4 (permalink)  
Old 07-03-2006, 12:42 PM
Martin Thompson
Guest
 
Posts: n/a
Default Re: Using Hyper Terminal to send& capture data

"Smith" <[email protected]> writes:

> Hi all
> Thanks advance for the help given to me. Hopefully you all can help me
> in the trouble I face which I had tried many times, but still fail.
>
> I am using the Hyper Terminal


I wouldn't do that - I've had Hyperterminal lie to me too many times -
dropped characters and the like. Of course that may be because there
are bugfixes which no-one ever applies to the Windows install :-)

Use a proper terminal program (like TeraTerm for example)

> I tried to feed the module with the data of 01010101 by typing it on
> the screen of the Hyper Terminal program. However, it doesnot show
> anything on the screen. Is that the way I did to feed the data to the
> UART module wrong? Can someone tell me the right way to feed the UART
> with data by using the Hyper Terminal? How about the way to capture the
> data comes from the UART module?Can it be the process of sending and
> receiving the data going on simultaneously?
>


Are you typing 10101010 as characters into the hyperterm window?
That'll send 8 bytes of data.

0x55 is a '-' in ASCII, so that's the char you need.

Apologies if I've misinterpreted what yo're doing!

Anyway, Hyperterminal won't show you what it sends unless you
configure it to. What is the FPGA doing with this data at the other
end? Should it be sending it back again?

> Besides, am i need to tune the freqeuncy on the Spartan 3 prototyping
> board to match the frequecy of the clock signal used for the UART
> module?
>


You need to make sure the baud rate divider is setup correctly.
Cheers,
Martin

--
[email protected]
TRW Conekt - Consultancy in Engineering, Knowledge and Technology
http://www.trw.com/conekt

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clocking data in verilog Paul Chapman Verilog 2 03-01-2006 09:34 PM
formatted data leaf Verilog 3 02-07-2006 01:54 AM
Please help with bidirectional data bus code.......... Agreychu Verilog 7 02-22-2005 11:32 PM
Bit-Stuffing on parallel 8 bit data kumar Verilog 7 02-17-2004 08:54 AM
PLI: manipulating reg data through VPI Girish Venkataramani Verilog 4 11-17-2003 11:09 PM


All times are GMT +1. The time now is 05:16 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved