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:
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
I have transferred data from de10 out of uart pin successfully. But the data retransmitted was wrong when I could transmit the data string data "PLEASE" received as "Ó", received "1234" as "Ê". The device I use to receive is a UArt to usb module (CP2102).
I do the following step by step:
1. Connect hardware:
Connect hardware (1)Connect hardware (2)data received from CP2102 displayed on hercules terminal
Hope you are doing well, need your help with the following issue!
Description:
What i am trying to test out receiving and transmitting with the code i have made the qsys design programmed it wrote the c code, etc. everything works fine as soon as i change the main() to take the data i.e., RX and copy it to char array of TX to write it back on the screen in this case putty it doesn't work idk why. Can you please help me this! Thank you very much!
Also, I think this problem may be caused by asynchronous transfer speed (baundrate) of the two devices or another error? But I don't know how to fit it. please help me to fix this error of wrong data transmission.
Sorry i had a important update with all image. You will follow new image i update and I don't know why my code is like this but esp8266 doesn't receive data? You help me check it. Thank you very much for your help.
QSYSadd external port for uart rs232 serial portcode rx for esp8266 (1)code rx for esp8266 (2)file hex contain UART_0_BASEcode tx for de10 (1)code tx for de10(2)code tx for de10 (3)
For the baud rate settings, you do not need to write to the divisor register as you have selected "Fixed Baudrate" in the IP Configuration.
Writing to the divisor register as no effect.
Gone through the code that you shared, it looks fine with all the condition checking before sending.
One thing I can think of is the stop bit settings. The tool that you are using to write and read from the UART does not have a settings to set the Stop bits.
Could you try with another tool such as Putty? In putty there is a Stop bits settings, with that set the Stop bit to 1 same as the IP configuration.
Tomorrow, I will try with configure some parameters : not "fixed baud rate" or "baud =9600". sometime, I think With clock 50M and baud 115200 maybe make larger speed error.