Stm8aLib

所属分类:单片机开发
开发工具:C/C++
文件大小:642KB
下载次数:81
上传日期:2009-07-30 14:20:51
上 传 者floodever
说明:  stm8a系列单片机的底层驱动和各模块应用实例。很容易移植和修改。
(SCM stm8a bottom line-driven and application of the module. Transplantation and modified easily.)

文件列表:
library\inc\stm8a_adc.h (10648, 2008-11-10)
library\inc\stm8a_adc1.h (14970, 2008-11-10)
library\inc\stm8a_awu.h (4822, 2008-11-10)
library\inc\stm8a_beep.h (3454, 2008-11-10)
library\inc\stm8a_clk.h (16941, 2008-11-10)
library\inc\stm8a_exti.h (4441, 2008-11-10)
library\inc\stm8a_flash.h (10262, 2008-11-10)
library\inc\stm8a_gpio.h (6183, 2008-11-10)
library\inc\stm8a_i2c.h (14798, 2008-11-10)
library\inc\stm8a_itc.h (4137, 2008-11-10)
library\inc\stm8a_iwdg.h (4456, 2008-11-10)
library\inc\stm8a_lib.h (3145, 2008-11-10)
library\inc\stm8a_linuart.h (15216, 2008-11-10)
library\inc\stm8a_linuart1.h (13878, 2008-11-10)
library\inc\stm8a_macro.h (6015, 2008-11-10)
library\inc\stm8a_map.h (77326, 2008-11-10)
library\inc\stm8a_rst.h (2735, 2008-11-10)
library\inc\stm8a_spi.h (12454, 2008-11-10)
library\inc\stm8a_tim1.h (24034, 2008-11-10)
library\inc\stm8a_tim2.h (13219, 2008-11-10)
library\inc\stm8a_tim3.h (12193, 2008-11-10)
library\inc\stm8a_tim4.h (4979, 2008-11-10)
library\inc\stm8a_type.h (3348, 2008-11-10)
library\inc\stm8a_usart.h (16977, 2008-11-10)
library\inc\stm8a_wwdg.h (2318, 2008-11-10)
library\inc (0, 2008-11-10)
library\src\stm8a_adc.c (16235, 2008-11-10)
library\src\stm8a_adc1.c (26054, 2008-11-10)
library\src\stm8a_awu.c (9109, 2008-11-10)
library\src\stm8a_beep.c (6958, 2008-11-10)
library\src\stm8a_clk.c (25504, 2008-11-10)
library\src\stm8a_exti.c (6701, 2008-11-10)
library\src\stm8a_flash.c (20722, 2008-11-10)
library\src\stm8a_gpio.c (10547, 2008-11-10)
library\src\stm8a_i2c.c (25029, 2008-11-10)
library\src\stm8a_itc.c (8597, 2008-11-10)
library\src\stm8a_iwdg.c (5957, 2008-11-10)
library\src\stm8a_linuart.c (32155, 2008-11-10)
library\src\stm8a_linuart1.c (27909, 2008-11-10)
library\src\stm8a_rst.c (3325, 2008-11-10)
... ...

/** @page RST_IWDG IWDG Reset @par Example description This example provides a short description of how to generate detect and manage an IWDG reset. The TIM4 is used to refresh the IWDG each 16 ms. Pressing the KEY button will stop refreshing the IWDG, so a reset is generated. LEDs from 1 to 4 blink five times, signaling the IWDG reset. When the reset flag is cleared they stay lit continuously. This example runs on STM8A-128K and STM8A-32K products @par Directory contents - main.c Main file containing the "main" function - stm8a_conf.h Library Configuration file - stm8a_it.c Interrupt routines source - stm8a_it.h Interrupt routines declaration - stm8_interrupt_vector.c Interrupt vectors table @par Hardware environment -LED1 (PH.3) -LED2 (PH.2) -LED3 (PH.1) -LED4 (PH.0) -BUTTON (PC.0) @par How to use it ? In order to make the program work, you must do the following : - Create a project and setup all project configuration - Compile the directory content files and required Library files : + stm8a_iwdg.c + stm8a_tim4.c + stm8a_gpio.c + stm8a_clk.c + stm8a_rst.c - Rebuild all files: Project->Rebuild all. - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) - The LED1, LED2, LED3 and LED4 are ON - If you press the button, a Reset occurs and LEDs blink Go to main file: RST_IWDG\main.c */ /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/

近期下载者

相关文件


收藏者