Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RS232 VHDL code for Spartan-3E

Status
Not open for further replies.

frid4y

Newbie level 2
Joined
Jul 11, 2008
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
rs232 vhdl

I have a Xilinx Spartan-3E and what i want to do is this:

Press a button ex. East Button on the board and send a signal eg. "00101100" to a device on the other end of Spartans RS232 port.

Like when i press the button and the leds are on i want to send this signal over the serial port lets say to a PC on the other end.

The only thing i have done is to send a character via hyperterminal to the board and return me another character. but when i try to use the board as the master i get stuck.

As you might think i am new to this area. Thanks.
 

vhdl rs232

Here is one possible approach to the project. Each time the button is pressed, you can load a shift register with the desired serial bit pattern, including the start and stop bits. The clock shifts the register out to the serial port. Of course you also need a baud rate counter that controls the shift rate. You may also need to debounce the pushbutton. That's just one general approach.
 
rs232 spartan 3e

I was thinking of writing a Wishbone Master interface so that it is triggered every time i press a button on the board and will send the data associated to that button. Just by sending the data as you proposed it is not always sure if the data will be sent if the channel is busy.
The thing is that i am trying to write the VHDL code without having much experience on that field.

--- Update begins ---
I finally did it! I used the Wishbone interface to send and receive data from the FPGA to the PC and tomorrow i will try to drive a robotic arm using the signals i send via the serial port from the FPGA to the robotic arm. Hope it works.
--- Update ends ---
 

spartan 3e rs232

hey can you give me the code? I am looking at using an RS 232 too and am having a few probs
 

Can I get this code as well? I'm trying to send data over the rs232 com port.

Thanks a bunch.
 

you can find the code int the pong's book. Here is the nme of book
FPGA prototyping by VHDL examples: Xilinx Spartan-3 version
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top