STM32F100---irDA_Transmit----
所属分类:处理器开发
开发工具:C/C++
文件大小:506KB
下载次数:143
上传日期:2008-12-10 09:45:23
上 传 者:
billbillbillbill
说明: 基于cortex arm stm32f103RB的红外(irDA)遥控数据发送程序。编译通过,推荐给开发stm32的朋友.
(Cortex arm stm32f103RB based on infrared (irDA) remote data distribution procedures. Compiler is passed, the recommendation to develop stm32 friends.)
文件列表:
irDA_Transmit\listing\cortexm3_macro.lst (24892, 2007-10-19)
irDA_Transmit\listing\irDA_Transmit.map (53589, 2007-10-19)
irDA_Transmit\listing\stm32f10x_vector.lst (30893, 2007-10-19)
irDA_Transmit\obj\cortexm3_macro.o (2376, 2007-10-19)
irDA_Transmit\obj\irDA_Transmit.axf (111032, 2007-10-19)
irDA_Transmit\obj\irDA_Transmit.htm (62976, 2007-10-19)
irDA_Transmit\obj\irDA_Transmit.lnp (524, 2007-10-19)
irDA_Transmit\obj\irDA_Transmit.plg (393, 2007-11-05)
irDA_Transmit\obj\irDA_Transmit.sct (479, 2007-10-19)
irDA_Transmit\obj\irDA_Transmit.tra (1711, 2007-10-19)
irDA_Transmit\obj\main.crf (125524, 2007-10-19)
irDA_Transmit\obj\main.d (1313, 2007-10-19)
irDA_Transmit\obj\main.o (133712, 2007-10-19)
irDA_Transmit\obj\stm32f10x_flash.crf (30048, 2007-10-19)
irDA_Transmit\obj\stm32f10x_flash.d (457, 2007-10-19)
irDA_Transmit\obj\stm32f10x_flash.o (38400, 2007-10-19)
irDA_Transmit\obj\stm32f10x_gpio.crf (35027, 2007-10-19)
irDA_Transmit\obj\stm32f10x_gpio.d (508, 2007-10-19)
irDA_Transmit\obj\stm32f10x_gpio.o (43876, 2007-10-19)
irDA_Transmit\obj\stm32f10x_it.crf (125228, 2007-10-19)
irDA_Transmit\obj\stm32f10x_it.d (1568, 2007-10-19)
irDA_Transmit\obj\stm32f10x_it.o (139828, 2007-10-19)
irDA_Transmit\obj\stm32f10x_lib.crf (122985, 2007-10-19)
irDA_Transmit\obj\stm32f10x_lib.d (1574, 2007-10-19)
irDA_Transmit\obj\stm32f10x_lib.o (128512, 2007-10-19)
irDA_Transmit\obj\stm32f10x_nvic.crf (29581, 2007-10-19)
irDA_Transmit\obj\stm32f10x_nvic.d (448, 2007-10-19)
irDA_Transmit\obj\stm32f10x_nvic.o (41280, 2007-10-19)
irDA_Transmit\obj\stm32f10x_rcc.crf (34178, 2007-10-19)
irDA_Transmit\obj\stm32f10x_rcc.d (439, 2007-10-19)
irDA_Transmit\obj\stm32f10x_rcc.o (42848, 2007-10-19)
irDA_Transmit\obj\stm32f10x_usart.crf (37656, 2007-10-19)
irDA_Transmit\obj\stm32f10x_usart.d (518, 2007-10-19)
irDA_Transmit\obj\stm32f10x_usart.o (46776, 2007-10-19)
irDA_Transmit\obj\stm32f10x_vector.o (4924, 2007-10-19)
irDA_Transmit\uvision\cortexm3_macro.s (9548, 2007-05-17)
irDA_Transmit\uvision\irDA_Transmit.Opt (3117, 2007-10-22)
irDA_Transmit\uvision\irDA_Transmit.plg (201, 2007-10-19)
irDA_Transmit\uvision\irDA_Transmit.Uv2 (3205, 2007-10-19)
irDA_Transmit\uvision\irDA_Transmit_Opt.Bak (3117, 2007-10-19)
... ...
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Date First Issued : 05/21/2007: V0.3
* Description : Description of the USART Example 10 Transmit.
********************************************************************************
* 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 basic communication USART3 IrDA transmit mode. Five pins,
configured in input floating mode, are used to select the byte to be send at
each pin state change.
These bytes are:
- 0x00 if no key pressed
- 0x01 if PD.12 pin state change
- 0x02 if PE.00 pin state change
- 0x03 if PE.01 pin state change
- 0x04 if PD.08 pin state change
- 0x05 if PD.14 pin state change
USART3 configured as follow:
- BaudRate = 115200 baud
- Word Length = 8 Bits
- One Stop Bit
- No parity
- Hardware flow control disabled (RTS and CTS signals)
- Receive and transmit enabled
- USART Clock disabled
- USART CPOL: Clock is active low
- USART CPHA: Data is captured on the second edge
- USART LastBit: The clock pulse of the last data bit is not output to
the SCLK pin
The example10 provides two IrDA program: transmitter&receiver and requires two boards
to be able to run the full demonstration:
- one board will act as IrDA transmitter
- one board will act as IrDA receiver
Directory contents
==================
stm32f10x_conf.h Library Configuration file
stm32f10x_it.h Interrupt handlers header file
stm32f10x_it.c Interrupt handlers
main.c Main program
Hardware environment
====================
- Connect a push-button to pin PD.14 (DOWN push-button on STM32F10x-EVAL board).
- Connect a push-button to pin PD.08 (UP push-button on STM32F10x-EVAL board).
- Connect a push-button to pin PD.12 (SEL push-button on STM32F10x-EVAL board).
- Connect a push-button to pin PE.00 (RIGHT push-button on STM32F10x-EVAL board).
- Connect a push-button to pin PE.01 (LEFT push-button on STM32F10x-EVAL board).
- Use an IrDA tranceiver connected to the USART3 Tx pin (U11 on STM32F10x-EVAL
board, JP1 jumper must is fitted).
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_gpio.c
+ stm32f10x_rcc.c
+ stm32f10x_usart.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******
近期下载者:
相关文件:
收藏者: