⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example-12.txt

📁 DSP TMS320 LF2407 or 243 经典 例程, from TI
💻 TXT
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -