首页 开发技术 C     /    用STM8S003单片机ADC功能实现单IO口多按键功能

用STM8S003单片机ADC功能实现单IO口多按键功能

上传者: qq_20222919 | 上传时间:2024/8/20 6:07:05 | 文件大小:243KB | 文件类型:7z
用STM8S003单片机ADC功能实现单IO口多按键功能
IAR中用库函数实现STM8S003单片机单IO口多按键判断的功能。
将多个按键接到一个IO口上,然后用单片机的AD功能读取这个IO口上的电压,从而判断是哪个按键按下。
实现一个IO口判断多个按键,本例子中一个IO口判断6个按键。

文件下载

资源详情

[{"title":"(49个子文件243KB)用STM8S003单片机ADC功能实现单IO口多按键功能","children":[{"title":"STM8S_ADC_KEY","children":[{"title":"ADC.ewp <span style='color:#111;'>57.34KB</span>","children":null,"spread":false},{"title":"ADC.eww <span style='color:#111;'>157B</span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'>1.81KB</span>","children":null,"spread":false},{"title":"BuildLog.log <span style='color:#111;'>2.16KB</span>","children":null,"spread":false},{"title":"ADC.ewd <span style='color:#111;'>15.66KB</span>","children":null,"spread":false},{"title":"HardWare","children":[{"title":"delay.c <span style='color:#111;'>2.26KB</span>","children":null,"spread":false},{"title":"led.h <span style='color:#111;'>168B</span>","children":null,"spread":false},{"title":"uart.h <span style='color:#111;'>203B</span>","children":null,"spread":false},{"title":"adc.h.orig <span style='color:#111;'>198B</span>","children":null,"spread":false},{"title":"led.c <span style='color:#111;'>194B</span>","children":null,"spread":false},{"title":"adc.h <span style='color:#111;'>254B</span>","children":null,"spread":false},{"title":"delay.h <span style='color:#111;'>375B</span>","children":null,"spread":false},{"title":"adc.c.orig <span style='color:#111;'>3.02KB</span>","children":null,"spread":false},{"title":"adc.c <span style='color:#111;'>3.09KB</span>","children":null,"spread":false},{"title":"uart.c <span style='color:#111;'>1.31KB</span>","children":null,"spread":false},{"title":"led.c.orig <span style='color:#111;'>162B</span>","children":null,"spread":false}],"spread":false},{"title":"ADC单口按键.pdf <span style='color:#111;'>30.35KB</span>","children":null,"spread":false},{"title":"ADC.ewt <span style='color:#111;'>156.99KB</span>","children":null,"spread":false},{"title":"settings","children":[{"title":"LED.dnx <span style='color:#111;'>3.14KB</span>","children":null,"spread":false},{"title":"LED.Debug.general.xcl <span style='color:#111;'>323B</span>","children":null,"spread":false},{"title":"LED.wsdt <span style='color:#111;'>34.18KB</span>","children":null,"spread":false},{"title":"ADC.dbgdt <span style='color:#111;'>50.98KB</span>","children":null,"spread":false},{"title":"ADC.dnx <span style='color:#111;'>1.40KB</span>","children":null,"spread":false},{"title":"LED.Debug.cspy.bat <span style='color:#111;'>1.58KB</span>","children":null,"spread":false},{"title":"ADC.Debug.cspy.bat <span style='color:#111;'>1.65KB</span>","children":null,"spread":false},{"title":"ADC.wsdt <span style='color:#111;'>28.00KB</span>","children":null,"spread":false},{"title":"ADC.Debug.driver.xcl <span style='color:#111;'>140B</span>","children":null,"spread":false},{"title":"ADC.Debug.cspy.ps1 <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"LED.Debug.cspy.ps1 <span style='color:#111;'>1.52KB</span>","children":null,"spread":false},{"title":"ADC.Debug.general.xcl <span style='color:#111;'>340B</span>","children":null,"spread":false},{"title":"LED.Debug.driver.xcl <span style='color:#111;'>140B</span>","children":null,"spread":false},{"title":"LED.dbgdt <span style='color:#111;'>51.93KB</span>","children":null,"spread":false}],"spread":false},{"title":"main.h <span style='color:#111;'>213B</span>","children":null,"spread":false},{"title":"TermIO.log <span style='color:#111;'>0B</span>","children":null,"spread":false},{"title":"main.c.orig <span style='color:#111;'>1.76KB</span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"List","children":null,"spread":false},{"title":"Exe","children":[{"title":"ADC.hex <span style='color:#111;'>21.28KB</span>","children":null,"spread":false}],"spread":true},{"title":"Obj","children":[{"title":"ADC.pbd.browse <span style='color:#111;'>255.98KB</span>","children":null,"spread":false},{"title":"ADC.pbd.linf <span style='color:#111;'>481B</span>","children":null,"spread":false},{"title":"led.pbi.xcl <span style='color:#111;'>11.40KB</span>","children":null,"spread":false},{"title":"main.pbi <span style='color:#111;'>252.54KB</span>","children":null,"spread":false},{"title":"delay.pbi.xcl <span style='color:#111;'>11.42KB</span>","children":null,"spread":false},{"title":"ADC.pbd <span style='color:#111;'>255.98KB</span>","children":null,"spread":false},{"title":"led.pbi <span style='color:#111;'>219.67KB</span>","children":null,"spread":false},{"title":"main.pbi.xcl <span style='color:#111;'>11.41KB</span>","children":null,"spread":false},{"title":"delay.pbi <span style='color:#111;'>1.72KB</span>","children":null,"spread":false},{"title":"adc.pbi <span style='color:#111;'>222.85KB</span>","children":null,"spread":false},{"title":"adc.pbi.xcl <span style='color:#111;'>11.42KB</span>","children":null,"spread":false},{"title":"uart.pbi <span style='color:#111;'>250.00KB</span>","children":null,"spread":false},{"title":"uart.pbi.xcl <span style='color:#111;'>11.40KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • alexwu06:
    还真的不错哟2020-04-06
  • AlexWugs:
    还真的不错哟2020-04-06

免责申明

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