/**
@page GPIO_IOToggle GPIO IO Toggle example
@verbatim
******************** (C) COPYRIGHT 2010 STMicroelectronics *******************
* @file GPIO/IOToggle/readme.txt
* @author MCD Application Team
* @version V1.0.0
* @date 31-December-2010
* @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 AHB bus, using BSRRH and BSRRL registers one cycle is
required to set a pin and another cycle to reset it. So GPIO pins can toggle at
AHB clock divided by 2.
This example describes how to use BSRRH and BSRRL (Port Bit Set/Reset Register
High and Low) 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 BSRRL register
- Reset PD0 and PD2 by setting corresponding bits in BSRRH register
In this example, HCLK is configured at 32 MHz so PD0 and PD2 toggles at 16MHz.
To achieve the maximum IO toggling frequency, you have to configure your compiler
options for high speed optimization.
@par Directory contents
- GPIO/IOToggle/stm32l1xx_conf.h Library Configuration file
- GPIO/IOToggle/stm32l1xx_it.c Interrupt handlers
- GPIO/IOToggle/stm32l1xx_it.h Interrupt handlers header file
- GPIO/IOToggle/main.c Main program
- GPIO/IOToggle/system_stm32l1xx.c STM32L1xx system source file
@note The "system_stm32l1xx.c" is generated by an automatic clock configuration
system and can be easily customized to your own configuration.
To select different clock setup, use the "STM32L1xx_Clock_Configuration_V1.0.0.xls"
provided with the AN3309 package available on <a href="http://www.st.com/internet/mcu/family/141.jsp"> ST Microcontrollers </a>
@par Hardware and Software environment
- This example runs on STM32L1xx Ultra Low Power Medium-Density Devices.
- This example has been tested with STMicroelectronics STM32L152-EVAL (STM32L1xx
Ultra Low Power Medium-Density) evaluation board and can be easily tailored
to any other supported device and development board.
@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\STM32L1xx_StdPeriph_Template
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the example
@note
- Ultra Low Power Medium-density devices are STM32L151xx and STM32L152xx
microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
* <h3><center>© COPYRIGHT 2010 STMicroelectronics</center></h3>
*/
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32L152软件模拟SPI驱动CC1101 (136个子文件)
cc1101_send.uvgui.yinbo_zhang.bak 136KB
cc1101_send_uvopt.bak 24KB
cc1101_send_uvproj.bak 19KB
CC1101_recv_uvproj.bak 0B
stm32l1xx_tim.c 105KB
stm32l1xx_tim.c 105KB
stm32l1xx_rtc.c 76KB
stm32l1xx_rtc.c 76KB
stm32l1xx_adc.c 67KB
stm32l1xx_adc.c 67KB
stm32l1xx_rcc.c 61KB
stm32l1xx_rcc.c 61KB
stm32l1xx_usart.c 53KB
stm32l1xx_usart.c 53KB
stm32l1xx_flash.c 48KB
stm32l1xx_flash.c 48KB
stm32l1xx_i2c.c 48KB
stm32l1xx_i2c.c 48KB
stm32l1xx_spi.c 33KB
stm32l1xx_spi.c 33KB
stm32l1xx_pwr.c 32KB
stm32l1xx_pwr.c 32KB
stm32l1xx_dma.c 31KB
stm32l1xx_dma.c 31KB
spi_cc1101.c 26KB
stm32l1xx_dac.c 25KB
stm32l1xx_dac.c 25KB
stm32l1xx_lcd.c 24KB
stm32l1xx_lcd.c 24KB
spi_cc1101.c 24KB
stm32l1xx_gpio.c 20KB
stm32l1xx_gpio.c 20KB
stm32l1xx_syscfg.c 19KB
stm32l1xx_syscfg.c 19KB
core_cm3.c 17KB
core_cm3.c 17KB
system_stm32l1xx.c 14KB
system_stm32l1xx.c 14KB
stm32l1xx_flash_ramfunc.c 13KB
stm32l1xx_flash_ramfunc.c 13KB
stm32l1xx_comp.c 13KB
stm32l1xx_comp.c 13KB
misc.c 11KB
misc.c 11KB
stm32l1xx_wwdg.c 10KB
stm32l1xx_wwdg.c 10KB
stm32l1xx_exti.c 10KB
stm32l1xx_exti.c 10KB
stm32l1xx_iwdg.c 9KB
stm32l1xx_iwdg.c 9KB
stm32l1xx_dbgmcu.c 6KB
stm32l1xx_dbgmcu.c 6KB
stm32l1xx_it.c 5KB
stm32l1xx_it.c 5KB
stm32l1xx_crc.c 3KB
stm32l1xx_crc.c 3KB
main.c 3KB
main.c 3KB
stm32l1xx.h 351KB
stm32l1xx.h 351KB
core_cm3.h 84KB
core_cm3.h 84KB
stm32l1xx_tim.h 38KB
stm32l1xx_tim.h 38KB
stm32l1xx_i2c.h 31KB
stm32l1xx_i2c.h 31KB
stm32l1xx_adc.h 26KB
stm32l1xx_adc.h 26KB
stm32l1xx_rtc.h 24KB
stm32l1xx_rtc.h 24KB
stm32l1xx_lcd.h 22KB
stm32l1xx_lcd.h 22KB
stm32l1xx_syscfg.h 18KB
stm32l1xx_syscfg.h 18KB
stm32l1xx_rcc.h 18KB
stm32l1xx_rcc.h 18KB
stm32l1xx_usart.h 16KB
stm32l1xx_usart.h 16KB
stm32l1xx_dma.h 16KB
stm32l1xx_dma.h 16KB
stm32l1xx_flash.h 15KB
stm32l1xx_flash.h 15KB
stm32l1xx_gpio.h 14KB
stm32l1xx_gpio.h 14KB
stm32l1xx_dac.h 14KB
stm32l1xx_dac.h 14KB
stm32l1xx_spi.h 14KB
stm32l1xx_spi.h 14KB
misc.h 9KB
misc.h 9KB
stm32l1xx_exti.h 8KB
stm32l1xx_exti.h 8KB
stm32l1xx_pwr.h 7KB
stm32l1xx_pwr.h 7KB
stm32l1xx_comp.h 7KB
stm32l1xx_comp.h 7KB
stm32l1xx_iwdg.h 4KB
stm32l1xx_iwdg.h 4KB
stm32l1xx_dbgmcu.h 4KB
stm32l1xx_dbgmcu.h 4KB
共 136 条
- 1
- 2
资源评论
- yefeng12022014-10-02和网上其他源码一样,只不过改了一些主控,改成了stm32的而已
- changing_better2015-10-28重点是cc1101的操作,模拟SPI有点多此一举,本来那个芯片就有SPI功能,不过可以参考代码。
- cxtsting2015-04-16用软件的spi,对cc1101的发送接收也分开了,非常容易看懂。
- 我的积分呢2016-10-18我用来参考SPI的通信时序的,可以参考
飞我一年
- 粉丝: 44
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 王姿.html
- 51单片机学习(1)-软件keil下载
- 历届(第1-21届)希望杯数学竞赛初一试题及答案(最新整理).doc全国数学邀请赛(264页资料)
- 水滴.psd
- TokenPocket_V2.1.2_release.apk
- Apache-druid-kafka-rce.yaml
- 基于C#的ASP.NET数据库原理及应用技术课程指导平台的开发
- 基于ROS的智能车轨迹跟踪算法的仿真与设计源码运用PID跟踪算法.zip.zip
- Bug Bounty Tip - i春秋Self-XSS变废为宝的奇思妙想
- 1991-2015年全国初中化学竞赛复赛试题汇编(212页)(24年竞赛复赛真题).docx天原杯
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功