📄 example-6.txt
字号:
TMS320F243 DSP - Laboratory
Example 6 : F243PWM
Environment :
This Example was made for TI's EVM-board TMS320F243. For this particular exercise we do not need any additional hardware. All you need is a digital storage oscilloscope to verify the pulse width modulation outputs.
Aim:
The program generates a pulse width modulation signal at Pin T1PWM (Pin 130) od the DSP. It uses general purpose timer GPT1 in non-symmetric mode ( counting up). The output polarity of GPT1 is low. The program uses the T1-Compare-Interrupt Service Routine to change the length of the duty-cycle 'on the fly' .
Files:
The Example should be used as a project in Code-Composer, the Go-DSP-design tool. The project consists of these files :
pwm04.c -- C-source code for this example
vectors.asm -- jump table for Interrupt Service Routines
regs243.h -- pointer definitions to memory mapped perihperals
pwm01.cmd -- memory map definition file for the linker
init243.gel -- Code Composer Setup file ( GO-DSP extension language )
rts2xx.lib -- runtime library file (part of TI's compiler/assembler)
wait.asm -- small collection of supplemental assembler functions
Download (all files zipped): Example 6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -