Transcript 下載/瀏覽
Presentation: GENERATING PWM PULSE BY USING EZDSP2812 Professor: Chen, Pei-Chung 陳沛仲 Student: Nguyen Thanh Nhan 阮誠仁 2008,November, 27th 1 1. Steps to work with CCS 2. Program and Result 2 Open project Add header files Add source files Add command files Compile the program Compile the program Create data files Create the probe point Run the program Load/Reload program Fig 1. The procedure to work with CCS 3 Open the menu project ->Build Options Select the Compiler tab Select pre-processor In the Include Search Path then add the directory path to the location of project. Fig 2. The steps to add the includes files to the project’s directory 4 Open the menu: Project>Build Options Select the Linker tab and then Select Basic In the Library Search Path, add the directory path to the location of project. Fig 3. The steps to add the command files to the project’s directory 5 Add data file Add probe point Fig 4. Add the data file 6 The steps to work with this example to show as follows: The program “Example_281xEvPwm.c” Select File -> Load Gel ( General Extension Language File) -> Open the Example_281xEvPwm.gel From the Gel Tab -> Load and build project -> This will load the project and build compile the project From the Gel Tab -> Load code -> This will load the .out file into the 28x device, populate the watch window with variables of interest, reset the part and execute code to the start of the main function. Use probe point to create and watch the output signal with Eyes Diagram Use the osciloscope to check the output signal at the PWM pins 7 All the header files All the source files All the command files Fig 5. The window to show all related files to the project 8 Fig 6. The figure to show the output with probe point and Eyes diagram 9 Thank you very much for your listening! 10