库函数驱动外设的应用实例:应用STM32的GPIO控制LED灯的亮灭,实现闪亮、跑马灯、流水灯等效果

上传者: chenguigan | 上传时间: 2019-12-21 19:33:10 | 文件大小: 755KB | 文件类型: rar
例题:使用STM32的GPIOB口控制8个LED灯的亮灭。STM32有7个GPIO口,每个GPIO口有16个引脚,使用其中的8-15引脚对8个LED灯进行控制,可以实现闪亮、跑马灯、流水灯等效果。开发工具为Keil MDK5(最新版本),兼容低版本(本例题程序使用库函数:GPIO_SetBits和GPIO_ResetBits实现对LED亮灭的控制)

文件下载

资源详情

[{"title":"( 44 个子文件 755KB ) 库函数驱动外设的应用实例:应用STM32的GPIO控制LED灯的亮灭,实现闪亮、跑马灯、流水灯等效果","children":[{"title":"excise1","children":[{"title":"Objects","children":[{"title":"stm32f10x_rcc.o <span style='color:#111;'> 312.62KB </span>","children":null,"spread":false},{"title":"pro.lnp <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"system_stm32f10x.o <span style='color:#111;'> 270.34KB </span>","children":null,"spread":false},{"title":"main.crf <span style='color:#111;'> 246.28KB </span>","children":null,"spread":false},{"title":"pro.htm <span style='color:#111;'> 36.65KB </span>","children":null,"spread":false},{"title":"led.o <span style='color:#111;'> 271.69KB </span>","children":null,"spread":false},{"title":"pro.hex <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.o <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.crf <span style='color:#111;'> 253.57KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.d <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.d <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"led.d <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"pro.sct <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.o <span style='color:#111;'> 292.37KB </span>","children":null,"spread":false},{"title":"main.d <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.d <span style='color:#111;'> 81B </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 267.63KB </span>","children":null,"spread":false},{"title":"misc.crf <span style='color:#111;'> 246.67KB </span>","children":null,"spread":false},{"title":"led.crf <span style='color:#111;'> 247.11KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.crf <span style='color:#111;'> 250.08KB </span>","children":null,"spread":false},{"title":"pro_Target 1.dep <span style='color:#111;'> 10.52KB </span>","children":null,"spread":false},{"title":"pro.build_log.htm <span style='color:#111;'> 3.32KB </span>","children":null,"spread":false},{"title":"misc.d <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.d <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.crf <span style='color:#111;'> 246.02KB </span>","children":null,"spread":false},{"title":"misc.o <span style='color:#111;'> 271.51KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.o <span style='color:#111;'> 275.20KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.d <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"pro.axf <span style='color:#111;'> 238.79KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.crf <span style='color:#111;'> 247.72KB </span>","children":null,"spread":false}],"spread":false},{"title":"pro.uvoptx <span style='color:#111;'> 6.38KB </span>","children":null,"spread":false},{"title":"Listings","children":[{"title":"pro.map <span style='color:#111;'> 61.44KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.lst <span style='color:#111;'> 43.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"user","children":[{"title":"main.c <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"led.h <span style='color:#111;'> 921B </span>","children":null,"spread":false},{"title":"stm32f10x_conf.h <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"led.c <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"RTE","children":[{"title":"RTE_Components.h <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"Device","children":[{"title":"STM32F103C8","children":[{"title":"startup_stm32f10x_md.s <span style='color:#111;'> 12.47KB </span>","children":null,"spread":false},{"title":"RTE_Device.h <span style='color:#111;'> 57.48KB </span>","children":null,"spread":false},{"title":"stm32f10x_conf.h <span style='color:#111;'> 4.07KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.c <span style='color:#111;'> 35.70KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"pro.uvguix.Administrator <span style='color:#111;'> 69.82KB </span>","children":null,"spread":false},{"title":"pro.uvprojx <span style='color:#111;'> 19.40KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明