Forum Discussion

Alen1214's avatar
Alen1214
Icon for New Contributor rankNew Contributor
3 years ago
Solved

De10 standard connects to esp8266 via uart communication by IP uart (rs-232 serial port)

Hi, I need to communicate between de10 and esp8266 to send data to the cloud, but first I need to connect these 2 kits base on project GHRD. I see they can connect with each other by IP uart rs232 and I can do the steps:

build qsys => modify file top.v =>run quartus=>generate file hex.

And now i need code use hps control it send data, example send "abcde" to tx port with baund rate 9600 or 115200. But i don't know how to do it ?. So I really need your help. I attached 3 pictures I made.Thank you very much.

QSYSadd external port for uart rs232file hex contain rs232_0_base

  • Hi Allen


    Do you have a scope available to measure the signals coming out from the pins?

    Do you have the specification for the USB transceiver that you are using? What operating signal logic it is able to capture?

    The signals coming out from the GPIO are 3.3Vs.


    Regards

    Jingyang, Teh


23 Replies

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Alen


    Did you manage to get the waveform for the uart baud rate?


    Regards

    Jingyang, Teh



  • Alen1214's avatar
    Alen1214
    Icon for New Contributor rankNew Contributor

    Hi Jingyang, Teh

    I send you some waveforms corresponding to some cases.

    1. configure set fixed baudrate 9600 in qsys:

    waveform correct with data "57" but baudrate is not correct (a)waveform correct with data "57" but baudrate is not correct (b)
    2. uncheck set fixed baudrate in qsys:

    when i set clock = 50M and divisor = 7400 then it correct all.

    waveform when i set divisor = 7400

    I hope with the information I provided you can find the source of the error.

    Regards

    Alen (Phan Quang Ky)

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Allen


    Thank you so much for the waveform!

    I will be checking with the engineering team on this.

    I notice that the Quartus version that you are using is quite old.

    There could be a possible chance that this have been fix in the newer version of the Quartus.

    I tried out recently using the Quartus 22.1 and able to send and receive serial successfully.


    Since this thread been resolve, I shall set this thread to close pending. If you still need further assistance, you are welcome reopen this thread within 20days or open a new thread, some one will be right with you. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


    If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 10 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.



    Regards

    Jingyang, Teh