I want to make RS232 serial interface of fpga with pc. i need a vhdl code for this. also i want to know how to assign the pins in the fpga for this? I am using xillinx spartan 3 kit.
I want to make RS232 serial interface of fpga with pc. i need a vhdl code for this. also i want to know how to assign the pins in the fpga for this? I am using xillinx spartan 3 kit.
Hi priteshkukadia,
here is the sample reference code for serial communication with fpga.
**broken link removed**
- - - Updated - - -
What is your clock frequency? You can transfer data at different baud rate. I assume you supplied with 50 Mhz clock. Then you need to divide the clock to 9600 baud rate .
formula to calculate counter value.input frequency(50 MHz) / Baud Rate(9600) = counter value(5208)
In serial Communication, first you need to transfer start bit then transfer data bits and finally stop bit. For every bit transfer at the delay of counter value(5208).]
Fpga Interface, You need to use TX/RX pin from UART and also Clock pin.