Forum Discussion
Altera_Forum
Honored Contributor
16 years agoRS232 on DE2 board sample code
Hi, I am looking for some sample VHDL code (without using an embedded processor like Nios) to implement serial communications on the DE2 board. I need to send data from the board to the PC. The...
Altera_Forum
Honored Contributor
16 years agoI recommend reading up on the RS232 protocol spec first. I guess these days we all get a bit lazy relying on hardware and software UARTs to do all the tranmission for us, but it isn't hard to develop your own RS232 UART :)
Depending on how you want to send and receive data using your FPGA, you can implement a simple design which uses a memory buffer to store and manipulate incoming data. Outgoing data can be loaded into a buffer and transmitted using the correct digital signal transitions. I guess first off: - What are the requirements of your application? - How are you going to get data into the VHDL-based UART ie. from external device, from soft-core processor etc - What are your transmission requirements ie. baud-rate, parity etc