McASP receiver and transmitter (for HDL Coder)

Texas Instruments multi-channel serial port protocol used by many DSPs. Can be used for high throughput link between FPGA and DSP.
68 Downloads
Updated 5 Dec 2019

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

Fixed typo

1.0.0