Mubasher Khan Posted October 1, 2018 Share Posted October 1, 2018 I want to communicate two Basys MX3 using UART serial communication, but I have faced the problem is the sender has been transmitted the data, but the receiver did not retrieved the data from the that end.How we can fix it? Link to comment Share on other sites More sharing options...
jpeyron Posted October 1, 2018 Share Posted October 1, 2018 Hi @Mubasher Khan, Here is the Unit 4 Part 1: Communications - Serial Protocol for the Basys MX3. Here is the Basys MX3 resource center. Can you be more specific about your project i.e. what connector you are trying to use to send the uart communication? Can you attach a picture of your setup? Can you attach your code? thank you, Jon Link to comment Share on other sites More sharing options...
Mubasher Khan Posted October 1, 2018 Author Share Posted October 1, 2018 My project is to control the heterogeneous device/sensors data retrieve from multiples type of sensors are connected to one system and store somewhere in the memory and transmit that data from this board to another board (just like Master- Slave system) and My first task to communicate the boards with each other using Serial protocols (uart, spi and i2c). so I have work on uart using pin mode of basys Max3 board. I have done to transmit the data from a board through TX pin and Receive the Data Using RX pin on the same board, But I can not communicate the two Basys board Using Pin mode uart Module. The problem is generated on the receiver end. What will i do? Link to comment Share on other sites More sharing options...
jpeyron Posted October 1, 2018 Share Posted October 1, 2018 Hi @Mubasher Khan, So i can understand your setup more. Are you using U1RX and U1TX on JA8 and JA9 of both boards as show in the Appendix 3: Basys MX3 Pinout on page 53 here? Have you scoped the output? Are you using MPLABx or Arduino IDE with the Digilent Core? thank you, Jon Link to comment Share on other sites More sharing options...
Mubasher Khan Posted October 1, 2018 Author Share Posted October 1, 2018 In manual, topic of UART define PortB (2 and 3 ) pins used for TX and RX on basys board. I am using the MPLAB IDE. Link to comment Share on other sites More sharing options...
jpeyron Posted October 1, 2018 Share Posted October 1, 2018 Hi @Mubasher Khan, Have you used an oscilloscope on JB2 to see if the data being transmitted through the TX pin is correct? Have you double checked you have the TX connected to the RX of the other Basys MX3. Does your MPLABx project work for either Basys MX3 board or do you have a different project for each board? Are you able to attach your MPBLABx code? thank you, Jon Link to comment Share on other sites More sharing options...
jpeyron Posted October 2, 2018 Share Posted October 2, 2018 Hi @Mubasher Khan, Here is Unit 4 Part 2: Communications - Asynchronous Serial Protocols which is specifically for uart with an example code at the bottom in Appendix B: Lab 4a and 4b UART Functions that should be helpful if you are still having issues getting the uart working. thank you, Jon Link to comment Share on other sites More sharing options...
Cristian.Fatu Posted October 3, 2018 Share Posted October 3, 2018 Hello, In the resource center we provide a library pack: https://reference.digilentinc.com/reference/microprocessor/basys-mx3/basys-mx3-library, to be used with MPLAB X. It provides two modules for UART, located in the corresponding .c source files: uart.c provides UART functions to be used with USB - UART interface. uart_jb.c provides UART functions to be used over pins from PMOD JB connector. We also provide an UART demo. Please take a look, maybe use the library or at least use the code as an inspiration (UART initialization steps from UART_Init functions, for example). Link to comment Share on other sites More sharing options...
Question
Mubasher Khan
I want to communicate two Basys MX3 using UART serial communication, but I have faced the problem is the sender has been transmitted the data, but the receiver did not retrieved the data from the that end.How we can fix it?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.