/**
@page GPIO_IOToggle GPIO IO Toggle example
@verbatim
******************** (C) COPYRIGHT 2011 STMicroelectronics *******************
* @file GPIO/IOToggle/readme.txt
* @author MCD Application Team
* @version V3.5.0
* @date 08-April-2011
* @brief Description of the GPIO IO Toggle example.
******************************************************************************
* 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 Example Description
GPIO ports are connected on APB2 bus, using BSRRH and BSRRL registers 2 cycles
are required to set a pin and another cycle to reset it. So GPIO pins can toggle
at AHB clock divided by 4.
This example describes how to use BSRR and BRR (Port Bit Set/Reset Register
and Port Bit Reset Register) for maximum IO toggling.
PD0 and PD2 (configured in output pushpull mode) toggles in a forever loop:
- Set PD0 and PD2 by setting corresponding bits in BSRR register
- Reset PD0 and PD2 by setting corresponding bits in BRR register
In this example, HCLK is configured at 72 MHz so PD0 and PD2 toggles at 18MHz.
To achieve the maximum IO toggling frequency, you have to configure your compiler
options for high speed optimization.
@par Directory contents
- GPIO/IOToggle/stm32f10x_conf.h Library Configuration file
- GPIO/IOToggle/stm32f10x_it.c Interrupt handlers
- GPIO/IOToggle/stm32f10x_it.h Header for stm32f10x_it.c
- GPIO/IOToggle/main.c Main program
- GPIO/IOToggle/system_stm32f10x.c STM32F10x system source file
@par Hardware and Software environment
- This example runs on STM32F10x Connectivity line, High-Density, High-Density
Value line, Medium-Density, XL-Density, Medium-Density Value line, Low-Density
and Low-Density Value line Devices.
- This example has been tested with STMicroelectronics STM32100E-EVAL (High-Density
Value line), STM32100B-EVAL (Medium-Density Value line), STM3210C-EVAL
(Connectivity line), STM3210E-EVAL (High-Density and XL-Density) and
STM3210B-EVAL (Medium-Density) evaluation boards and can be easily tailored
to any other supported device and development board.
To select the STMicroelectronics evaluation board used to run the example,
uncomment the corresponding line in stm32_eval.h file (under Utilities\STM32_EVAL)
@par How to use it ?
In order to make the program work, you must do the following :
- Copy all source files from this example folder to the template folder under
Project\STM32F10x_StdPeriph_Template
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the example
@note
- Low-density Value line devices are STM32F100xx microcontrollers where the
Flash memory density ranges between 16 and 32 Kbytes.
- Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
- Medium-density Value line devices are STM32F100xx microcontrollers where
the Flash memory density ranges between 64 and 128 Kbytes.
- Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
- High-density Value line devices are STM32F100xx microcontrollers where
the Flash memory density ranges between 256 and 512 Kbytes.
- High-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 256 and 512 Kbytes.
- XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 512 and 1024 Kbytes.
- Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
* <h3><center>© COPYRIGHT 2011 STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
LED.rar_神州4号 STM32
共302个文件
s:65个
c:59个
h:58个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 159 浏览量
2022-09-19
20:32:35
上传
评论
收藏 2.16MB RAR 举报
温馨提示
这是基于stm32神州4号开发板的LED程序,包含用库和不用库,是新手入门的好资料
资源推荐
资源详情
资源评论
收起资源包目录
LED.rar_神州4号 STM32 (302个子文件)
led.uvgui.Administrator 134KB
led.uvgui.Administrator 134KB
led.uvgui.Administrator 131KB
stm32f107vct.axf 249KB
stm32f107vct.axf 246KB
led.axf 22KB
stm32f107vct_uvopt.bak 150KB
led.uvgui_Administrator.bak 135KB
led.uvgui_Administrator.bak 134KB
led.uvgui_Administrator.bak 131KB
one_led_uvopt.bak 80KB
stm32f107vct_uvproj.bak 16KB
one_led_uvproj.bak 16KB
led_uvproj.bak 16KB
led_uvproj.bak 15KB
led_uvproj.bak 15KB
led_uvopt.bak 8KB
led_uvopt.bak 7KB
led_uvopt.bak 7KB
stm32f10x_tim.c 107KB
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
system_stm32f10x.c 36KB
system_stm32f10x.c 36KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_it.c 4KB
stm32f10x_it.c 4KB
stm32f10x_crc.c 3KB
stm32f10x_crc.c 3KB
led.c 2KB
main.c 1KB
main.c 859B
main.c 681B
delay.c 467B
stm32f10x_rcc.crf 378KB
stm32f10x_rcc.crf 378KB
stm32f10x_gpio.crf 372KB
stm32f10x_gpio.crf 372KB
led.crf 369KB
main.crf 369KB
main.crf 368KB
system_stm32f10x_cl.crf 74KB
main.crf 73KB
delay.crf 179B
stm32f10x_gpio.d 3KB
stm32f10x_gpio.d 3KB
stm32f10x_rcc.d 3KB
stm32f10x_rcc.d 3KB
main.d 2KB
main.d 2KB
led.d 2KB
system_stm32f10x_cl.d 519B
main.d 380B
startup_stm32f10x_cl.d 90B
delay.d 62B
STM32F10x.d 58B
共 302 条
- 1
- 2
- 3
- 4
资源评论
四散
- 粉丝: 54
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功