课程设计-基于单片机音乐倒数计时器的设计内容摘要:

R1,60,Q1。 比较分钟是否到 60 MOV R1,1。 分钟到 60重新赋值 Q1:SETB EA RETI JIAN1FEN:CLR EA。 外部中断 1,分钟微调减 1分钟 CJNE R1,1,Q2。 比较分钟是否到 1 MOV R1,60。 分钟到 1重新赋值 Q2:DEC R1 SETB EA RETI TIME0:DJNZ R2,NEXT。 计数器中断 0, T0 溢出 20次即 1秒 MOV R2,20。 R2 重新赋值 CJNE R0,0,Q4。 比较秒钟是否为 0 CJNE R1,0,Q3。 比较分钟是否为 0 SETB TR1。 开启计数器中断 1 Q3:MOV R0,60。 秒钟重新赋 值 DEC R1。 减少 1分钟 DEC R0。 减少 1秒钟 LJMP NEXT Q4:DEC R0。 减少 1秒钟 NEXT:MOV TH0,3CH。 T0 重新赋初值 MOV TL0,0B0H RETI TIME2:PUSH ACC。 音乐程序使用的计数器中断 1 PUSH PSW CPL CPL MOV TL1,20H MOV TH1,21H POP PSW POP ACC RETI TIME1:MOV R4,250。 动态显示 1MS的延时子程序 Q5:NOP NOP DJNZ R4,Q5 MOV P2,00H。 关闭片选口 RET TAB:DB 0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,90H。 数码管显示断码表 TABLE1:DW 64260,64400,64580,64684,64777,64898,64968。 乐谱表 TABLE:DB 54H,64H,38H,44H,54H,18H,34H,44H,54H,64H,4CH。 音符断码表 DB 54H,64H,38H,44H,54H,28H,44H,14H,44H,54H,3CH DB 78H,68H,78H,38H,54H,24H,54H,64H,4CH DB 54H,64H,38H,44H,54H,28H,44H,14H,44H,54H,3CH DB 00H END ;结束 五、心得体会 经过将近 5 个星期 的课程 学习 ,简单带有 LCD 显示的音乐倒数计数器基本完成,系统基本功能基本实现,测试运行也基本正常。 该系统基本上完成了计数 闹时 的功能。 当然这个系统还存在许多有待完善的地方: ▲ 功能不够完善,有一定瑕疵。 ▲ 在用单片机编写音乐方面不够熟练。 这次课程设计的时间虽然不算很长,但使我对很多东西有了更深刻的认识。 平时在课堂上无法掌握的集体操作都有了一定的进步。 总结如下: ● 查阅资料和阅读相关文献的重要性。 ● 向同学请教的重要性,团结协作的重要性。 ● 勤动手的重要性,自己动手,丰衣足食。 以前很多时候一遇到问题常常都会问同学,但是通过这次设计,我学会了自己努力解决困难,提高了自己解决问题的能力。 ● 对待任何事情都要有耐心和恒心,遇到问题要冷静地思考,积极找出症结所在,逐个解决。 ● 做事情要步步为营,不能一蹴而就,就像焊接电路,只有确保每一部都真确,才有可能实现整个电路正常工作。 通过本次课程设计,我更深刻的认识到了教学实践在大学课程中的重要性,同时也发觉到了自己在学习方面存在的许多不足之 处,在以后的学习中我会努力改进这些不足,不断提高自己的动手实践能力。 六、参考文献 单片机原理及接口技术 第三版(李朝青编) g an employment tribunal claim Employment tribunals sort out disagreements between employers and employees. You may need to make a claim to an employment tribunal if:  you don39。 t agree with the disciplinary action your employer has taken against you  your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。 t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept it. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed u。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。