EVM5509A Evm_App Example
The EVM_App example digitally processes audio data from the line input on the AIC23 codec and plays the result on the headphone and line output. It uses the McBSP and EDMA to efficiently handle the data transfer without intervention from the DSP. The example resides in:
c:\ti\boards\evm5509a\examples\evm_app
The DMA driven audio implemented by the audio example is highly optimized and representative of what might be used in production code. It is a good base to use for your own audio code.
The functions are independently controlled so you can, for example, blink LED #0 and add the dummy load at the same time
Follow these instructions to load and run the Evm_App example.
Close and projects you were working with previously by selecting Project -> Close. You should also close any open files you have open in your workspace avoid confusion. Click on the X in the upper right hand corner of their windows to close them.
Plug a pair of headphones or speakers into the EVM5509A’s headphone jack. Also connect an audio source like a CD player to the line input of the EVM5509A using a standard 1/8" male to male audio cable.
Open the evm_app.pjt Code Composer project using Project -> Open and selecting evm_app.pjt. It is in the directory
c:\ti\boards\evm5509a\examples\evm_app
Enable RTDX by selecting Tools -> RTDX -> Configuration Control and checking the Enable RTDX checkbox. RDTX is a communication protocol that allows your program to communicate with Code Composer through the JTAG emulation connection. The settings should be set for non-continuous mode with a buffer size of 1024. You can close this window by right clicking on the gray window area and selecting close. For more information about RTDX please see the RTDX section in the main Code Composer help.
Enable the CPU load plugin by selecting DSP/BIOS -> CPU Load Graph. The load graph will appear at the bottom of your Code Composer window. You can make it a movable window by right-clicking on it and selecting Float In Main Window.
Load the evm_app.out executable file. Select File -> Load Program. It will open a file browser dialog. Select the evm_app.out file in the evm_app\Debug directory in the file browser and hit "Open" to load the executable file.
Select the Debug -> Run option under the Debug menu. You will hear your audio source playing through the EVM5509A on the headphone output. Adjust the volume of your audio source until you get to a comfortable listening level.
You will see LEDs #2 and #3 blinking. They toggle every time a ping or pong buffer is received. You will also see a display on the CPU load graph indicating what percentage of the total cycles are spent doing real work. It should be well under 10%.
When you are satisfied that the program is indeed running correctly, stop the program by selecting Debug -> Halt.
|