I wanted to create create 3 UART connections with a Zynq Processor to take data from 3 different receivers. Is there any resources online?

6 views (last 30 days)
I am working with ADALM Pluto fitted with a Zynq processor and would like to process to transmit and receive data through the SDR. I want to use 3 receivers and gather their data simultaneously. Is there any MATLAB or Simulink resources that might benefit me in any way?
My main goal would be to create 3 different UART connections running at the same time.

Answers (1)

Ayush
Ayush on 5 Aug 2024
Hello Kazi,
To create 3 different UART connections simultaneously you can refer to the following documentation/resource specifically catered towards working with ADALM Pluto via a support package:
Additionally to setup 3 simultaneous UART connections you can use the "serialport" function in MATLAB and Instrument Control Toolbox that provides blocks for Simulink. Here is a example code for your reference on how to use the "serialport" function:
% Create serialport objects for each UART connection
uart1 = serialport("COM1", 9600);
uart2 = serialport("COM2", 9600);
uart3 = serialport("COM3", 9600);
% Write data to UART
write(uart1, data1, "uint8");
write(uart2, data2, "uint8");
write(uart3, data3, "uint8");
% Read data from UART
data1 = read(uart1, numBytes, "uint8");
data2 = read(uart2, numBytes, "uint8");
data3 = read(uart3, numBytes, "uint8");
For further reference on the "serialport" function as well as simulink blocks for UART communication, you can check out the links below:
Hoping these resources are helpful!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!