Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Xilinx Employee
chapman
Posts: 411
Registered: ‎09-05-2007
0

Re: UART Problem

Ok, this is what I would do….

 

Configure the Starter Kit with one of the designs provided on the web site. Each comes with a BIT file and even a batch file to load it quickly.

 

Set up HyperTerminal exactly as described in the documentation for the reference design and see that everything works as expected. If it doesn’t then start checking or cables and PC for something strange.

 

If that works then set up the terminal you are using and check that the same reference design results in the correct values. All designs output an introduction message when configuration completes so you should see that each time you configure the device. If that doesn’t work then your terminal settings must be wrong.

 

If all that works then it must be the way you have set up your own design.

 

Try setting your design to keep transmitting 'A' (41 Hex) and see if that shows in Hypter Terminal.

 

 

 

  
Ken Chapman
Principal Engineer, Xilinx UK
Regular Visitor
caratamity
Posts: 11
Registered: ‎08-10-2009
0

Re: UART Problem

I have used the reference design and succussfully communicated via hyper terminal.

I have also tested my own design connections by using Hyper Terminal. It works  fine if I convert the Hexadecimal number ot ASCII characters and display it via Hyper Terminal. But, if I send Hex number directly to Hyper Terminal, It doesn't show the correct value.  It means Hyper Terminal only accepts ASCII characters, and my design connections are correct. Am I right?

 

But, I want to send Hexadecimal value directly without ASCII conversion. But, when I send Hexadecimal number directly my software (Docklight) shows FF for every value I send. How can I send Hex number directly out of UART? 

Expert Contributor
bassman59
Posts: 4,653
Registered: ‎02-25-2008
0

Re: UART Problem


caratamity wrote:

I have used the reference design and succussfully communicated via hyper terminal.

I have also tested my own design connections by using Hyper Terminal. It works  fine if I convert the Hexadecimal number ot ASCII characters and display it via Hyper Terminal. But, if I send Hex number directly to Hyper Terminal, It doesn't show the correct value.  It means Hyper Terminal only accepts ASCII characters, and my design connections are correct. Am I right?

 

But, I want to send Hexadecimal value directly without ASCII conversion. But, when I send Hexadecimal number directly my software (Docklight) shows FF for every value I send. How can I send Hex number directly out of UART? 


Simply load the serial port outgoing register with a byte, and it will send that byte. The byte, of course, is represented by a hex value between 0x00 and 0xFF. If your software can display the raw hex value of data coming over the wire, then it should work without any issues. Hyperterminal of course only knows how to display ASCII which is why it's not useful here.


----------------------------------------------------------------
Yes, I do this for a living.
Regular Visitor
caratamity
Posts: 11
Registered: ‎08-10-2009
0

Re: UART Problem

Thank you both of you. I have solved my problem. Chapman proposed excellent solution. Actually, my terminal was operating at 9600 and I was using different baud rate. Because with Hyperterminal you can select the matching baud rate. So, I was able to communicate correctly with Hyperterminal and then I figured out the actual baud rate of my software which was 9600 and when I changed my baud rate in VHDL to 9600 it is working fine.

 

Thank you all.

Visitor
alperen1984
Posts: 2
Registered: ‎05-22-2012
0

Re: UART Problem

hi,

ı have read the conversation about uart problem. ı need to get the reference guide about hyperterminal (or what ever). ı could not exaactly understood the with and where the manual you mainteioned. ı have a similar problem with spartan 3 an starter kit. my uart works using simulation but on board practice the data ı send through the serial prot is not the sme as ı read from leds (also form the chipscope ı read a different data serial ). also another problem ı get is; the chip scope warn me as: slow or stopped clock (at the upper part of  the waveform window)

Xilinx Employee
chapman
Posts: 411
Registered: ‎09-05-2007
0

Re: UART Problem

 

Reference designs for the Spartan-3AN Starter Kit are located here...

 

http://www.xilinx.com/products/boards/s3astarter/reference_designs.htm

 

For each design there is a link to a PDF document and a ZIP file. The design called ‘XC3S700AN Plash Programmer’ would be a suitable one for you to test your RS232 communication and terminal set up.

 

Note also that the original PicoBlaze packages that you download from the PicoBlaze Lounge contain UART documentation and a simple reference design (but not for the exact hardware you are using).

Ken Chapman
Principal Engineer, Xilinx UK