Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

UART received characters not displaying in the serial monitor

Tex
New Contributor I
1,847 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
1,598 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,771 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,767 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,744 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
1,672 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
1,667 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
1,599 Views

Hi Tex,


Do you have any further update or concern?


Thanks,

Best Regards,

Sheng


0 Kudos
Tex
New Contributor I
1,584 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