登录
首页 » c » 51单片机定时闹钟程序(带按键)

51单片机定时闹钟程序(带按键)

于 2022-05-29 发布 文件大小:2.37 kB
0 89
下载积分: 2 下载次数: 1

代码说明:

//////////////////包含头文件及宏定义//////////////////////////////////////#include#include#define uchar unsigned char#define uint  unsigned int/////////////////////////////////////////////////////////////////////////////////////////继电器响应动作指示灯//////////////////////////////////////sbit light=P1^0;sbit int0_ok=P3^2;sbit int1_ok=P3^3;/////////////////数码管的段位锁存////////////////////////////////////////sbit duan=P0^0;sbit wei=P0^1;uchar bit1,bit2,bit3,bit4,bit5,bit6;///////////////小时 分钟 秒钟显示码uchar fen=0;// 分钟缓存uchar miao=0;//秒缓存uchar shi=0;//小时缓存uchar key_temp;/////按键暂存//uchar key_old;uchar key_count;//按键计数uchar key_back;/////按键备份uchar key_data;//////按键数值uchar key_con;////uchar key_ok;uchar int0_function=0;///功能0,做调节始终uchar int1_function=0;///功能1,做运行停止用u

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • MYLOD
    opengl中的lod技术地形显示源代码。(opengl of incomplete technical terrain shows the source code.)
    2005-01-14 18:08:11下载
    积分:1
  • STM32F103C8T6-I0_LED
    STM32F103C8T6 IO口操作,初学流水灯例子(STM32F103C8T6 IO port operations, beginner water lights example)
    2021-03-19 15:59:19下载
    积分:1
  • wxrki
    主要是异步通讯编程,C语言,大家可以看一下,以提高自己的水平,一起努力(Mainly asynchronous communication programming, C language, we can take a look, in order to improve their level, work togethe)
    2019-01-06 07:49:41下载
    积分:1
  • Practice1_14
    字符串交叉输入,就是将一个字符串交叉的输入到了另一个字符串当中,比如: char a[4]="ABCD" char b[4]="abcd" 则char c[8]="AaBbCcDd" (Cross-string input, is to cross a string input to another string of them, such as: char a [4] = "ABCD" char b [4] = "abcd" While char c [8] = "AaBbCcDd" )
    2009-02-19 18:26:20下载
    积分:1
  • 命令模式-烤羊肉串01
    说明:  GoDS (Go Data Structures). Containers (Sets, Lists, Stacks, Maps, Trees),
    2020-06-24 20:40:02下载
    积分:1
  • 06
    说明:  基于C#的餐饮管理系统 实现对餐厅顾客服务 点菜加菜 每日盘点查账等功能(C#-based restaurant management system à la carte to Jia Cai daily inventory audit service restaurant customers)
    2013-02-12 22:24:21下载
    积分:1
  • MLX90614
    利用在STM32处理器上的,红外测温传感器的应用(Take advantage of the STM32 processor, the application of infrared temperature sensor)
    2020-10-03 15:17:40下载
    积分:1
  • Introduction-to-AI
    人工智能导论+方法与系统+刘峡壁编著 国防工业出版社出版(Introduction to Artificial Intelligence Approach and Systems Defense Industry Publishing House)
    2015-01-15 13:39:23下载
    积分:1
  • Msp430-based-oscilloscope
    基于msp430g2553的简易示波器 无需外设.超低功耗 诺基亚5513显示 (Msp430 based oscilloscope)
    2014-01-12 12:16:42下载
    积分:1
  • 外汇风控EA
    参数解释: 应用货币 可选择 当前货币和所有货币 整体止损金额 选择的货币所有单子总亏损金额 整体止盈金额 选择的货币所有单子总盈利金额 整体止损比例 选择的货币所有单子总亏损比例,比如50%,填写50 整体止盈比例 选择的货币所有单子总盈利比例,比如50%,填写50 以下为单个单子计算,设置为0 = 不启用 动态止损金额 单个单子达到设置止损金额平仓 动态止盈金额 单个单子达到设置止盈金额平仓 动态止损 (不直接显示在定单上) 动态止盈 (不直接显示在定单上) 静态止损 (直接显示在定单上) 静态止盈 (直接显示在定单上) 移动止损激活 (当定单盈利达到设定点数时激活下面的移动止损) 移动止损点数 (止损开始从当前价以外点数往盈利方向移动) 移动保护激活 (当定单盈利达到设定点数时激活下面的移动止损保护) 移动保护点数 (止损移动到开仓价往盈利方向 + 保护点数)(Parametric interpretation: Currency can be used to select the current currency and all currencies Total Loss Amount of All Money Lists Selected by Total Stop Loss Amount Total Profit Amount of All Money Lists Selected by the Total Stop Earnings Amount The overall stop-loss ratio selects the total loss ratio of all monetary orders, such as 50%, and fills in 50%.)
    2019-03-16 10:22:51下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载