example-1.txt
来自「DSP TMS320 LF2407 or 243 经典 例程, from TI」· 文本 代码 · 共 33 行
TXT
33 行
Example 1 : F243LED
http://www.fh-zwickau.de/tutorial/dsp/DOCU/spru357.pdf
Hardware- Environment :
This example runs on TI's evaluation board EVM TMS320F243 with additional glue hardware connected to the external board connectors P1 to P4. In this example we use the general purpose IO's Port D0..D7. Each Pin of Port D is used as output, connected with a resistor R1 (1,5k) to the basis of an npn-general purpose transistor. The emitter of this npn is connected to ground, the collector to the cathode of a LED. The anode of the LED is connected with an resistor R2 (220 Ohm) to Vcc.
Aim:
The program generates a 'running light' on the 8 LED's connected to GPIO-D0...D7
Files:
Generate a new project inside Code Composer, the Go-DSP integrated design environment. The project consists of the following files, all files can be downloaded ( see zip-file )
LED243C.c -- C-source code for this example
vectors.asm -- jump vector table for Interrupt Service Routines
regs243.h -- pointer definitions to memory mapped perihperals
LED243C.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 1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?