usart

所属分类:单片机开发
开发工具:C/C++
文件大小:1739KB
下载次数:14
上传日期:2012-08-30 14:09:11
上 传 者wbnjit
说明:  通过设置stm32的usart nvic 实现串口的中断接收发送
(By the set of stm32 usart nvic achieve serial interrupt reception)

文件列表:
usart\inc\stm32f10x_conf.h (6235, 2012-08-15)
usart\listing\cortexm3_macro.lst (26659, 2012-08-27)
usart\listing\GPIO.map (95306, 2012-08-27)
usart\listing\stm32f10x_vector.lst (41187, 2012-08-27)
usart\project\cortexm3_macro.o (2516, 2012-07-05)
usart\project\GPIO.BAT (1926, 2012-08-27)
usart\project\GPIO.opt.bak (3258, 2012-05-19)
usart\project\GPIO.plg (832, 2012-07-05)
usart\project\GPIO.tra (47, 2012-07-05)
usart\project\GPIO.Uv2.bak (3552, 2008-12-15)
usart\project\GPIO.uvgui.Administrator (77946, 2012-08-16)
usart\project\GPIO.uvgui_Administrator.bak (77945, 2012-08-16)
usart\project\GPIO.uvopt (83488, 2012-08-28)
usart\project\GPIO.uvproj (18515, 2012-08-17)
usart\project\GPIO_GPIO.dep (13694, 2012-08-28)
usart\project\GPIO_Opt.Bak (2889, 2012-05-18)
usart\project\GPIO_Uv2.Bak (3571, 2012-05-18)
usart\project\GPIO_uvopt.bak (83846, 2012-08-27)
usart\project\GPIO_uvproj.bak (18676, 2012-08-16)
usart\project\lcd.crf (160249, 2012-07-05)
usart\project\lcd.d (1608, 2012-07-05)
usart\project\lcd.o (204000, 2012-07-05)
usart\project\main.crf (160529, 2012-07-05)
usart\project\main.d (1638, 2012-07-05)
usart\project\main.o (181480, 2012-07-05)
usart\project\spi_flash.crf (152135, 2012-07-05)
usart\project\spi_flash.d (1710, 2012-07-05)
usart\project\spi_flash.o (178228, 2012-07-05)
usart\project\stm32f10x_adc.crf (50342, 2012-07-05)
usart\project\stm32f10x_adc.d (476, 2012-07-05)
usart\project\stm32f10x_adc.o (60820, 2012-07-05)
usart\project\stm32f10x_flash.crf (38427, 2012-07-05)
usart\project\stm32f10x_flash.d (403, 2012-07-05)
usart\project\stm32f10x_flash.o (44540, 2012-07-05)
usart\project\stm32f10x_fsmc.crf (48026, 2012-07-05)
usart\project\stm32f10x_fsmc.d (446, 2012-07-05)
usart\project\stm32f10x_fsmc.o (53560, 2012-07-05)
usart\project\stm32f10x_gpio.crf (42636, 2012-07-05)
usart\project\stm32f10x_gpio.d (446, 2012-07-05)
usart\project\stm32f10x_gpio.o (50684, 2012-07-05)
... ...

/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Date First Issued : 06/13/2008 * Description : Description of the GPIO Example. ******************************************************************************** * History: * 05/21/2007: V0.3 * 04/02/2007: V0.2 * 02/05/2007: V0.1 ******************************************************************************** * 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 short description of how to use the JTAG IOs as standard GPIOs and gives a configuration sequence. Five leds connected to PA.13(JTMS/SWDAT), PA.14(JTCK/SWCLK), PA.15(JTDI), PB.03(JTDO) and PB.04(JTRST) pins are toggled in an infinite loop. Note that once the JTAG IOs are disabled, the connection with host debugger is lost and can't be established again while the JTAG IOs are disabled. To avoid such situation a pin, PG.08, connected to a push button is used to select between disabling or not the JTAG IOs: - push button pressed at reset: JTAG IOs not disabled - push button not pressed at reset: JTAG IOs changed Directory contents ================== stm32f10x_conf.h Library Configuration file stm32f10x_it.c Interrupt handlers stm32f10x_it.h Header for stm32f10x_it.c main.c Main program Hardware environment ==================== - Connect four leds to pins PA.13, PA.14, PA.15, PB.03 and PB.04. - Connect a push button to pin PG.08 (Key push button on EM-STM3210E 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_gpio.c + stm32f10x_rcc.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 2008 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者