Figure 5-1 Block diagram of RS-232 communication
Demonstration source code
•
Project Directory: \Demonstrations\DE2_115_ICB_RS232
•
Bit Stream Used: DE2_115_ICB_RS232.sof
PC terminal software
•
Software Directory: \Demonstrations\DE2_115_ICB_RS232\SW
•
Executable File : UartTerminal.exe
Demonstration batch file
•
Batch File Folder: \Demonstrations\DE2_115_ICB_RS232\demo_batch
•
Batch File: DE2_115_ICB_RS232.bat, test_bashrc
•
FPGA Configuration File: DE2_115_ICB_RS232.sof
Demonstration setup:
•
Assemble the ICB with the DE2-115.
•
Power on the DE2-115 board. The green LED (D40) near the HSMC connector will indicate a
valid connection.
•
Connect the DE2-115 to the PC using the USB-Blaster cable and then run the demo batch
DE2_115_ICB_RS232.bat under the \Demonstrations\ DE2_115_ICB_RS232\demo_ batch\
folder.
•
Connect the RS-232 port on the ICB to the PC using a DB9 female-to-female cross cable (Tx
and Rx lines are cross connected on two headers to form a peer-to-peer connection).
•
Run the UartTerminal.exe on the PC, and then select COM1 as the transceiver channel. The
software will initiate COM1 and display the success information as shown in
•
Input characters for transmission in the edit box and then press Transmit.
•
Press Receive for showing the received data.
26