Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21021 Discussions

UART received characters not displaying in the serial monitor

Tex
New Contributor I
1,104 Views

hello,

i'm new to VHDL and FPGA i'm trying to implement UART receiver in serial monitor 

i tried few tutorials suggested by few members but not able to understand the code flow also it was not worked on board 

i'm using @10M50DAF484C6GES board

anyone please suggest me some easy tutorials or codes 

 

regards,

Tex

0 Kudos
1 Solution
ShengN_Intel
Employee
855 Views

Hi Tex,


Do you have any further update or concern?


Thanks,

Best Regards,

Sheng


View solution in original post

0 Kudos
7 Replies
ShengN_Intel
Employee
1,028 Views

Hi Tex,


Can you be more specific on what are the input and output (serial monitor)? Where are them connected to the Max 10 board?


Thanks,

Best Regards,

Sheng


0 Kudos
Tex
New Contributor I
1,024 Views
Hi sheng,
I'm using an FTDI for the serial port (tx, Rx and gnd)pins connected in max 10 board
I request any easy codes please..
After Arduino and msp430 this is my first time with VHDL and FPGA


Best regards,
Tex
0 Kudos
ShengN_Intel
Employee
1,001 Views

Hi Tex,


Or how about using UART RS232 IP in embedded Nios system check this design example link https://www.intel.com/content/www/us/en/design-example/715139/cyclone-v-uart-rs-232-maximum-baud-rate-reference-design.html

https://www.intel.com/content/dam/altera-www/global/en_US/uploads/6/64/MAX_BAUD_RATE_CYCLONE_V_SOC_DESIGN_EXAMPLE.pdf

This design contains Clock Source, UART RS232, Nios II Processor, OCRAM and jtag uart. You can choose to use one UART RS232 instead of two. The qsys system you can generate in VHDL if you want. I had successfully implemented this design before with bluetooth module in both Max 10 and Cyclone V. There'll be only 4 ports needed to be assign pin locations:

uart u0 (

    .clk_clk            (CLK_50),            //            clk.clk

    .reset_reset_n         (CPU_RESET),         //           reset.reset_n

    .uart_0_external_connection_rxd (RX0), // uart_0_external_connection.rxd

    .uart_0_external_connection_txd (TX0), //              .txd

I assign both uart_0_external_connection_rxd and uart_0_external_connection_txd to the Max 10 GPIO pins as UART RXD and UART TXD. Make sure UART RXD is connected to FTDI TXD and UART TXD is connected to FTDI RXD. Also, make sure the UART baud rate matching with the FTDI baud rate.

Then, you have to program the .sof file. After program the .sof file, you have to program the .elf file which is generated after building c code in Eclipse software. The c code is inside the design example software folder.


Thanks,

Best Regards,

Sheng


0 Kudos
Tex
New Contributor I
929 Views

hi sheng,

I can't able to find any program in the above link please kindly Hewpp me.. 

any easy one specifically in VHDL pleasee 

0 Kudos
ShengN_Intel
Employee
924 Views

Hi Tex,


In the link provided, you have to download the .par file. And then open the .par file with Quartus Tool.


Thanks,

Sheng


0 Kudos
ShengN_Intel
Employee
856 Views

Hi Tex,


Do you have any further update or concern?


Thanks,

Best Regards,

Sheng


0 Kudos
Tex
New Contributor I
841 Views

I understood few things in that thank you sheng

i have moved for an advanced task for myself

 

Best regards,

Tex

 

0 Kudos
Reply