Serial communication with DSP F28377s
Show older comments
Hi all;
I want to ask three questions; the first question is: is the serial communication between PC and F28377s requires RS 232 cable or not. The second question: i want to communicate serially between PC and f28377s, what are the blocks and their libraries used in the target side and host side. The host PC side contains sine wave generator which is required to be sent to f28377s for processing and then returned back to PC. The target side contains gain which is required to be burnt on F28377s. Briefly i want to send sine wave from MATLAB simulink to F38377s to be gained and then returned back to PC to be read in scope in matlab. The third question is: the boot switches in f28377s which are located on its board, what are their functions in this application.
Answers (1)
Walter Roberson
on 20 May 2020
1 vote
is the serial communication between PC and F28377s requires RS 232 cable or not.
No. The F28377s has a USB port, so you would use a USB cable, and would use a Virtual Serial Port driver to communicate using the Serial Over USB protocol. https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/set-up-the-hardware-target.html
i want to communicate serially between PC and f28377s, what are the blocks and their libraries used in the target side and host side
If necessary, use bytepack() to put together a series of signals that are not all the same data type.
Once you have a stream that is all the same data type, you use SCI transmit: https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ref/c28xscitransmit.html and SCI receive https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ref/c28xscitransmit.html
4 Comments
beshoy abdou
on 21 May 2020
Walter Roberson
on 21 May 2020
Hmmm, there is https://www.mathworks.com/help/instrument/serial-port-interface.html via Instrument Control Toolbox. Seems a bit heavy-weight since serial is so common.
See also https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/external-mode.html but I don't think it is directly relevant; likewise https://www.mathworks.com/help/rtw/ug/creating-a-tcp-ip-transport-layer-for-external-communication.html is probably not exactly what you are looking for. (Both of those use serial to communicate with the device, but not for the same purpose you have.)
Mohammad Tauquir Iqbal
on 23 Jun 2020
how to change parametr in external mode in new matlab .
Walter Roberson
on 23 Jun 2020
That question does not appear to be relevant here, Mohammad.
Categories
Find more on C2000 Microcontroller Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!