Altera_Forum
Honored Contributor
12 years agoUART (RS-232) problems with the use of Altera DE1 and FTDI UM232R
Hello.
I have a problem with UART (RS-232) on Altera DE1 development kit and FTDI UM232R module. Main task is data transfer between Altera DE1 and PC through FTDI UM232R module. It is only prototyping, because my target device use FTDI ft232r chip (like chip on FTDI UM232R module). My project don't work and i don't know - what problem i have and why. In attachment scheme of connecting Altera DE1 and FTDI UM232R (General_Scheme.jpg). I use ready UART (RS-232) Verilog module from this site http://www.fpga4fun.com/serialinterface.html , but I changed only two things: 1) (in module async_transmitter)parameter ClkFrequency = 24000000; // 24MHz // Changed from default 25MHz 2)(in module async_receiver) parameter ClkFrequency = 24000000; // 24MHz // Changed from default 25MHz in default code, for my 24MHz clock on Altera DE1. Changed files of this code in attachement (async_changed.zip). On the following screenshot - top level *.bdf file of my project (top_level_in_schematic_screenshot.jpg). I can't find Hyper Terminal client on Microsoft Windows 7 and for this reason I find free Terminal v1.9.b program and use it (for work with virtual FTDI COM port, which appear after installing FTDI VCP driver). Terminal v1.9.b program in attachment (Terminal v1.9b.zip). In attachment qartus archive file with my project for altera de1 - simple project for transmit and receive bytes between altera de1 and pc through FTDI UM232R module with using Terminal v1.9.b program (um232r_transmitter_and_receiver_with_altera_de1.qar). Receive bytes from PC and displaying on green LED's on de1 (LEDG[7..0]). And transmit bytes from toggle switches (SW[7..0]) on de1 to PC (displaying on red LED's (LEDR[7..0])) if we push KEY[0]. I know about button bouncing, but it not important at the currently moment. Sorry if i ask stupid question, but i really don't know solving of this problem. PS. When I connect USB cable from PC to FTDI UM232R - in Terminal v1.9.b appear new COM port. I connect to this port, but my project don't work (i can't see bytes from altera de1 on Terminal v1.9.b, and bytes on altera de1 from this program). Connection between altera de1 and ftdi um232r is good, i checked with tester.