This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C123GH6PM: interface TivaC/PC/MATLAB

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: ENERGIA

Tool/software: Code Composer Studio

Hi,

I am quite new to MCU and would like to use MCU as a DSP unit. My expertise is on Wireless communication systems and hdl implementation, however, I would like to implement and test different DSP algorithms on an MCU (TM4C123G) rather matlab or verilog.

The common approach I used to verify my hdl/verilog codes, was to implement a DSP block in verilog and test it using the input samples that I had generated with matlab and saved in a local file. Then I saved the output of the hdl DSP block in a file which later I loaded in matlab and analyzed/visualized for verification of the block.

I would like to do a similar thing with my MCU too, however, I don't know how to transfer data between PC and MCU. Is there a way I could store input data in the MCU internal memory, do processing in MCU and save the output in a file? 

I would appreciate it if you could point advise me how should I proceed with this. any hint/tutorial is greatly appreciated.

Many thanks   

  • Hello Mehdi,

    The TM4C family of MCU's are not really intended to be Digital Signal Processors. They are more general purposes Coxtex M4 ARM microcontrollers. You may not have the processing power to do what you want with TM4C.

    As far as support for what you want to do, you would need to see if Mathworks has all those hooks implemented.

    Here is a prior thread where our Mathworks community member explained some of the offering: e2e.ti.com/.../2815833

    Perhaps  can offer more insight.

  • Hi Ralph & Mehdi,

    The info in the thread linked by Ralph is still current. Using the MathWorks Energia support package is the easiest way to program the TM4C123G; but I will note that we only have support for a basic set of peripherals. 

    You can also Energia to directly program a TM4C LaunchPad; and depending on your project, that may be sufficient and easier then using MathWorks tools or CCS.

    Cheers,

    -Brian