You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
When using an FPGA as data preprocessor for a digital signal processor, one needs to establish a high-bandwidth link between the two chips. Many modern Texas Instruments DSPs use a protocol called "McASP" (multi-channel audio serial port). Despite its name, it can be used for any kind of data, not just audio.
This library provides blocks for sending and receiving data to and from a TI DSP and is made for HDL code generation with HDL Coder.
To learn how the blocks are used, see the example model, it shows continouus data streaming with 16 bit words (check the logic analyzer). Of course, it's also possible to use 8 bit or 32 bit words by configuring the block parameters.
A C-Code excerpt showing the configuration values for the different McASP registers on a 66AK2G12 DSP is also provided. If you are using a different DSP chip, the register names might still be the same and you can use this code as guidance.
Cite As
Felix Schneider (2026). McASP receiver and transmitter (for HDL Coder) (https://www.mathworks.com/matlabcentral/fileexchange/73571-mcasp-receiver-and-transmitter-for-hdl-coder), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (60.3 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
