?? example-11.txt
字號:
Example 11 : F243CAN3
Environment :
This Example was made for TI's EVM-board TMS320F243. For this partcular exercise we need an additional connector to the CAN-network and again the DIP-switches from example #3. To build a CAN-connector see into the manual for the EVM243-board. A CAN-analyzer is very helpful to supervise the traffic on the CAN.
Aim:
The program transmits a CAN-frame each time when the status of the DIP-switches on GPIO B0..B7 changes. It uses 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. The Identifier for the transmitted frame is 0x160. This program should be used together with the receiver program (see example #10) on a second F243-EVM-board.
Files:
The Example should be used as a project in Code-Composer, the Go-DSP-design tool. The project consists of these files :
f243can3.c -- C-source code for this example
vectors.asm -- jump table for Interrupt Service Routines
regs243.h -- pointer definitions to memory mapped perihperals
f243can3.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 11
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -