- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
时钟-时间继电器(Clock time relay)
时钟-时间继电器(Clock time relay)
May the clock, can also be used as a time relay
#include reg51.h
Function / reputation
Void delayms (unsigned char MS); / / delay function name
Unsigned char (anjian_key); / / find the keyboard function
Void dong_tai (unsigned char wei_xuan); / / input function
Void anjian_input (unsigned char anjian_panduan); / / keyboard input function
Void anjian_panduan1 (void);
Void Shijian (void);
Void shu_zi_yz (void);
Void Fuzhi (void);
Void duan_kou_out (void);
The definition of a second output / flash (interrupt)
Sbit P1_0=P1^0;
Sbit P1_1=P1^1;
Sbit p1_2=P1^2;
Sbit p1_3=P1^3;
/ / key definitions
Sbit K1 = P3^0; / / the corresponding button K1
Sbit K2 = P3^1; / / the corresponding button K2
Sbit K3 = P3^2; / / the corresponding button K3
Sbit K4 = P3^3; / / the corresponding button K4
Sbit K5 = P3^4; / / the corresponding button K5
Sbit K6 = P3^5; / / the corresponding button K6
Sbit K7 = P3^6; / / the corresponding button K7
Sbit K8 = P3^7; / / the corresponding button K8
Unsigned, char, wei_xuan, duan_ma_gw, duan_ma_sw, duan_ma_bw, duan_ma_qw,
Duan_ma_ww, duan_ma_sww, duan_ma_bww, duan_ma_qww; / / display variable bit selection, Duan Ma
Unsigned, char, duan_ma_gw_yz, duan_ma_sw_yz, duan_ma_bw_yz, duan_ma_qw_yz,
Duan_ma_ww_yz, duan_ma_sww_yz, duan_ma_bww_yz, duan_ma_qww_yz; / / display preset variable code
Unsigned, char, Anjian, anjian_panduan, time0, time_bl, yz_bl1, yz_bl2, chu_fa_xinhao1;
Sbit LS138A = P2^2; / / A input pin definition 138 decoder controlled by P2.2
Sbit LS138B = P2^3; / / B input pin definition 138 decoder controlled by P2.3
Sbit LS138C = P2^4; / / C input pin definition 138 decoder controlled by P2.4
/ / LED display font
Unsigned, char, code, Disp_Tab[] = {0x3f, 0x06,0x5b, 0x4f, 0x66,0x6d, 0x7d, 0x07,0x7f, 0x6f, 0x40};
Main (void)
{
Duan_ma_gw=0, duan_ma_sw=0, duan_ma_bw=0, duan_ma_qw=0,
Duan_ma_ww=0, duan_ma_sww=0, duan_ma_bww=0, duan_ma_qww=0;
Duan_ma_gw_yz=0, duan_ma_sw_yz=0, duan_ma_bw_yz=0, duan_ma_qw_yz=0,
Duan_ma_ww_y
您可能关注的文档
- 唐山试题(Tangshan examination questions).doc
- 售后维护方案(After sale maintenance plan).doc
- 商业银行经营与业务习题1(Commercial bank management and business exercises 1).doc
- 商业地产与住宅地产的不同(The difference between commercial real estate and residential real estate).doc
- 商业建筑空调节能技术措施探讨(Discussion on energy saving technical measures of air conditioning in commercial building).doc
- 商业银行中间业务与利润(Intermediary business and profit of commercial banks).doc
- 商品编码(Commodity code).doc
- 商场管理软件调查(Mall management software survey).doc
- 商洛市十二五规划(Shangluo 12th Five-Year plan).doc
- 商超教你看懂POS单上的商户编号(Shang Chao teach you to read the merchant numbers on the POS list).doc
- 显卡选购需知十条(Ten cards need to know).doc
- 普通高中信息技术学业水平考试3(General high school information technology proficiency test 3).doc
- 春节祝福短信汇总(Chinese New Year Blessing SMS summary).doc
- 显卡好坏的划分与区别(Graphics card division and difference).doc
- 普通高中信息技术学业水平考试(General high school, information technology, academic proficiency test).doc
- 智能搬运小车c语言程序(完整)(Intelligent transport cart C language program (complete)).doc
- 必威体育精装版弹力教案(The latest stretch lesson plan).doc
- 最喜欢的女英文名(My favorite woman is English).doc
- 暨南大学(Jinan University).doc
- 更新日志(Update log).doc
文档评论(0)