writing UART TX


bnusbick

Recommended Posts

Hi Jack,

 

I am trying unsuccessfully to run Hamster's cheapscope project.  I see no activity.  In an attempt to simplify things, I first wanted to see if I could just send something out the serial port.  Looking at the generic Papilio One constraint file, I would think I should send on TX, which maps to P88, but ISE won't generate the code when I do that (and also P88 has a pullup, which would indicate that it should be an input).  Should I actually be mapping UART TX to RX in the generic constraint file, which is P90?  When I created a simple program in DesignLabs with ZPuino transmitting out the serial port, I saw the RX LED blink at the same rate I was sending out messages.  However, when I sent out a 1 KHz waveform to P90 in straight VHDL, I didn't see the RX LED blink.  When I mapped the 1 KHz waveform to P86, I did see the waveform on an oscilloscope.

 

Regards,

Blake

Link to comment
Share on other sites

Hello Blake,

 

With the conventional naming convention for serial ports it can get confusing as to which pin to use... It is not always clear what perspective is being used, is RX from the perspective of the FPGA or from the perspective of the computer?

 

In the Papilio One hardware guide I try to make it as clear as possible:

http://papilio.cc/index.php?n=Papilio.PapilioOne#Section3

 

It looks like P90 is what you want to use for transmitting. The RX LED is driven by the FTDI USB chip and is not directly connected to P90, so I'm not surprised that putting a 1Khz waveform does not cause it to blink, it probably only blinks when valid serial data put into the USB chip.

 

Hope that helps,

Jack. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.