- 1、本文档共48页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
数据采集C程序(国外英文资料)
数据采集C程序(国外英文资料)
/ * task: the second topic of the first title in the data collection system
/ * hardware attachment * /
/ / AT89C51
I dont know
/ / set k5- | p1.0|
/ / add one K4 - | P1.1 |
/ / minus one K3, | P1.2 |
/ / transposition K2 - | P1.3 |
/ / determine K1, | P1.4 |
/ / run K0 - - | P1.5 |
/ / the loudspeaker - | P1.6 b1
/ / |, |
/ / bit. | P3.2 (INT0) |
/ / |, |
/ / EOC, | P3.6 |
/ / |, |
/ / __________
/ / KEY/LED CS - CS0
/ / _____
/ / AD - CS - - CS1
Operational guidelines for the / * * /
/ /
/ /
/ /
/ /
/ /
/ /
# include reg51. H
# include intrins.h / / the header file of the function where the left shift is moved
# include absacc.h / / use macros that are defined to access absolute addresses such as outseg, outbit, adc0809, etc
# include stdio, h
# define outseg XBYTE [0x8004] / / segment code
# define outbit XBYTE [0x8002] / / bit code
# define adc0809 XBYTE [0x9ff8] / / A/D
Sign define uint unsigned int / / uint instead of unsigned int
# define uchar unsigned char / / use uchar instead of unsigned char
/ / function declaration section
Void display (uchar a, uchar b, uchar c, uchar d, uchar num); / / show the delay function
Void init (); / / adc0809 initialization
Void keyscan (); / / keyboard scan function
Void shine (); / / scintillating display functions
Void switcher (); / / switch display function
Void bell (); / / alarm function
Void convertADvalue (a1, b1, c1, d1); / / convert the results to decimal Numbers for comparison
Void the convert (); / / transformation function
Void delay (unsigned int z); / / delay function
Void shinedisplay (a, b, c, d, n);
Void convertADvalueMAX (a2, b2, c2, d2); / / the range limit function
/ / define, initialize section
Sbit F1 = P1 ^ 0; / / as a setting key connection and as a marker
P1 sbit F2 = ^ 1; / / as a + 1 key connection, and as a mark bit
Sbit F3 = p ^ 2; / / as a -1 key connection and as a marker
Sbit F4 = P1 ^ 3; / / as a transposition key connection, as a token bit
Sbit F5 = P1 ^ 4; /
您可能关注的文档
最近下载
- 湿热灭菌验证方案及报告.doc VIP
- TZS 0680—2025《医疗机构实验室生物安全管理组织架构规范》(水印版).pdf VIP
- 网络游戏对青少年情绪调节和自我效能感的作用.docx VIP
- YBT4001.1-2019 钢格栅板及配套件 第1部分:钢格栅板.pdf VIP
- 大数据技术与应用 课件 第二章 大数据采集.pptx
- LAQ-E-KS-23 掘进工安全作业指导书.doc VIP
- 连云港市主要小麦品种产量与主要品质性状的初步研 究参考.pdf VIP
- DB32_T 3697-2019既有建筑幕墙可靠性检验评估技术规程.docx VIP
- PW2330-2.0数据手册下载.pdf VIP
- 2025湖南铁道职业技术学院教师招聘考试真题汇总.docx VIP
文档评论(0)