基于pic16f877的led旋转时钟_单片机设计实验报告(编辑修改稿)内容摘要:
porta,0。 测开关 sw1 按下否。 是,跳过下条指令 goto setW_Hour。 否。 则循环检测 call delay btfsc porta,0。 再次测开关 sw1 按下否。 是,跳过下条指令 goto check。 否。 则循环检测 incf W_Hour,1。 时针加 1 movlw d39。 1239。 subwf W_Hour,0。 看是否等于 12 btfsc status,Z clrf W_Hour movf W_Hour,0 movwf portc check1 btfss porta,0。 测开关 sw1 断开否。 是,跳过下条指令 goto check1。 否。 则循环检测 call delay btfss porta,0。 再次测开关 sw1 断开否。 是,跳过下条指令 goto check1。 否。 则循环检测 goto setW_Hour。 返回 setW_Minute1btfss porta,1。 sw2 松开否 goto setW_Minute1 call delay btfss porta,1 goto setW_Minute1 setW_Minute btfss porta,1。 sw2 是否按下 goto setW_Second1 check2 btfsc porta,0。 测开关 sw1 按下否。 是,跳过下条指令 goto setW_Minute。 否。 则循环检测 call delay btfsc porta,0。 再次测开关 sw1 按下否。 是,跳过下条指令 goto check2。 否。 则循环检测 incf W_Minute,1。 分针加 1 movlw d39。 6039。 subwf W_Minute,0。 看是否等于 60 班 号 单片机设计实验报告 20 btfsc status,Z clrf W_Minute movf W_Minute,0 movwf portc check3 btfss porta,0。 测开关 sw1 断开否。 是,跳过下条指令 goto check3。 否。 则循环检测 call delay btfss porta,0。 再次测开关 sw1 断开否。 是 ,跳过下条指令 goto check3。 否。 则循环检测 goto setW_Minute。 返回 setW_Second1btfss porta,1 goto setW_Second1 call delay btfss porta,1 goto setW_Second1 setW_Second btfss porta,1。 sw2 是否按下 goto begin check4 btfsc porta,0。 测开关 sw1 按下否。 是,跳过下条指令 goto setW_Second。 否。 则循环检测 call delay btfsc porta,0。 再次测开关 sw1 按下否。 是,跳过下条指令 goto check4。 否。 则循环检测 incf W_Second,1。 秒针加 1 movlw d39。 6039。 subwf W_Second,0。 看是否等于 60 btfsc status,Z clrf W_Second movf W_Second,0 movwf portc check5 btfss porta,0。 测开关 sw1 断开否。 是,跳过下条指令 goto check5。 否。 则循环检测 call delay btfss porta,0。 再次测开关 sw1 断开否。 是,跳过下条指令 goto check5。 否。 则循环检测 goto setW_Second。 返 回 begin call tbcd。 显示时间 班 号 单片机设计实验报告 21。 call Set_DS1302 rsrn movlw d39。 2039。 movwf readn。 20 圈读一次时间 show movlw d39。 2039。 subwf readn,0 btfscstatus,Z call Get_DS1302 call bcdt decf readn,1 clrf counter。 指针位置计数器清零 judge call clearc。 清表盘 movlw d39。 11939。 subwf counter,0 btfscstatus,Z goto rsrn。 判断指针位置计数器是否达到 119。 ***************是否显示刻度 *************** movlw d39。 039。 subwf counter,0 btfscstatus,Z call draw2_0 movlw d39。 139。 subwf counter,0 btfscstatus,Z call draw2_1 movlw d39。 239。 subwf counter,0 btfscstatus,Z call draw2_2 movlw d39。 339。 subwf counter,0 btfscstatus,Z call draw2_3 movlw d39。 1039。 subwf counter,0 btfscstatus,Z call drawgra 班 号 单片机设计实验报告 22 movlw d39。 2039。 subwf counter,0 btfscstatus,Z call drawgra movlw d39。 2739。 subwf counter,0 btfscstatus,Z call draw3_0 movlw d39。 2839。 subwf counter,0 btfscstatus,Z call draw3_1 movlw d39。 2939。 subwf counter,0 btfscstatus,Z call draw3_2 movlw d39。 3039。 subwf counter,0 btfscstatus,Z call draw3_3 movlw d39。 3139。 subwf counter,0 btfscstatus,Z call draw3_4 movlw d39。 3239。 subwf counter,0 btfscstatus,Z call draw3_5 movlw d39。 3339。 subwf counter,0 btfscstatus,Z call draw3_6 movlw d39。 4039。 班 号 单片机设计实验报告 23 subwf counter,0 btfscstatus,Z call drawgra movlw d39。 5039。 subwf counter,0 btfscstatus,Z call drawgra movlw d39。 5839。 subwf counter,0 btfscstatus,Z call draw6_0 movlw d39。 5939。 subwf counter,0 btfscstatus,Z call draw6_1 movlw d39。 6039。 subwf counter,0 btfscstatus,Z call draw6_2 movlw d39。 6139。 subwf counter,0 btfscstatus,Z call draw6_3 movlw d39。 6239。 subwf counter,0 btfscstatus,Z call draw6_4 movlw d39。 7039。 subwf counter,0 btfscstatus,Z call drawgra movlw d39。 8039。 subwf counter,0 btfscstatus,Z 班 号 单片机设计实验报告 24 call drawgra movlw d39。 8739。 subwf counter,0 btfscstatus,Z call draw9_0 movlw d39。 8839。 subwf counter,0 btfscstatus,Z call draw9_1 movlw d39。 8939。 subwf counter,0 btfscstatus,Z call draw9_2 movlw d39。 9039。 subwf counter,0 btfscstatus,Z call draw9_3 movlw d39。 9139。 subwf counter,0 btfscstatus,Z call draw9_4 movlw d39。 9239。 subwf counter,0 btfscstatus,Z call draw9_5 movlw d39。 9339。 subwf counter,0 btfscstatus,Z call draw9_6 movlw d39。 10039。 subwf counter,0 btfscstatus,Z call drawgra 班 号 单片机设计实验报告 25 movlw d39。 11039。 subwf counter,0 btfscstatus,Z call drawgra movlw d39。 11639。 subwf counter,0 btfscstatus,Z call draw1_0 movlw d39。 117。基于pic16f877的led旋转时钟_单片机设计实验报告(编辑修改稿)
相关推荐
简介 MySQL 是瑞典的 MySQL AB 公司开发的一个小型关系型数据库系统。 它适用于网络开发,其数据库可在因特网上随时共享。 MySQL 功能强大、运行速度快、可靠性 高、安全等优点。 经过 阅读相关文献 我们 知道 了 MySQL 数据库特性如下: ( 1)使用 C 和 C++编写,并使用了多种编译器进行测试,保证源代码的可移植性 ; ( 2)支持 AIX、 FreeBSD、 HPUX
精密稳压源将 5V的电压生成 的稳定电压,经过 R5, R6,R8 这些电阻值较大的电阻后能形成一个较小的电流,大约在毫安级的范围内,通过加入C3, C4, C7 三个电容将此时的电流信号进行滤波,得出一个稳定的电流信号传入到放大器中,将这个得到的电流信号进行放大最后输出。 图 温度检测信号处理电路 其中 PT100 温度传感器 ,它的 电阻 阻值 能够 随 着温度的变化而改变
口属性”,进入“用户窗口属性设置”,将“窗口名称”改为:液位控制;将“窗口标题”改为:液位控制;在“窗口位置”中选中“最大化显示”,其它不变,单击“确认”,见图22。 第二章 系统组态设计 6 图 21 新建窗口 图 22 窗口属性 选中 刚创建的“液位控制”用户窗口,单击“动画组态”,进第二章 系统组态设计 7 入动画制作窗口。 图形对象放置在用户窗口中,是构成用户应用系统图形界面的最小单元,
聘;企业 用户 则可以发布企业所要招聘的人才或者搜索自己所需 要的人才的简历。 本系统本着最小的花费创造最大的用途,因此该系统的开发在经济上是绝对可行的。 基于 PHP 的招聘系统的系统流程图如图 所示。 计算机与信息工程学院本科生毕业论文 (设计 ) 5 基 于 p h p 的 招 聘 系 统界 面登
功能需求 7 运行环境 该专业学习网站对运行环境无特殊要求,只要求系统为 window XP 及以上的版本即可。 一款支持 HTTP 协议的浏览器如 inter explore、 scape 等。 装上解压缩软件和迅雷或 旋风 等下载工具软件。 设计和实现上的约束 设计方面 本项目的开发者主要是学生,由于学生工作的不确定性因素太大,比如我们无法预知这一周的工作会有哪些,因为学生工作
的性能需求。 1).准确性和及时性 系统处理的准确性和及时性是系统的必要性能。 系统应能及时而且准确的根据用户权限及所输入的信息做出响应。 由于本系统的信息显示功能对于整个系统的功 能和性能完成举足轻重。 作为系统的很多数据来源,而信息的数量和时间又影响访客浏览网站极积性,其准确性和及时性很大程度上决定了系统的成败。 在系统开发过程中,必须采用一定的方法保证系统的准确性和及时性。 2).易用性