STM32F10x_CEC_Lib
所属分类:单片机开发
开发工具:MDK
文件大小:1691KB
下载次数:4
上传日期:2017-11-03 20:18:45
上 传 者:
make128
说明: STM32 Field-Oriented Control GUI V2.00 (May 2009).rar
文件列表:
STM32F10x_CEC_Lib_V2.0.0 (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3 (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\core_cm3.c (16249, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\core_cm3.h (42077, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_hd.s (15872, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_ld.s (12236, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\arm\startup_stm32f10x_md.s (12564, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_hd.c (16437, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_ld.c (12790, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\gcc\startup_stm32f10x_md.c (13104, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_hd.s (16573, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_ld.s (12001, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\startup\iar\startup_stm32f10x_md.s (12492, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\stm32f10x.h (530869, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\system_stm32f10x.c (24166, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\CM3\system_stm32f10x.h (2158, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\Documentation (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\CMSIS\Core\Documentation\CMSIS_Core.htm (50779, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_CEC_Lib (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_CEC_Lib\inc (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_CEC_Lib\inc\stm32f10x_cec.h (4188, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_CEC_Lib\src (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_CEC_Lib\src\stm32f10x_cec.c (19368, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc (0, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (4951, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (19558, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_bkp.h (7373, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_can.h (14289, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_crc.h (1980, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dac.h (10271, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dbgmcu.h (2980, 2009-05-03)
STM32F10x_CEC_Lib_V2.0.0\Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_dma.h (18790, 2009-05-03)
... ...
/**
@page CEC_Demo CEC_Demo Readme File
@verbatim
******************** (C) COPYRIGHT 2009 STMicroelectronics *******************
* @file CEC_Demo/readme.txt
* @author MCD Application Team
* @version V2.0.0
* @date 04/27/2009
* @brief Description of the STM32F10xxx CEC library.
******************************************************************************
* THE PRESENT FIRMWARE 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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
******************************************************************************
@endverbatim
@par Description
This firmware contains a CEC library and a demo running on the STM3210B-EVAL board.
The CEC library contains the basic CEC functions for CEC communication, which are:
- Send/Receive CEC Start bit.
- Send/Receive CEC ACK bit "logical 0".
- Send/Receive CEC data bit.
- Send/Receive CEC data byte.
- Send/Receive CEC data frame.
For more information, please refer to the user manual provided with this firmware.
The demo illustrates the use of the CEC communication between three devices (3 x STM3210B-EVAL boards).
Each device can send a frame to the two other devices by pressing the user key button on
the EVAL board. Pressing the key button, sends a frame to one device and the next press
sends to the second device.
The information of CEC send/receive of each device is displayed on its LCD.
@par Directory contents
The demo directory contains three directories corresponding to each device.
- 1rst_CEC_Device: corresponding two the device having the address 0x1.
- 2nd_CEC_Device: corresponding two the device having the address 0x2.
- 3rd_CEC_Device: corresponding two the device having the address 0x3.
The 1rst_CEC_Device directory contains:
- inc: containing the user header files
- 1rst_CEC_Device/inc/stm32f10x_conf.h Library Configuration file
- 1rst_CEC_Device/inc/stm32f10x_it.h Interrupt handlers header file
- 1rst_CEC_Device/inc/stm3210b_lcd.h LCD firmware driver header file
- 1rst_CEC_Device/inc/fonts.h LCD fonts size definition
- src: containg the user source files
- 1rst_CEC_Device/src/main.c Main program
- 1rst_CEC_Device/src/stm32f10x_it.c Interrupt handlers
- 1rst_CEC_Device/src/stm3210b_lcd.c LCD driver for Liquid Crystal Display Module of STM3210B-EVAL board.
The 2nd_CEC_Device directory contains:
- inc: containing the user header files
- 2nd_CEC_Device/inc/stm32f10x_conf.h Library Configuration file
- 2nd_CEC_Device/inc/stm32f10x_it.h Interrupt handlers header file
- 2nd_CEC_Device/inc/stm3210b_lcd.h LCD firmware driver header file
- 2nd_CEC_Device/inc/fonts.h LCD fonts size definition
- src: containg the user source files
- 2nd_CEC_Device/src/main.c Main program
- 2nd_CEC_Device/src/stm32f10x_it.c Interrupt handlers
- 2nd_CEC_Device/src/stm3210b_lcd.c LCD driver for Liquid Crystal Display Module of STM3210B-EVAL board.
The 3rd_CEC_Device directory contains:
- inc: containing the user header files
- 3rd_CEC_Device/inc/stm32f10x_conf.h Library Configuration file
- 3rd_CEC_Device/inc/stm32f10x_it.h Interrupt handlers header file
- 3rd_CEC_Device/inc/stm3210b_lcd.h LCD firmware driver header file
- 3rd_CEC_Device/inc/fonts.h LCD fonts size definition
- src: containg the user source files
- 3rd_CEC_Device/src/main.c Main program
- 3rd_CEC_Device/src/stm32f10x_it.c Interrupt handlers
- 3rd_CEC_Device/src/stm3210b_lcd.c LCD driver for Liquid Crystal Display Module of STM3210B-EVAL board.
@par Hardware and Software environment
- This example runs on STM32F10x High-Density, STM32F10x Medium-Density and
STM32F10x Low-Density Devices.
- This example has been tested with STMicroelectronics STM3210B-EVAL evaluation
boards and can be easily tailored to any other supported device and development
board. For the demo, You can connect three STM3210B-EVAL boards. The ground
(GND) have to be common of all boards.
- Connect the boards by connecting all GPIOA.0 together.
- It's mondatory to connect a resistor (around 27K) to VDD and any GPIOA.0 of
any board.
@note
- If three Eval boards are not available, the use of only two boards is possible.
@par How to use it ?
- Load the project image of 1st_Device to the first board.
- Load the project image of 2nd_Device to the second board.
- Load the project image of 3rd_Device to the third board.
- If only two boards are available, load any pair of project image two the two boards.
In order to load the 1st CEC Device Demo code, you have do the following:
- EWARMv5:
- Open the 1st_Device.eww workspace
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
- RVMDK
- Open the 1st_Device.Uv2 project
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
- RIDE
- Open the 1st_Device.rprj project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
In order to load the 2nd CEC Device Demo code, you have do the following:
- EWARMv5:
- Open the 2nd_Device.eww workspace
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
- RVMDK
- Open the 2nd_Device.Uv2 project
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
- RIDE
- Open the 2nd_Device.rprj project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
In order to load the 3rd CEC Devicee Demo code, you have do the following:
- EWARMv5:
- Open the 3rd_Device.eww workspace
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
- RVMDK
- Open the 3rd_Device.Uv2 project
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
- RIDE
- Open the 3rd_Device.rprj project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
@note
- Low-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 16 and 32 Kbytes.
- Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 32 and 128 Kbytes.
- High-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 256 and 512 Kbytes.
*
© COPYRIGHT 2009 STMicroelectronics
*/
近期下载者:
相关文件:
收藏者: