ST10_CAN_Library

所属分类:其他嵌入式/单片机内容
开发工具:C/C++
文件大小:15KB
下载次数:10
上传日期:2009-09-09 06:47:50
上 传 者Leeonestar
说明:  CAN Library for ST10F269 including Document.

文件列表:
Examples\Interrupt\InterruptExample.c (6179, 2008-02-27)
Examples\Polling\PollingExample.c (4452, 2008-02-27)
Library\ST10F27x_can.c (42763, 2008-02-27)
Library\ST10F27x_can.h (6869, 2008-02-27)
Library\st10f27x_types.h (2966, 2008-02-27)

/******************** (C) COPYRIGHT 2007 STMicroelectronics ******************** * File Name : Readme.txt * Author : MCD Application Team * Version : V1.0 * Date : 08/21/2007 * Description : Description of the CAN polling Example. ******************************************************************************** * 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 demonstrates how to use the ST10F27x CAN library with interrupts disabled. It shows the CAN filtering mechanism. This example is split into the following parts: 1) CAN pin out configuration: 2) CAN1 and CAN2 configuration: - Initialize CAn cell with disabling CAN interrupts, - Configure a message object of CAN1 to transmit a data frame - Configure the message object of CAN to receive data frames with ID between 0x3B0 and 0x3B3, 3) CAN1 transmits a data frame with ID = 0x -> Data frame is received by CAN2 4) CAN1 transmits a second data frame with ID = 0x0B0 -> No message is received by CAN2 Hardware environment ==================== This example works on a ST10F27x based board. The CAN1 and CAN2 should be put on the same network. 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 + st10f27x_can.c + PollingExample.c - Link all compiled files and load your image using Keil or tasking for debug - Run the example, breakpoints can be used to spy the message contents ******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****

近期下载者

相关文件


收藏者