example-6.txt
来自「DSP TMS320 LF2407 or 243 经典 例程, from TI」· 文本 代码 · 共 37 行
TXT
37 行
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 + =
减小字号Ctrl + -
显示快捷键?