STM32-CAN
所属分类:处理器开发
开发工具:C/C++
文件大小:271KB
下载次数:365
上传日期:2009-04-02 09:38:31
上 传 者:
appleqin
说明: 基于STM32 处理器的CAN总线通信协议源代码
(Based on the STM32 processor CAN bus communication protocol source code)
文件列表:
obj\CAN.axf (94532, 2007-09-05)
obj\CAN.htm (57959, 2007-09-05)
obj\CAN.lnp (492, 2007-09-05)
obj\CAN.plg (176, 2007-09-06)
obj\CAN.sct (463, 2007-09-04)
obj\CAN.tra (1627, 2007-09-05)
obj\cortexm3_macro.o (2332, 2007-09-05)
obj\main.crf (45815, 2007-09-05)
obj\main.d (522, 2007-09-05)
obj\main.o (54588, 2007-09-05)
obj\stm32f10x_can.crf (40383, 2007-09-05)
obj\stm32f10x_can.d (408, 2007-09-05)
obj\stm32f10x_can.o (44312, 2007-09-05)
obj\stm32f10x_flash.crf (19037, 2007-09-05)
obj\stm32f10x_flash.d (365, 2007-09-05)
obj\stm32f10x_flash.o (23928, 2007-09-05)
obj\stm32f10x_gpio.crf (33794, 2007-09-05)
obj\stm32f10x_gpio.d (417, 2007-09-05)
obj\stm32f10x_gpio.o (41888, 2007-09-05)
obj\stm32f10x_it.crf (45600, 2007-09-05)
obj\stm32f10x_it.d (657, 2007-09-05)
obj\stm32f10x_it.o (60632, 2007-09-05)
obj\stm32f10x_lib.crf (43150, 2007-09-05)
obj\stm32f10x_lib.d (648, 2007-09-05)
obj\stm32f10x_lib.o (48728, 2007-09-05)
obj\stm32f10x_nvic.crf (28348, 2007-09-05)
obj\stm32f10x_nvic.d (357, 2007-09-05)
obj\stm32f10x_nvic.o (39336, 2007-09-05)
obj\stm32f10x_rcc.crf (32945, 2007-09-05)
obj\stm32f10x_rcc.d (349, 2007-09-05)
obj\stm32f10x_rcc.o (40904, 2007-09-05)
obj\stm32f10x_vector.o (4880, 2007-09-05)
obj (0, 2009-03-24)
uvsion\CAN.Opt (3512, 2007-09-06)
uvsion\CAN.plg (617, 2007-09-04)
uvsion\CAN.Uv2 (3179, 2007-09-06)
uvsion\CAN_CAN.dep (5600, 2007-09-06)
uvsion\CAN_Opt.Bak (3513, 2007-09-05)
uvsion\CAN_Uv2.Bak (3300, 2007-09-05)
uvsion\cortexm3_macro.s (9548, 2007-05-17)
... ...
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Date First Issued : 05/21/2007
* Description : Description of the CAN Example.
********************************************************************************
* History:
* 05/21/2007: V0.3
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Example description
===================
This example provides a description of how to set a communication with the bxCAN
in loopback mode:
- transmit and receive a standard data frame by polling at 100Kbit/S
- transmit and receive an extended data frame with interrupt at 500Kbit/S
- lit some LEDs depending of the program succeed or not
Directory contents
==================
stm32f10x_conf.h Library Configuration file
stm32f10x_it.c Interrupt handlers
stm32f10x_it.h Interrupt handlers header file
main.c Main program
Hardware environment
====================
- This examples runs on STM32F10x-EVAL board
How to use it
=============
In order to make the program work, you must do the following :
- Create a project and setup all your toolchain's start-up files
- Compile the directory content files and required Library files :
+ stm32f10x_lib.c
+ stm32f10x_can.c
+ stm32f10x_rcc.c
+ stm32f10x_gpio.c
+ stm32f10x_nvic.c
+ stm32f10x_flash.c
- Link all compiled files and load your image into either RAM or FLASH
- Run the example
******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******
近期下载者:
相关文件:
收藏者: