example-12.txt
来自「DSP TMS320 LF2407 or 243 经典 例程, from TI」· 文本 代码 · 共 35 行
TXT
35 行
TMS320F243 DSP - Laboratory
Example 12 : F243CAN
Environment :
This Example was made for TI's EVM-board TMS320F243. For this partcular exercise we need an additional connector to the CAN-network. To prepare a CAN-connector see into the manual for the EVM243-board. A CAN-analyzer is very helpful to supervise the traffic on the CAN-bus.
Aim:
The program causes an endless transmission of a CAN-data-frame with standard identifier 0x150 with a repetition rate of approximately 1 millisecond. This gives a busload of 65%. The content of the data frame is fixed to a two byte message 0x33AA. We use a standard-CAN-frame with a data rate of 100 kBaud to match the CAN of the Laboratory in Zwickau. The algoritm uses mailbox #5 as the transmit mailbox and a polling method.
Files:
The Example should be used as a project in Code-Composer, the Go-DSP-design tool. The project consists of these files :
f243can.c -- C-source code for this example
vectors.asm -- jump table for Interrupt Service Routines
regs243.h -- pointer definitions to memory mapped perihperals
f243can.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 12
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?