example-7.txt
来自「DSP TMS320 LF2407 or 243 经典 例程, from TI」· 文本 代码 · 共 35 行
TXT
35 行
TMS320F243 DSP - Laboratory
Example 7 : F243SCI
Environment :
This Example was made for TI's EVM-board TMS320F243. For this particular exercise we need a serial connection to a PC's serial port COM1 or COM2. It is sufficient to cross RxD and TxD. We will use the Windows95/98 - hyperlink command to communicate with the DSP.
Aim:
The DSP-program is sending a string via serial link to W95-Hyperterminal. The baudrate is 9600, 8bit, no parity, 1 stopbit, no protocol. Please start the hyperterminal-session before you start the DSP-program. The DSP then sends the string "F243 UART is fine" in an endless loop. In the hyperterminal-window you should see the incoming strings. The DSP-program uses the SCI-transmit-Interrupt to transmit all characters of the string. After reaching the end of the string the program repeats the string again and again.
Files:
The Example should be used as a project in Code-Composer, the Go-DSP-design tool. The project consists of these files :
F243sci.c -- C-source code for this example
vectors.asm -- jump table for Interrupt Service Routines
regs243.h -- pointer definitions to memory mapped perihperals
F243sci.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 7
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?