网站导航: 首页 > 设计参考 > 正文 文章搜索
74HC595应用实例-基于AT89S52+74HC595的电子万年历
 
文章编号:
100817215037
文章分类: 单片机 51系列
点 击:
...
关 键 词: 74HC595,万年历
文章来源:
www.ourdev.cn,作者:b57203493
摘 要:

闲来无事,把以前做的一块16*32的点阵屏做万年历玩玩。嘿嘿!
手头现在没有照相机,不能让大家看到实物。

本点阵显示年、月、日、星期、阴历、温度,并且时间可调!
嘿嘿,这几天比较忙,温度功能还没加进去,但细心看程序,可发现温度功能非常容易添加,程序中已经定义温度变量ram 37h 38h。
按键功能也没有添加!但比起整个工程,按键和温度的程序显得有点九牛一毛!
回头完成整个工程,拍照上传。
pcb与汇编程序ourdev_532437.rar(文件大小:34K) (原文件名:PCB与汇编程序.rar) 
 

下面是2008画的pcb
 

 


2008画的pcb (原文件名:pcb.JPG) 

 

先看程序吧!

 
  1. ;-------------------------------------------------------------------------------   
  2. ;软件环境: VW For Windows   
  3. ;硬件环境: AT89C52 MCU,MCS-51系列 MCU,etc.   
  4. ;-------------------------------------------------------------------------------   
  5. ;点阵屏引脚   
  6. ;DAT  [数据引脚]-------------------P1.4   
  7. ;SH   [移位时钟]-------------------P1.0   
  8. ;ST   [锁存时钟]-------------------P1.2   
  9. ;-------------------------------------------------------------------------------   
  10. ;单片机RAM定义   
  11. ;00H-1FH(四组寄存器)   
  12. ;20H-2FH(可位寻址区)   
  13. ;30H-5FH(变量定义区)   
  14. ;60H-9FH(第一显存区)   
  15. ;A0H-DFH(第二显存区)   
  16. ;E0H-FFH(堆栈)   
  17. ;-------------------------------------------------------------------------------   
  18. ;以下为产品接口引脚在演示程序中的预定义   
  19. ;用户在编写应用程序时,需按自己的实际硬件连线来重新定义   
  20. DAT               BIT P1.4                          ;数据引脚   
  21. SH                BIT P1.0                          ;移位时钟   
  22. ST                BIT P1.2                          ;锁存时钟   
  23. ;-------------------------------------------------------------------------------   
  24. ;-------------------------------------------------------------------------------   
  25. ;寄存器定义   
  26. ;R0显存地址   
  27. ;R1缓存地址   
  28. ;R2画面选择(只能为1,2,4,5)   
  29. ;R3移动字幕显示类型(长还是短)   
  30. ;R4比秒更小的单位   
  31. ;-------------------------------------------------------------------------------   
  32. ;以下变量用于指示当前操作字符的位置的预定义   
  33. ;用户在编写应用程序时,需按自己的实际软件程序需要来重新定义   
  34. XPOS               EQU 20H                           ;点阵屏横向数据   
  35. YPOS1              EQU 21H                           ;点纵屏横向数据   
  36. YPOS2              EQU 22H                           ;点纵屏横向数据   
  37. YPOS3              EQU 23H                           ;点纵屏横向数据   
  38. YPOS4              EQU 24H                           ;点纵屏横向数据   
  39. LP8                EQU 25H                           ;循环8次变量   
  40.   
  41. MAX                EQU 29H                           ;每月最多的天数   
  42. SEC                EQU 30H                           ;秒寄存器   
  43. MIN                EQU 31H                           ;分寄存器   
  44. HOU                EQU 32H                           ;时寄存器   
  45. DATE               EQU 33H                           ;日寄存器   
  46. WEEK               EQU 34H                           ;星期寄存器   
  47. MON                EQU 35H                           ;月寄存器   
  48. YEAR               EQU 36H                           ;年寄存器   
  49. TMMP1              EQU 37H                           ;温度小数点前   
  50. TMMP2              EQU 38H                           ;温度小数点后   
  51.   
  52. GAO                EQU 40H                           ;高四位   
  53. DI                 EQU 41H                           ;第四位   
  54. TEM                EQU 42H                           ;时间变量暂时存放地(个位和十位)   
  55. MGAO               EQU 43H                           ;移动变量高位   
  56. MDI                EQU 44H                           ;移动变量低位   
  57. DPH0               EQU 45H                           ;移动图案起始地址高8位   
  58. DPL0               EQU 46H                           ;移动图案起始地址低8位   
  59. DPH1               EQU 47H                           ;指针1高8位   
  60. DPL1               EQU 48H                           ;指针1低8位   
  61. DPH2               EQU 49H                           ;指针2高8位   
  62. DPL2               EQU 50H                           ;指针2低8位   
  63. COMR1              EQU 51H                           ;选择移动画面的类型(画面二与画面四中显示不一样)   
  64. COMR3              EQU 52H                           ;移动字幕的长短控制(画面二中移动字幕比较短)   
  65.   
  66. ;-------------------------------------------------------------------------------   
  67.                 ORG 00H                              ;整个程序开始于00H   
  68.                 AJMP MAIN    
  69.                 ORG 0BH    
  70.                 AJMP TIME0                           ;定时器程序向量   
  71.                 ORG 030H    
  72.   
  73. MAIN:    
  74.                 MOV SEC,#56H                         ;秒赋值   
  75.                 MOV MIN,#51H                         ;分赋值   
  76.                 MOV HOU,#22H                         ;时赋值   
  77.                 MOV WEEK,#01H                        ;星期赋值   
  78.                 MOV DATE,#01H                        ;日赋值   
  79.                 MOV MON,#2H                          ;月份赋值   
  80.                 MOV YEAR,#10H                        ;年份初始值   
  81.                 MOV TMMP1,#21H                       ;温度小数点前初始值   
  82.                 MOV TMMP2,#23H                       ;温度小数点后初始值   
  83.                 MOV R0,#060H                         ;显存初始地址   
  84.                 MOV R1,#0A0H                         ;缓存初始地址   
  85.                 MOV R2,#05H                          ;显示画面一   
  86.                 MOV R3,#01H                          ;移动变量显示控制   
  87.                 MOV R4,#01H                          ;20分之一秒   
  88.                 MOV SP,#0DFH                         ;堆栈指向0E0H   
  89.                 CALL CLEAR                           ;显存请屏   
  90.                 MOV TMOD,#01H                        ;选择定时器及定时器工作方式   
  91.                 MOV TH0,#03CH                         
  92.                 MOV TR0,#0B0H                        ;设置为500MS   
  93.                 SETB TR0                             ;开始定时器0计时   
  94.                 SETB EA                              ;中断总开关开   
  95.                 SETB ET0                             ;定时器开   
  96.                 CALL LONG                            ;选择移动图案的长度及显示长度   
  97.                 CALL STARTDPTR                       ;移动图案首地址   
  98.                 MOV A,DPH                             
  99.                 MOV DPH0,A                            
  100.                 MOV A,DPL                             
  101.                 MOV DPL0,A                           ;因为后面要用到DPTR所以这先把DPTR保存起来   
  102. LOOP:    
  103.                 MOV R2,#01H    
  104. LOOP1:    
  105.                 CALL PUTIN1    
  106.                 CALL PROCESS    
  107.                 CALL DISPLAY                         ;调用显示程序   
  108.                 CALL DISPLAY                          
  109.                 MOV A,SEC    
  110.                 CJNE A,#015H,LOOP1    
  111.                 MOV R2,#02H    
  112.                 MOV R3,#01H                          ;变量选择从头开始   
  113.                 CALL LONG                            ;选择移动图案的长度及显示长度   
  114.                 CALL STARTDPTR                       ;移动图案首地址   
  115.                 MOV A,DPH                             
  116.                 MOV DPH0,A                            
  117.                 MOV A,DPL                             
  118.                 MOV DPL0,A                           ;因为后面要用到DPTR所以这先把DPTR保存起来   
  119. LOOP2:    
  120.                 CALL PROCESS    
  121.                 CALL PUTIN2                           
  122.                 CALL PUTIN22_                         
  123.                 CALL ORLL    
  124.                 CALL DISPLAY                         ;调用显示程序   
  125.                 CALL DISPLAY                          
  126.                 MOV A,SEC    
  127.                 CJNE A,#030H,LOOP2    
  128.                 MOV R2,#04H    
  129. LOOP3:    
  130.                 CALL PROCESS    
  131.                 CALL PUTIN3                           
  132.                 CALL PUTIN32                          
  133.                 CALL ORLL                            ;合成PUTIN3画面与PUTIN32画面   
  134.                 CALL DISPLAY                         ;调用显示程序   
  135.                 CALL DISPLAY    
  136.                 MOV A,SEC                          
  137.                 CJNE A,#045H,LOOP3    
  138.                 MOV R2,#05H    
  139.                 MOV R3,#01H                          ;变量选择从头开始   
  140.                 CALL LONG                            ;选择移动图案的长度及显示长度   
  141.                 CALL STARTDPTR                       ;移动图案首地址   
  142.                 MOV A,DPH                             
  143.                 MOV DPH0,A                            
  144.                 MOV A,DPL                             
  145.                 MOV DPL0,A                           ;因为后面要用到DPTR所以这先把DPTR保存起来   
  146. LOOP4:    
  147.                 CALL PROCESS    
  148.                 CALL PUTIN4                           
  149.                 CALL PUTIN22_                         
  150.                 CALL ORLL                             
  151.                 CALL DISPLAY                         ;调用显示程序   
  152.                 CALL DISPLAY    
  153.                 MOV A,SEC                          
  154.                 CJNE A,#000H,LOOP4    
  155.                 AJMP LOOP                             
  156.   
  157.   
  158. ;-------------------------------------------------------------------------------   
  159. ;子程序名称:CLEAR().   
  160. ;功能:显存清零   
  161. ;输入:.   
  162. ;输出:.   
  163. ;影响:.   
  164. ;-------------------------------------------------------------------------------   
  165. CLEAR:    
  166.                 MOV @R0,#00H    
  167.                 INC R0    
  168.                 CJNE R0,#0A0H,CLEAR             ;显存清零   
  169.                 MOV R0,#060H    
  170.                 RET    
  171.   
  172. ;-------------------------------------------------------------------------------   
  173. ;###############################################################################   
  174. ;###############################四种时间画面的赋值##############################   
  175. ;###############################################################################   
  176. ;-------------------------------------------------------------------------------   
  177. ;-------------------------------------------------------------------------------   
  178. ;子程序名称:PUTIN1().   
  179. ;功能:画面一的RAM赋值   
  180. ;输入:.   
  181. ;输出:.   
  182. ;影响:.   
  183. ;-------------------------------------------------------------------------------   
  184. PUTIN1:    
  185.                 CALL EMPTY                           ;RAM写入两个空值   
  186.                 MOV A,HOU                            ;取出时值   
  187.                 CALL FIGURE                          ;数字写入RAM   
  188.                 CALL POINT1    
  189.                 MOV A,MIN                            ;取出分值   
  190.                 CALL FIGURE                          ;数字写入RAM   
  191.                 CALL EMPTY    
  192.                 RET    
  193. ;-------------------------------------------------------------------------------   
  194. ;子程序名称:PUTIN2().   
  195. ;功能:画面二的RAM赋值   
  196. ;输入:.   
  197. ;输出:.   
  198. ;影响:.   
  199. ;-------------------------------------------------------------------------------   
  200. PUTIN2:    
  201.                 CALL EMPTY    
  202.                 MOV A,HOU                            ;取出时值   
  203.                 CALL FIGURE                          ;数字写入RAM   
  204.                 CALL POINT2    
  205.                 MOV A,MIN                            ;取出分值   
  206.                 CALL FIGURE                          ;数字写入RAM   
  207.                 CALL EMPTY    
  208.                 CALL EMPTY    
  209.                 CALL EMPTY    
  210.                 INC R2                               ;秒大显示大小有变化   
  211.                 MOV A,SEC                            ;取出秒值   
  212.                 CALL FIGURE                          ;数字写入RAM   
  213.                 DEC R2    
  214.                 RET    
  215. ;-------------------------------------------------------------------------------   
  216. ;子程序名称:PUTIN3().   
  217. ;功能:画面三的RAM赋值   
  218. ;输入:.   
  219. ;输出:.   
  220. ;影响:.   
  221. ;-------------------------------------------------------------------------------   
  222. PUTIN3:    
  223.                 MOV A,HOU                            ;取出时值   
  224.                 CALL FIGURE                          ;数字写入RAM   
  225.                 CALL POINT3    
  226.                 MOV A,MIN                            ;取出分值   
  227.                 CALL FIGURE                          ;数字写入RAM   
  228.                 CALL EMPTY    
  229.                 CALL EMPTY    
  230.                 MOV A,SEC                            ;取出秒值   
  231.                 CALL FIGURE                          ;数字写入RAM   
  232.                 RET    
  233. ;-------------------------------------------------------------------------------   
  234. ;子程序名称:PUTIN4().   
  235. ;功能:画面四的RAM赋值   
  236. ;输入:.   
  237. ;输出:.   
  238. ;影响:.   
  239. ;-------------------------------------------------------------------------------   
  240. PUTIN4:    
  241.                 CALL EMPTY    
  242.                 CALL EMPTY    
  243.                 CALL EMPTY    
  244.                 MOV A,HOU                            ;取出时值   
  245.                 CALL FIGURE                          ;数字写入RAM   
  246.                 CALL POINT4    
  247.                 MOV A,MIN                            ;取出分值   
  248.                 CALL FIGURE                          ;数字写入RAM   
  249.                 CALL EMPTY    
  250.                 CALL EMPTY    
  251.                 MOV A,SEC                            ;取出秒值   
  252.                 CALL FIGURE                          ;数字写入RAM   
  253.                 CALL EMPTY    
  254.                 CALL EMPTY    
  255.                 CALL EMPTY    
  256.                 RET    
  257. ;-------------------------------------------------------------------------------   
  258. ;###############################################################################   
  259. ;###############################其他数据写入RAM#################################   
  260. ;###############################################################################   
  261. ;-------------------------------------------------------------------------------   
  262. ;-------------------------------------------------------------------------------   
  263. ;子程序名称:PUTIN22().   
  264. ;功能:   
  265. ;输入:.   
  266. ;输出:.   
  267. ;影响:.   
  268. ;-------------------------------------------------------------------------------   
  269.   
  270. PUTIN22_:                                                
  271.                 MOV A,DPH0                               
  272.                 MOV DPH,A                                
  273.                 MOV A,DPL0                               
  274.                 MOV DPL,A                               ;把DPTR0中的值释放出来   
  275. PUTIN22:                                                 
  276.                 MOV R1,#0A0H                             
  277.                 MOV A,#00H                               
  278.                 MOVC A,@A+DPTR                           
  279.                 CJNE A,#0EEH,PUTIN22_2                  ;判断移动固定图案是否取完   
  280.                 MOV A,R3    
  281.                 CJNE A,COMR3,PUTIN22_1                  ;判断整个移动图案是否取完   
  282.                 MOV R3,#01H                             ;控制移动变量的取值   
  283.                 CALL STARTDPTR                          ;移动字幕的初始地址   
  284.                 AJMP PUTIN22                            ;回到本开始   
  285. PUTIN22_1:    
  286.                 INC DPTR                                ;固定图案写完,使指针指向下一图案开始   
  287.                 MOV A,DPH    
  288.                 MOV DPH2,A    
  289.                 MOV A,DPL    
  290.                 MOV DPL2,A                              ;保存下一图案的指针到DPH2和DPL2   
  291.                 CALL PUTCHAR                            ;利用R3选择出要显示的变量,并提取出变量的十位和个位   
  292.                 MOV A,MGAO                               
  293.                 CALL TAKE                               ;换算出对应的首地址   
  294.                 MOV MGAO,#0FFH                          ;十位显示完后做标记   
  295.                 AJMP PUTIN22                            ;回到本开始   
  296. PUTIN22_2:    
  297.                 MOV A,#00H    
  298.                 MOVC A,@A+DPTR    
  299.                 CJNE A,#0BBH,PUTIN22_5                  ;判断变量是否显示完毕   
  300.                 MOV A,MDI                               ;提取个位   
  301.                 CJNE A,#0FFH,PUTIN22_3                  ;判断个位是否已经显示   
  302.                 AJMP PUTIN22_4                          ;显示过则跳到固定图案   
  303. PUTIN22_3:    
  304.                 MOV A,MDI                                
  305.                 MOV MDI,#0FFH                            
  306.                 CALL TAKE                                
  307.                 AJMP PUTIN22                            ;回到本开始   
  308. PUTIN22_4:    
  309.                 INC R3                                  ;指向下一固定图案   
  310.                 MOV A,DPH2    
  311.                 MOV DPH,A    
  312.                 MOV A,DPL2    
  313.                 MOV DPL,A                               ;取出保存的指针   
  314.                 AJMP PUTIN22                            ;回到本开始   
  315. ;-------------------------------------------------------------------------------   
  316. ;子程序名称:PUTIN22_5().   
  317. ;功能:整屏显示   
  318. ;输入:.   
  319. ;输出:.   
  320. ;影响:.   
  321. ;-------------------------------------------------------------------------------   
  322. PUTIN22_5:    
  323.                 PUSH MGAO                                
  324.                 PUSH MDI                                 
  325.                 PUSH DPH                                 
  326.                 PUSH DPL                                 
  327.                 MOV A,R3                                 
  328.                 PUSH A                                   
  329.                 MOV A,DPH2    
  330.                 MOV DPH1,A    
  331.                 MOV A,DPL2    
  332.                 MOV DPL1,A                              ;变量的保存   
  333. PUTIN22_6:                                               
  334.                 MOV A,#00H                               
  335.                 MOVC A,@A+DPTR                           
  336.                 CJNE A,#0EEH,PUTIN22_8                  ;判断移动图案显示是否完成   
  337.                 MOV A,R3    
  338.                 CJNE A,COMR3,PUTIN22_7                  ;判断整个移动图案是否显示完毕   
  339.                 MOV R3,#01H                             ;变量控制字复位   
  340.                 CALL STARTDPTR                          ;移动固定图案的首地址   
  341.                 AJMP PUTIN22_6                          ;回到初始位置   
  342. PUTIN22_7:                                               
  343.                 INC DPTR                                ;指向下一固定图案的首地址   
  344.                 MOV A,DPH                                
  345.                 MOV DPH1,A                               
  346.                 MOV A,DPL                                
  347.                 MOV DPL1,A                              ;保存指针   
  348.                 CALL PUTCHAR                             
  349.                 MOV A,MGAO                               
  350.                 CALL TAKE                                
  351.                 MOV MGAO,#0FFH                          ;标记十位,表示已经显示   
  352.                 AJMP PUTIN22_6                          ;回到初始位置   
  353. PUTIN22_8:                                               
  354.                 MOV A,#00H                               
  355.                 MOVC A,@A+DPTR                           
  356.                 CJNE A,#0BBH,PUTIN22_11                 ;判断变量已经显示完毕   
  357.                 MOV A,MDI                                
  358.                 CJNE A,#0FFH,PUTIN22_9                  ;判断变量已经完全显示完毕   
  359.                 AJMP PUTIN22_10                          
  360. PUTIN22_9:                                               
  361.                 MOV A,MDI                               ;显示个位   
  362.                 MOV MDI,#0FFH                            
  363.                 CALL TAKE                                
  364.                 AJMP PUTIN22_6                          ;回到初始位置   
  365. PUTIN22_10:                                              
  366.                 INC R3                                  ;指向下一固定图案   
  367.                 MOV A,DPH1                               
  368.                 MOV DPH,A                                
  369.                 MOV A,DPL1                               
  370.                 MOV DPL,A                               ;取出固定图案指针   
  371.                 AJMP PUTIN22_6                          ;回到初始位置   
  372. PUTIN22_11:                                             ;RAM赋值   
  373.                 MOV A,#00H                               
  374.                 MOVC A,@A+DPTR                           
  375.                 MOV @R1,A                                
  376.                 INC R1                                   
  377.                 INC DPTR                                 
  378.                 MOV A,R1    
  379.                 CJNE A,COMR1,PUTIN22_6                  ;判断整屏显示是否已完成   
  380.                 CALL ADDWEEK                            ;画面二中有静止的星期显示   
  381.                 POP A                                    
  382.                 MOV R3,A                                 
  383.                 POP DPL                                  
  384.                 POP DPH                                  
  385.                 INC DPTR                                 
  386.                 INC DPTR                                ;为达到移动效果   
  387.   
  388.                 MOV A,DPH    
  389.                 MOV DPH0,A    
  390.                 MOV A,DPL    
  391.                 MOV DPL0,A    
  392.   
  393.                 POP MDI                                  
  394.                 POP MGAO                                ;数据从堆栈弹出   
  395.                 MOV R1,#0A0H    
  396.                 RET                                      
  397. ;-------------------------------------------------------------------------------   
  398. ;子程序名称:PUTIN32().   
  399. ;功能:画面三中温度的合成   
  400. ;输入:.   
  401. ;输出:.   
  402. ;影响:.   
  403. ;-------------------------------------------------------------------------------   
  404. PUTIN32:    
  405.                 MOV R0,#0A0H                             
  406.                 CALL EMPTY                               
  407.                 CALL EMPTY                               
  408.                 DEC R2                                   
  409.                 DEC R2                                   
  410.                 MOV A,TMMP1                              
  411.                 CALL FIGURE                              
  412.                 CALL POINT32                             
  413.                 MOV A,TMMP2                              
  414.                 CALL FIGURE                              
  415.                 CALL CHAR_C                              
  416.                 MOV R0,#060H                             
  417.                 INC R2                                   
  418.                 INC R2                                   
  419.                 RET                                      
  420. ;-------------------------------------------------------------------------------   
  421. ;###############################################################################   
  422. ;###############################缓存与显存相或##################################   
  423. ;###############################################################################   
  424. ;-------------------------------------------------------------------------------   
  425. ;-------------------------------------------------------------------------------   
  426. ;子程序名称:ORLL().   
  427. ;功能:缓存与显存相或.   
  428. ;输入:.   
  429. ;输出:.   
  430. ;影响:.   
  431. ;-------------------------------------------------------------------------------   
  432. ORLL:    
  433.                 MOV R0,#060H                             
  434.                 MOV R1,#0A0H                             
  435. ORLL1:    
  436.                 MOV A,@R1                                
  437.                 ORL A,@R0                                
  438.                 MOV @R0,A                                
  439.                 INC R0                                   
  440.                 INC R1                                   
  441.                 CJNE R0,#0A0H,ORLL1                      
  442.                 MOV R0,#060H                             
  443.                 MOV R1,#0A0H                             
  444.                 RET                                      
  445. ;-------------------------------------------------------------------------------   
  446. ;###############################################################################   
  447. ;##################################一列空格#####################################   
  448. ;###############################################################################   
  449. ;-------------------------------------------------------------------------------   
  450. ;-------------------------------------------------------------------------------   
  451. ;子程序名称:EMPTY().   
  452. ;功能:连续写入两个'0'到RAM.   
  453. ;输入:00H.   
  454. ;输出:@R0=0.   
  455. ;影响:DPTR,R0,@R0.   
  456. ;-------------------------------------------------------------------------------   
  457. EMPTY:    
  458.                 MOV @R0,#00H    
  459.                 INC R0    
  460.                 MOV @R0,#00H    
  461.                 INC R0    
  462.                 RET    
  463. ;-------------------------------------------------------------------------------   
  464. ;###############################################################################   
  465. ;##################################时间计算#####################################   
  466. ;###############################################################################   
  467. ;-------------------------------------------------------------------------------   
  468. ;-------------------------------------------------------------------------------   
  469. ;子程序名称:PROCESS().   
  470. ;功能:时间换算程序.   
  471. ;输入:.   
  472. ;输出:.   
  473. ;影响:.   
  474. ;-------------------------------------------------------------------------------   
  475. PROCESS:    
  476.                 MOV A,SEC    
  477.                 CJNE A,#060H,PROCESSEND    
  478.                 MOV SEC,#00H    
  479.                 INC MIN    
  480.                 MOV A,MIN    
  481.                 DA A    
  482.                 MOV MIN,A    
  483.                 CJNE A,#060H,PROCESSEND    
  484.                 MOV MIN,#00H    
  485.                 INC HOU    
  486.                 MOV A,HOU    
  487.                 DA A    
  488.                 MOV HOU,A    
  489.                 CJNE A,#024H,PROCESSEND    
  490.                 MOV HOU,#00H    
  491.                 INC WEEK    
  492.                 MOV A,WEEK    
  493.                 CJNE A,#08H,PROCESS1    
  494.                 MOV WEEK,#01H    
  495. PROCESS1:    
  496.                 INC DATE    
  497.                 MOV A,DATE    
  498.                 DA A    
  499.                 LCALL MAXDATE    
  500.                 MOV A,DATE    
  501.                 CJNE A,MAX,PROCESSEND    
  502.                 MOV DATE,#01H    
  503.                 INC MON    
  504.                 MOV A,MON    
  505.                 DA A    
  506.                 MOV MON,A    
  507.                 CJNE A,#013H,PROCESSEND    
  508.                 MOV MON,#01H    
  509.                 INC YEAR    
  510.                 MOV A,YEAR    
  511.                 DA A    
  512.                 MOV YEAR,A    
  513. PROCESSEND:    
  514.                 RET    
  515. ;-------------------------------------------------------------------------------   
  516. ;子程序名称:MAXDATE().   
  517. ;功能:算出每月的最多天数.   
  518. ;输入:.   
  519. ;输出:?   
  520. ;影响:.   
  521. ;-------------------------------------------------------------------------------   
  522. MAXDATE:    
  523.                 MOV A,MON    
  524.                 DEC A    
  525.                 MOV B,#05H                      
  526.                 MUL AB                          
  527.                 MOV DPTR,#MAXDATE1              
  528.                 JMP @A+DPTR                     
  529. MAXDATE1:                                       
  530.                 MOV MAX,#032H                  ;因为主程序是相等则循序执行所以这里用的是月最大天数加一   
  531.                 AJMP MAXDATEEND                 
  532.                 MOV MAX,#031H                   
  533.                 AJMP MAXDATEEND                 
  534.                 MOV MAX,#032H    
  535.                 AJMP MAXDATEEND    
  536.                 MOV MAX,#031H    
  537.                 AJMP MAXDATEEND    
  538.                 MOV MAX,#032H    
  539.                 AJMP MAXDATEEND    
  540.                 MOV MAX,#031H    
  541.                 AJMP MAXDATEEND    
  542.                 MOV MAX,#032H    
  543.                 AJMP MAXDATEEND    
  544.                 MOV MAX,#032H    
  545.                 AJMP MAXDATEEND    
  546.                 MOV MAX,#031H    
  547.                 AJMP MAXDATEEND    
  548.                 MOV MAX,#032H    
  549.                 AJMP MAXDATEEND    
  550.                 MOV MAX,#031H    
  551.                 AJMP MAXDATEEND    
  552.                 MOV MAX,#032H    
  553.                 AJMP MAXDATEEND    
  554. MAXDATEEND:    
  555.                 RET    
  556. ;-------------------------------------------------------------------------------   
  557. ;###############################################################################   
  558. ;#################################代表秒的点####################################   
  559. ;###############################################################################   
  560. ;-------------------------------------------------------------------------------   
  561. ;-------------------------------------------------------------------------------   
  562. ;子程序名称:POINT1().   
  563. ;功能:RAM中写入代表秒的点(画面一).   
  564. ;输入:.   
  565. ;输出:?   
  566. ;影响:.   
  567. ;-------------------------------------------------------------------------------   
  568. POINT1:    
  569.                 CALL EMPTY    
  570.                 MOV A,R4    
  571.                 CJNE A,#0AH,POINT11    
  572. POINT11:    
  573.                 JC POINT12    
  574.                 CALL EMPTY    
  575.                 CALL EMPTY    
  576.                 AJMP POINT1END    
  577. POINT12:    
  578.                 MOV @R0,#6H    
  579.                 INC R0    
  580.                 MOV @R0,#030H    
  581.                 INC R0    
  582.                 MOV @R0,#06H    
  583.                 INC R0    
  584.                 MOV @R0,#030H    
  585.                 INC R0    
  586. POINT1END:    
  587.                 CALL EMPTY    
  588.                 RET    
  589. ;-------------------------------------------------------------------------------   
  590. ;子程序名称:POINT2().   
  591. ;功能:RAM中写入代表秒的点(画面二).   
  592. ;输入:00H.   
  593. ;输出:无.   
  594. ;影响:R0,@R0.   
  595. ;-------------------------------------------------------------------------------   
  596. POINT2:    
  597.                 CALL EMPTY    
  598.                 MOV A,R4    
  599.                 CJNE A,#0AH,POINT21    
  600. POINT21:    
  601.                 JC POINT22    
  602.                 CALL EMPTY    
  603.                 AJMP POINT2END    
  604. POINT22:    
  605.                 MOV @R0,#00H    
  606.                 INC R0    
  607.                 MOV @R0,#036H    
  608.                 INC R0    
  609. POINT2END:    
  610.                 CALL EMPTY    
  611.                 RET    
  612. ;-------------------------------------------------------------------------------   
  613. ;子程序名称:POINT3().   
  614. ;功能:RAM中写入代表秒的点(画面三).   
  615. ;输入:00H.   
  616. ;输出:无.   
  617. ;影响:R0,@R0.   
  618. ;-------------------------------------------------------------------------------   
  619. POINT3:    
  620.                 CALL EMPTY    
  621.                 MOV A,R4    
  622.                 CJNE A,#0AH,POINT31    
  623. POINT31:    
  624.                 JC POINT322    
  625.                 CALL EMPTY    
  626.                 AJMP POINT3END    
  627. POINT322:    
  628.                 MOV @R0,#36H    
  629.                 INC R0    
  630.                 MOV @R0,#00H    
  631.                 INC R0    
  632. POINT3END:    
  633.                 CALL EMPTY    
  634.                 RET    
  635. ;-------------------------------------------------------------------------------   
  636. ;子程序名称:POINT4().   
  637. ;功能:RAM中写入代表秒的点(画面四).   
  638. ;输入:.   
  639. ;输出:.   
  640. ;影响:.   
  641. ;-------------------------------------------------------------------------------   
  642. POINT4:    
  643.                 CALL EMPTY    
  644.                 MOV A,R4    
  645.                 CJNE A,#0AH,POINT41    
  646. POINT41:    
  647.                 JC POINT42    
  648.                 CALL EMPTY    
  649.                 AJMP POINT4END    
  650. POINT42:    
  651.                 MOV @R0,#050H    
  652.                 INC R0    
  653.                 MOV @R0,#00H    
  654.                 INC R0    
  655. POINT4END:    
  656.                 CALL EMPTY    
  657.                 RET    
  658. ;-------------------------------------------------------------------------------   
  659. ;###############################################################################   
  660. ;###################################其它图样####################################   
  661. ;###############################################################################   
  662. ;-------------------------------------------------------------------------------   
  663. ;-------------------------------------------------------------------------------   
  664. ;子程序名称:POINT32().   
  665. ;功能:RAM中写入温度小数点(画面三).   
  666. ;输入:.   
  667. ;输出:无.   
  668. ;影响:.   
  669. ;修改日期:2010.01.27   
  670. ;-------------------------------------------------------------------------------   
  671. POINT32:    
  672.                 CALL EMPTY    
  673.                 MOV @R0,#00H    
  674.                 INC R0    
  675.                 MOV @R0,#03H    
  676.                 INC R0    
  677.                 CALL EMPTY    
  678.                 RET    
  679. ;-------------------------------------------------------------------------------   
  680. ;子程序名称:CHAR_C().   
  681. ;功能:RAM中写入温度符号(画面三).   
  682. ;输入:.   
  683. ;输出:无.   
  684. ;影响:.   
  685. ;修改日期:2010.01.27   
  686. ;-------------------------------------------------------------------------------   
  687. CHAR_C:    
  688.                 MOV DPTR,#TAB32_C    
  689. CHAR_C1:    
  690.                 MOV A,#00H    
  691.                 MOVC A,@A+DPTR    
  692.                 MOV @R0,A    
  693.                 INC R0    
  694.                 INC DPTR    
  695.                 MOV A,#00H    
  696.                 MOVC A,@A+DPTR    
  697.                 CJNE A,#0BBH,CHAR_C1    
  698.                 RET    
  699. ;-------------------------------------------------------------------------------   
  700. ;###############################################################################   
  701. ;################################查表并写入RAM##################################   
  702. ;###############################################################################   
  703. ;-------------------------------------------------------------------------------   
  704. ;-------------------------------------------------------------------------------   
  705. ;子程序名称:FIGURE().   
  706. ;功能:数字写入RAM   
  707. ;输入:A.   
  708. ;输出:A.   
  709. ;影响:@R0.   
  710. ;-------------------------------------------------------------------------------   
  711. FIGURE:    
  712.                 CALL BRING                           ;分离小时的十位和个位   
  713.                 MOV A,GAO                             
  714.                 CALL FIND                            ;DPTR值寻址   
  715.                 CALL RAM                             ;寻址到的数据写入RAM   
  716.                 CALL EMPTY                           ;RAM写入两个空值   
  717.                 MOV A,DI    
  718.                 CALL FIND    
  719.                 CALL RAM    
  720.                 RET    
  721. ;-------------------------------------------------------------------------------   
  722. ;子程序名称:BRING().   
  723. ;功能:提取十位和个位   
  724. ;输入:A.   
  725. ;输出:.   
  726. ;影响:.   
  727. ;-------------------------------------------------------------------------------   
  728. BRING:    
  729.                 MOV TEM,A    
  730.                 ANL A,#0FH    
  731.                 MOV DI,A    
  732.                 MOV A,TEM    
  733.                 SWAP A    
  734.                 ANL A,#0FH    
  735.                 MOV GAO,A    
  736.                 RET    
  737. ;-------------------------------------------------------------------------------   
  738. ;子程序名称:RAM().   
  739. ;功能:把查表的数据写入RAM   
  740. ;输入:@DPTR.   
  741. ;输出:@R0.   
  742. ;影响:DPTR,R0 .   
  743. ;-------------------------------------------------------------------------------   
  744. RAM:    
  745.                 MOV A,#00H                      ;偏移量清零   
  746.                 MOVC A,@A+DPTR                  ;查表   
  747.                 MOV @R0,A                       ;显存赋值   
  748.                 INC DPTR                        ;表格地址加一   
  749.                 INC R0                          ;显存地址加一   
  750.                 MOV A,#00H                       
  751.                 MOVC A,@A+DPTR                   
  752.                 CJNE A,#0BBH,RAM                ;数字赋值完成   
  753. RAMEND:    
  754.                 RET    
  755. ;-------------------------------------------------------------------------------   
  756. ;子程序名称:FIND().   
  757. ;功能:分别提取十位和个位数字在表格中的首地址   
  758. ;输入:43H(TEM0).   
  759. ;输出:40H(GAO),41H(DI).   
  760. ;影响:42H(TEM).   
  761. ;-------------------------------------------------------------------------------   
  762. FIND:                                            
  763.                 CALL PICTURE                    ;选择将要送入首地址的值   
  764.                 MOV B,#05H                       
  765.                 MUL AB                           
  766.                 JMP @A+DPTR                      
  767. TDPTR1:                                         ;画面一数字查表   
  768.                 MOV DPTR,#TAB11_0                
  769.                 AJMP FINDEND                     
  770.                 MOV DPTR,#TAB11_1                
  771.                 AJMP FINDEND                     
  772.                 MOV DPTR,#TAB11_2                
  773.                 AJMP FINDEND                     
  774.                 MOV DPTR,#TAB11_3                
  775.                 AJMP FINDEND                     
  776.                 MOV DPTR,#TAB11_4                
  777.                 AJMP FINDEND                     
  778.                 MOV DPTR,#TAB11_5                
  779.                 AJMP FINDEND                     
  780.                 MOV DPTR,#TAB11_6                
  781.                 AJMP FINDEND                     
  782.                 MOV DPTR,#TAB11_7                
  783.                 AJMP FINDEND                     
  784.                 MOV DPTR,#TAB11_8                
  785.                 AJMP FINDEND                     
  786.                 MOV DPTR,#TAB11_9                
  787.                 AJMP FINDEND                     
  788. TDPTR2:                                         ;画面二数字查表   
  789.                 MOV DPTR,#TAB21_0                
  790.                 AJMP FINDEND                     
  791.                 MOV DPTR,#TAB21_1                
  792.                 AJMP FINDEND                     
  793.                 MOV DPTR,#TAB21_2                
  794.                 AJMP FINDEND                     
  795.                 MOV DPTR,#TAB21_3                
  796.                 AJMP FINDEND                     
  797.                 MOV DPTR,#TAB21_4                
  798.                 AJMP FINDEND                     
  799.                 MOV DPTR,#TAB21_5                
  800.                 AJMP FINDEND                     
  801.                 MOV DPTR,#TAB21_6                
  802.                 AJMP FINDEND                     
  803.                 MOV DPTR,#TAB21_7                
  804.                 AJMP FINDEND                     
  805.                 MOV DPTR,#TAB21_8                
  806.                 AJMP FINDEND                     
  807.                 MOV DPTR,#TAB21_9                
  808.                 AJMP FINDEND                     
  809. TDPTR22:                                        ;画面二数字查表   
  810.                 MOV DPTR,#TAB21_0_               
  811.                 AJMP FINDEND                     
  812.                 MOV DPTR,#TAB21_1_               
  813.                 AJMP FINDEND                     
  814.                 MOV DPTR,#TAB21_2_               
  815.                 AJMP FINDEND                     
  816.                 MOV DPTR,#TAB21_3_               
  817.                 AJMP FINDEND                     
  818.                 MOV DPTR,#TAB21_4_               
  819.                 AJMP FINDEND                     
  820.                 MOV DPTR,#TAB21_5_               
  821.                 AJMP FINDEND                     
  822.                 MOV DPTR,#TAB21_6_               
  823.                 AJMP FINDEND                     
  824.                 MOV DPTR,#TAB21_7_               
  825.                 AJMP FINDEND                     
  826.                 MOV DPTR,#TAB21_8_               
  827.                 AJMP FINDEND                     
  828.                 MOV DPTR,#TAB21_9_               
  829.                 AJMP FINDEND                     
  830. TDPTR3:                                         ;画面三数据查表   
  831.                 MOV DPTR,#TAB31_0                
  832.                 AJMP FINDEND                     
  833.                 MOV DPTR,#TAB31_1                
  834.                 AJMP FINDEND                     
  835.                 MOV DPTR,#TAB31_2                
  836.                 AJMP FINDEND                     
  837.                 MOV DPTR,#TAB31_3                
  838.                 AJMP FINDEND                     
  839.                 MOV DPTR,#TAB31_4                
  840.                 AJMP FINDEND                     
  841.                 MOV DPTR,#TAB31_5                
  842.                 AJMP FINDEND                     
  843.                 MOV DPTR,#TAB31_6                
  844.                 AJMP FINDEND                     
  845.                 MOV DPTR,#TAB31_7                
  846.                 AJMP FINDEND                     
  847.                 MOV DPTR,#TAB31_8                
  848.                 AJMP FINDEND                     
  849.                 MOV DPTR,#TAB31_9                
  850.                 AJMP FINDEND                     
  851. TDPTR4:                                         ;画面三数据查表   
  852.                 MOV DPTR,#TAB41_0                
  853.                 AJMP FINDEND                     
  854.                 MOV DPTR,#TAB41_1                
  855.                 AJMP FINDEND                     
  856.                 MOV DPTR,#TAB41_2                
  857.                 AJMP FINDEND                     
  858.                 MOV DPTR,#TAB41_3                
  859.                 AJMP FINDEND                     
  860.                 MOV DPTR,#TAB41_4                
  861.                 AJMP FINDEND                     
  862.                 MOV DPTR,#TAB41_5                
  863.                 AJMP FINDEND                     
  864.                 MOV DPTR,#TAB41_6                
  865.                 AJMP FINDEND                     
  866.                 MOV DPTR,#TAB41_7                
  867.                 AJMP FINDEND                     
  868.                 MOV DPTR,#TAB41_8                
  869.                 AJMP FINDEND                     
  870.                 MOV DPTR,#TAB41_9                
  871.                 AJMP FINDEND                     
  872. FINDEND:                                         
  873.                 RET    
  874. ;-------------------------------------------------------------------------------   
  875. ;子程序名称:PICTURE().   
  876. ;功能:选择将要送入首地址的值.   
  877. ;输入:R2.   
  878. ;输出:无.   
  879. ;影响:无.   
  880. ;-------------------------------------------------------------------------------   
  881. PICTURE:    
  882.                 CJNE R2,#1H,PICTURE1    
  883.                 MOV DPTR,#TDPTR1                 
  884.                 AJMP PICEND    
  885. PICTURE1:    
  886.                 CJNE R2,#2H,PICTURE22    
  887.                 MOV DPTR,#TDPTR2                ;画面二的时间和画面三中的温度均要使用此查表指令   
  888.                 AJMP PICEND    
  889. PICTURE22:    
  890.                 CJNE R2,#3H,PICTURE3    
  891.                 MOV DPTR,#TDPTR22               ;画面二中数字大小不一样   
  892.                 AJMP PICEND    
  893. PICTURE3:    
  894.                 CJNE R2,#4H,PICTURE4    
  895.                 MOV DPTR,#TDPTR3                 
  896.                 AJMP PICEND    
  897. PICTURE4:    
  898.                 MOV DPTR,#TDPTR4    
  899. PICEND:    
  900.                 RET    
  901. ;-------------------------------------------------------------------------------   
  902. ;子程序名称:PUTCHAR().   
  903. ;功能:利用R3选择出要显示的变量   
  904. ;输入:R3.   
  905. ;输出:.   
  906. ;影响:.   
  907. ;-------------------------------------------------------------------------------   
  908. PUTCHAR:    
  909.                 CJNE R3,#1,CHAR1    
  910.                 MOV A,YEAR    
  911.                 CALL BRING_    
  912.                 AJMP CHAREND                               ;取出变量各位和十位对应的首地址   
  913. CHAR1:    
  914.                 CJNE R3,#2,CHAR2    
  915.                 MOV A,MON    
  916.                 CALL BRING_    
  917.                 AJMP CHAREND    
  918. CHAR2:    
  919.                 CJNE R3,#3,CHAR3    
  920.                 MOV A,DATE    
  921.                 CALL BRING_    
  922.                 AJMP CHAREND    
  923. CHAR3:    
  924.                 CJNE R3,#4,CHAR4    
  925.                 MOV A,WEEK    
  926.                 CALL BRING_    
  927.                 AJMP CHAREND    
  928. CHAR4:    
  929.                 CJNE R3,#5,CHAR5    
  930.                 MOV A,TMMP1    
  931.                 CALL BRING_    
  932.                 AJMP CHAREND    
  933. CHAR5:    
  934.                 CJNE R3,#6,CHAREND    
  935.                 MOV A,TMMP2    
  936.                 CALL BRING_    
  937.                 AJMP CHAREND    
  938. CHAREND:    
  939.                 RET    
  940.   
  941. ;-------------------------------------------------------------------------------   
  942. ;子程序名称:BRING_().   
  943. ;功能:提取十位和个位   
  944. ;输入:A.   
  945. ;输出:40H(MGAO),41H(DI).   
  946. ;影响:42H(TEM).   
  947. ;-------------------------------------------------------------------------------   
  948. BRING_:    
  949.                 MOV TEM,A    
  950.                 ANL A,#0FH    
  951.                 MOV MDI,A    
  952.                 MOV A,TEM    
  953.                 SWAP A    
  954.                 ANL A,#0FH    
  955.                 MOV MGAO,A    
  956.                 RET    
  957.   
  958. ;-------------------------------------------------------------------------------   
  959. ;子程序名称:STARTDPTR().   
  960. ;功能:选择移动图案首地址的位置   
  961. ;输入:R2.   
  962. ;输出:.   
  963. ;影响:.   
  964. ;-------------------------------------------------------------------------------   
  965. STARTDPTR:    
  966.                 CJNE R2,#2H,STARTDPTR1    
  967.                 MOV DPTR,#TAB22_    
  968.                 AJMP STARTDPTREND    
  969. STARTDPTR1:    
  970.                 CJNE R2,#5H,STARTDPTREND    
  971.                 MOV DPTR,#TAB42_    
  972. STARTDPTREND:    
  973.                 RET    
  974. ;-------------------------------------------------------------------------------   
  975. ;子程序名称:LONG().   
  976. ;功能:选择移动图案的长度及显示长度   
  977. ;输入:R2.   
  978. ;输出:.   
  979. ;影响:.   
  980. ;-------------------------------------------------------------------------------   
  981. LONG:                                                    
  982.                 CJNE R2,#2H,LONG1    
  983.                 MOV COMR3,#04H    
  984.                 MOV COMR1,#0D0H    
  985.                 AJMP LONGEND    
  986. LONG1:    
  987.                 CJNE R2,#5H,LONGEND    
  988.                 MOV COMR3,#06H    
  989.                 MOV COMR1,#0E0H    
  990. LONGEND:    
  991.                 RET    
  992. ;-------------------------------------------------------------------------------   
  993. ;子程序名称:ADDWEEK().   
  994. ;功能:画面二中有静止的星期显示   
  995. ;输入:.   
  996. ;输出:.   
  997. ;影响:.   
  998. ;-------------------------------------------------------------------------------   
  999. ADDWEEK:    
  1000.                 CJNE R1,#0E0H,ADDWEEK1    
  1001.                 AJMP ADDWEEKEND    
  1002. ADDWEEK1:    
  1003.                 MOV A,WEEK    
  1004.                 DEC A    
  1005.                 MOV DPTR,#ADDWEEK2    
  1006.                 MOV B,#05H    
  1007.                 MUL AB                                    
  1008.                 JMP @A+DPTR                               
  1009. ADDWEEK2:    
  1010.                 MOV DPTR,#TAB22_W1                        
  1011.                 AJMP ADDWEEK3                             
  1012.                 MOV DPTR,#TAB22_W2                        
  1013.                 AJMP ADDWEEK3                             
  1014.                 MOV DPTR,#TAB22_W3                        
  1015.                 AJMP ADDWEEK3                             
  1016.                 MOV DPTR,#TAB22_W4                        
  1017.                 AJMP ADDWEEK3                             
  1018.                 MOV DPTR,#TAB22_W5                        
  1019.                 AJMP ADDWEEK3                             
  1020.                 MOV DPTR,#TAB22_W6                        
  1021.                 AJMP ADDWEEK3                             
  1022.                 MOV DPTR,#TAB22_W7                        
  1023.                 AJMP ADDWEEK3                             
  1024. ADDWEEK3:    
  1025.                 MOV A,#00H    
  1026.                 MOVC A,@A+DPTR    
  1027.                 CJNE A,#0BBH,ADDWEEK4    
  1028.                 AJMP ADDWEEKEND    
  1029. ADDWEEK4:    
  1030.                 MOV @R1,A    
  1031.                 INC R1    
  1032.                 INC DPTR    
  1033.                 AJMP ADDWEEK3    
  1034. ADDWEEKEND:    
  1035.                 RET    
  1036. ;-------------------------------------------------------------------------------   
  1037. ;子程序名称:TAKE().   
  1038. ;功能:移动图案变量首地址赋值   
  1039. ;输入:R2,R3.   
  1040. ;输出:.   
  1041. ;影响:   
  1042. ;-------------------------------------------------------------------------------   
  1043. TAKE:    
  1044.                 CJNE R3,#4H,TAKE1    
  1045.                 MOV DPTR,#TDPTR42    
  1046.                 AJMP TAKE3    
  1047.   
  1048. TAKE1:    
  1049.                 CJNE R2,#2,TAKE2    
  1050.                 MOV DPTR,#TDPTR22_    
  1051.                 AJMP TAKE3    
  1052. TAKE2:    
  1053.                 CJNE R2,#5,TAKE2    
  1054.                 MOV DPTR,#TDPTR32    
  1055.                 AJMP TAKE3    
  1056. TAKE3:    
  1057.                 MOV B,#05H                               
  1058.                 MUL AB                                   
  1059.                 JMP @A+DPTR                              
  1060. TDPTR22_:                                               ;画面二数字查表   
  1061.                 MOV DPTR,#TAB22_0                        
  1062.                 AJMP TAKEDEND                            
  1063.                 MOV DPTR,#TAB22_1                        
  1064.                 AJMP TAKEDEND                            
  1065.                 MOV DPTR,#TAB22_2                        
  1066.                 AJMP TAKEDEND                            
  1067.                 MOV DPTR,#TAB22_3                        
  1068.                 AJMP TAKEDEND                            
  1069.                 MOV DPTR,#TAB22_4                        
  1070.                 AJMP TAKEDEND                            
  1071.                 MOV DPTR,#TAB22_5                        
  1072.                 AJMP TAKEDEND                            
  1073.                 MOV DPTR,#TAB22_6                        
  1074.                 AJMP TAKEDEND                            
  1075.                 MOV DPTR,#TAB22_7                        
  1076.                 AJMP TAKEDEND                            
  1077.                 MOV DPTR,#TAB22_8                        
  1078.                 AJMP TAKEDEND                            
  1079.                 MOV DPTR,#TAB22_9                        
  1080.                 AJMP TAKEDEND                            
  1081. TDPTR32:                                                 ;画面四数字查表   
  1082.                 MOV DPTR,#TAB42_0                        
  1083.                 AJMP TAKEDEND                            
  1084.                 MOV DPTR,#TAB42_1                        
  1085.                 AJMP TAKEDEND                            
  1086.                 MOV DPTR,#TAB42_2                        
  1087.                 AJMP TAKEDEND                            
  1088.                 MOV DPTR,#TAB42_3                        
  1089.                 AJMP TAKEDEND                            
  1090.                 MOV DPTR,#TAB42_4                        
  1091.                 AJMP TAKEDEND                            
  1092.                 MOV DPTR,#TAB42_5                        
  1093.                 AJMP TAKEDEND                            
  1094.                 MOV DPTR,#TAB42_6                        
  1095.                 AJMP TAKEDEND                            
  1096.                 MOV DPTR,#TAB42_7                        
  1097.                 AJMP TAKEDEND                            
  1098.                 MOV DPTR,#TAB42_8                        
  1099.                 AJMP TAKEDEND                            
  1100.                 MOV DPTR,#TAB42_9                        
  1101.                 AJMP TAKEDEND                            
  1102. TDPTR42:    
  1103.                                                         ;画面四星期查表   
  1104.                 MOV DPTR,#TAB42_W0                       
  1105.                 AJMP TAKEDEND                            
  1106.                 MOV DPTR,#TAB42_W1                       
  1107.                 AJMP TAKEDEND                            
  1108.                 MOV DPTR,#TAB42_W2                       
  1109.                 AJMP TAKEDEND                            
  1110.                 MOV DPTR,#TAB42_W3                       
  1111.                 AJMP TAKEDEND                            
  1112.                 MOV DPTR,#TAB42_W4                       
  1113.                 AJMP TAKEDEND                            
  1114.                 MOV DPTR,#TAB42_W5                       
  1115.                 AJMP TAKEDEND                            
  1116.                 MOV DPTR,#TAB42_W6                       
  1117.                 AJMP TAKEDEND                            
  1118.                 MOV DPTR,#TAB42_W7                       
  1119.                 AJMP TAKEDEND                            
  1120. TAKEDEND:    
  1121.                 RET    
  1122. ;-------------------------------------------------------------------------------   
  1123. ;###############################################################################   
  1124. ;###############################点阵屏显示子程序################################   
  1125. ;###############################################################################   
  1126. ;-------------------------------------------------------------------------------   
  1127. ;子程序名称:DISPLAY().   
  1128. ;功能:点阵屏显示子程序   
  1129. ;输入:RAM(060H-09FH).   
  1130. ;输出:无.   
  1131. ;影响:20H,21H,22H,23H,24H,25H,A.   
  1132. ;-------------------------------------------------------------------------------   
  1133. DISPLAY:    
  1134.                 CLR SH                    ;移位时钟清零   
  1135.                 CLR ST                    ;锁存始终清零   
  1136.                 MOV YPOS1,#080H           ;纵行移动赋值'10000000b'   
  1137.                 MOV YPOS2,#00H             
  1138.                 MOV YPOS3,#00H             
  1139.                 MOV YPOS4,#00H             
  1140.                 MOV R0,#060H              ;显存起始地址   
  1141. DISAGAIN:                                  
  1142.                 CALL DISY                 ;纵行显示程序调用   
  1143.                 MOV A,@R0                 ;RAM中的值A   
  1144.                 CALL DISX                 ;横行显示调整程序调用   
  1145.                 CALL DISOUT               ;把A中的值送到数据线DAT上   
  1146.                 INC R0                    ;RAM地址加1   
  1147.                 MOV A,@R0                  
  1148.                 CALL DISX                  
  1149.                 CALL DISOUT                
  1150.                 INC R0                     
  1151.                 MOV A,YPOS1                
  1152.                 CALL DISOUT                
  1153.                 MOV A,YPOS2                
  1154.                 CALL DISOUT                
  1155.                 MOV A,YPOS3                
  1156.                 CALL DISOUT                
  1157.                 MOV A,YPOS4                
  1158.                 CALL DISOUT                
  1159.                 SETB ST                    
  1160.                 CLR ST                     
  1161.                 JB YPOS1.7,DISEND         ;判断整个显存内容是否已经显示完成   
  1162.                 AJMP DISAGAIN              
  1163. DISEND:    
  1164.                 MOV A,#00H                ;再次给送显示数据,消除屏幕最后一列过于亮的BUG   
  1165.                 CALL DISOUT    
  1166.                 MOV A,#00H    
  1167.                 CALL DISOUT    
  1168.                 MOV A,#80H    
  1169.                 CALL DISOUT    
  1170.                 MOV A,#00H    
  1171.                 CALL DISOUT    
  1172.                 MOV A,#00H    
  1173.                 CALL DISOUT    
  1174.                 MOV A,#000H    
  1175.                 CALL DISOUT    
  1176.                 SETB ST                    
  1177.                 CLR ST                     
  1178.                 MOV R0,#060H    
  1179.                 RET    
  1180. ;-------------------------------------------------------------------------------   
  1181. ;子程序名称:DISY().   
  1182. ;功能:纵行显示程序子程序(每次只能显示一纵行)   
  1183. ;输入:21H,22H,23H,24H.   
  1184. ;输出:21H,22H,23H,24H.   
  1185. ;影响:21H,22H,23H,24H,,A.   
  1186. ;-------------------------------------------------------------------------------   
  1187. DISY:    
  1188.                 MOV A,YPOS1                
  1189.                 RLC A                     ;把21H大高位'1'给'C'   
  1190.                 MOV A,YPOS4                
  1191.                 RLC A                     ;把上面从21H中取出的高位(C)给24H的首位   
  1192.                 MOV YPOS4,A                
  1193.                 MOV A,YPOS3                
  1194.                 RLC A                      
  1195.                 MOV YPOS3,A                
  1196.                 MOV A,YPOS2                
  1197.                 RLC A                      
  1198.                 MOV YPOS2,A                
  1199.                 MOV A,YPOS1                
  1200.                 RLC A                      
  1201.                 MOV YPOS1,A               ;首次运行本子程序后个寄存器的值为:21H(00000000B),22H(00000000B),23H(00000000B),24H(00000001B)   
  1202.                 RET    
  1203. ;-------------------------------------------------------------------------------   
  1204. ;子程序名称:DISX(A).   
  1205. ;功能:横行显示调整程序(电路设计时为了方便,用程序调整锁存器引脚对应的横行)   
  1206. ;输入:A.   
  1207. ;输出:A.   
  1208. ;影响:20H(可位寻址去第一个寄存器),A.   
  1209. ;-------------------------------------------------------------------------------   
  1210. DISX:    
  1211.                 RLC A    
  1212.                 MOV 04H,C    
  1213.                 RLC A    
  1214.                 MOV 05H,C    
  1215.                 RLC A    
  1216.                 MOV 03H,C    
  1217.                 RLC A    
  1218.                 MOV 00H,C    
  1219.                 RLC A    
  1220.                 MOV 02H,C    
  1221.                 RLC A    
  1222.                 MOV 01H,C    
  1223.                 RLC A    
  1224.                 MOV 06H,C    
  1225.                 RLC A    
  1226.                 MOV 07H,C    
  1227.                 MOV A,XPOS    
  1228.                 RET    
  1229. ;-------------------------------------------------------------------------------   
  1230. ;子程序名称:DISOUT().   
  1231. ;功能:把A中的值送到数据线DAT上   
  1232. ;输入:A.   
  1233. ;输出:无.   
  1234. ;影响:A,25H.   
  1235. ;-------------------------------------------------------------------------------   
  1236. DISOUT:    
  1237.                 CLR SH    
  1238.                 MOV LP8,#08H    
  1239. DISOUT1:    
  1240.                 RLC A    
  1241.                 MOV DAT,C    
  1242.                 SETB SH    
  1243.                 CLR SH    
  1244.                 DJNZ LP8,DISOUT1    
  1245.                 RET    
  1246. ;-------------------------------------------------------------------------------   
  1247. ;子程序名称:TIME0().   
  1248. ;功能:定时器0中断程序   
  1249. ;输入:.   
  1250. ;输出:无.   
  1251. ;影响:.   
  1252. ;-------------------------------------------------------------------------------   
  1253. TIME0:    
  1254.                 PUSH PSW    
  1255.                 PUSH A    
  1256.                 MOV TH0,#03CH    
  1257.                 MOV TL0,#0B0H    
  1258.                 INC R4    
  1259.                 CJNE R4,#14H,TIME01    
  1260.                 MOV R4,#00H    
  1261.                 INC SEC    
  1262.                 MOV A,SEC    
  1263.                 DA A    
  1264.                 MOV SEC,A    
  1265. TIME01:    
  1266.                 POP A    
  1267.                 POP PSW    
  1268.                 RETI    
  1269. ;-------------------------------------------------------------------------------   
  1270. ;###############################################################################   
  1271. ;##################################数据表格#####################################   
  1272. ;###############################################################################   
  1273. ;-------------------------------------------------------------------------------   
  1274. ;画面一   
  1275. ;-------------------------------------------------------------------------------   
  1276. ;画面一中的时间变量   
  1277. TAB11_0:    
  1278. DB  03FH,0FCH,03FH,0FCH,030H,00CH,030H,00CH,03FH,0FCH,03FH,0FCH,0BBH;0   
  1279. TAB11_1:    
  1280. DB  000H,000H,000H,000H,000H,000H,000H,000H,03FH,0FCH,03FH,0FCH,0BBH;1   
  1281. TAB11_2:    
  1282. DB  031H,0FCH,031H,0FCH,031H,08CH,031H,08CH,03FH,08CH,03FH,08CH,0BBH;2   
  1283. TAB11_3:    
  1284. DB  031H,08CH,031H,08CH,031H,08CH,031H,08CH,03FH,0FCH,03FH,0FCH,0BBH;3   
  1285. TAB11_4:    
  1286. DB  03FH,080H,03FH,080H,001H,080H,001H,080H,03FH,0FCH,03FH,0FCH,0BBH;4   
  1287. TAB11_5:    
  1288. DB  03FH,08CH,03FH,08CH,031H,08CH,031H,08CH,031H,0FCH,031H,0FCH,0BBH;5   
  1289. TAB11_6:    
  1290. DB  03FH,0FCH,03FH,0FCH,031H,08CH,031H,08CH,031H,0FCH,031H,0FCH,0BBH;6   
  1291. TAB11_7:    
  1292. DB  030H,000H,030H,000H,030H,000H,030H,000H,03FH,0FCH,03FH,0FCH,0BBH;7   
  1293. TAB11_8:    
  1294. DB  03FH,0FCH,03FH,0FCH,031H,08CH,031H,08CH,03FH,0FCH,03FH,0FCH,0BBH;8   
  1295. TAB11_9:    
  1296. DB  03FH,08CH,03FH,08CH,031H,08CH,031H,08CH,03FH,0FCH,03FH,0FCH,0BBH;9   
  1297. ;-------------------------------------------------------------------------------   
  1298. ;画面二   
  1299. ;-------------------------------------------------------------------------------   
  1300. ;画面二中的时间变量1及画面三中的温度变量数字   
  1301. TAB21_0:    
  1302. DB  000H,07FH,000H,041H,000H,041H,000H,07FH,0BBH;0   
  1303. TAB21_1:    
  1304. DB  000H,000H,000H,000H,000H,000H,000H,07FH,0BBH;1   
  1305. TAB21_2:    
  1306. DB  000H,04FH,000H,049H,000H,049H,000H,079H,0BBH;2   
  1307. TAB21_3:    
  1308. DB  000H,049H,000H,049H,000H,049H,000H,07FH,0BBH;3   
  1309. TAB21_4:    
  1310. DB  000H,078H,000H,008H,000H,008H,000H,07FH,0BBH;4   
  1311. TAB21_5:    
  1312. DB  000H,079H,000H,049H,000H,049H,000H,04FH,0BBH;5   
  1313. TAB21_6:    
  1314. DB  000H,07FH,000H,049H,000H,049H,000H,04FH,0BBH;6   
  1315. TAB21_7:    
  1316. DB  000H,040H,000H,040H,000H,040H,000H,07FH,0BBH;7   
  1317. TAB21_8:    
  1318. DB  000H,07FH,000H,049H,000H,049H,000H,07FH,0BBH;8   
  1319. TAB21_9:    
  1320. DB  000H,079H,000H,049H,000H,049H,000H,07FH,0BBH;9   
  1321. ;-------------------------------------------------------------------------------   
  1322. ;画面二中的时间变量2   
  1323. TAB21_0_:    
  1324. DB  000H,01FH,000H,011H,000H,01FH,0BBH;0   
  1325. TAB21_1_:    
  1326. DB  000H,000H,000H,000H,000H,01FH,0BBH;1   
  1327. TAB21_2_:    
  1328. DB  000H,017H,000H,015H,000H,01DH,0BBH;2   
  1329. TAB21_3_:    
  1330. DB  000H,015H,000H,015H,000H,01FH,0BBH;3   
  1331. TAB21_4_:    
  1332. DB  000H,01CH,000H,004H,000H,01FH,0BBH;4   
  1333. TAB21_5_:    
  1334. DB  000H,01DH,000H,015H,000H,017H,0BBH;5   
  1335. TAB21_6_:    
  1336. DB  000H,01FH,000H,015H,000H,017H,0BBH;6   
  1337. TAB21_7_:    
  1338. DB  000H,010H,000H,010H,000H,01FH,0BBH;7   
  1339. TAB21_8_:    
  1340. DB  000H,01FH,000H,015H,000H,01FH,0BBH;8   
  1341. TAB21_9_:    
  1342. DB  000H,01DH,000H,015H,000H,01FH,0BBH;9   
  1343. ;-------------------------------------------------------------------------------   
  1344. ;画面二中移动字幕   
  1345. TAB22_:    
  1346. DB  063H,000H,085H,000H,089H,000H,091H,000H,061H,000H,000H,000H    
  1347. DB  07EH,000H,081H,000H,081H,000H,081H,000H,07EH,000H,000H,000H;20   
  1348. DB  0EEH    
  1349. DB  000H,000H,010H,000H,010H,000H,010H,000H,010H,000H,010H    
  1350. DB  000H,000H,000H                                        ;-   
  1351. DB  0EEH    
  1352. DB  000H,000H,010H,000H,010H,000H,010H,000H,010H,000H,010H    
  1353. DB  000H,000H,000H                                        ;-   
  1354. DB  0EEH    
  1355. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1356. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1357. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,0EEH;______   
  1358. ;-------------------------------------------------------------------------------   
  1359. ;画面二中的移动数字变量   
  1360. TAB22_0:    
  1361. DB  07EH,000H,081H,000H,081H,000H,081H,000H,07EH,000H,000H,000H,0BBH;0   
  1362. TAB22_1:    
  1363. DB  000H,000H,041H,000H,0FFH,000H,001H,000H,000H,000H,000H,000H,0BBH;1   
  1364. TAB22_2:    
  1365. DB  063H,000H,085H,000H,089H,000H,091H,000H,061H,000H,000H,000H,0BBH;2   
  1366. TAB22_3:    
  1367. DB  042H,000H,081H,000H,091H,000H,091H,000H,06EH,000H,000H,000H,0BBH;3   
  1368. TAB22_4:    
  1369. DB  000H,000H,034H,000H,044H,000H,0FFH,000H,004H,000H,000H,000H,0BBH;4   
  1370. TAB22_5:    
  1371. DB  0F2H,000H,091H,000H,091H,000H,091H,000H,08EH,000H,000H,000H,0BBH;5   
  1372. TAB22_6:    
  1373. DB  07EH,000H,091H,000H,091H,000H,0D1H,000H,00EH,000H,000H,000H,0BBH;6   
  1374. TAB22_7:    
  1375. DB  080H,000H,080H,000H,08FH,000H,0B0H,000H,0C0H,000H,000H,000H,0BBH;7   
  1376. TAB22_8:    
  1377. DB  076H,000H,089H,000H,089H,000H,089H,000H,076H,000H,000H,000H,0BBH;8   
  1378. TAB22_9:    
  1379. DB  070H,000H,08BH,000H,089H,000H,089H,000H,07EH,000H,000H,000H,0BBH;9   
  1380. ;-------------------------------------------------------------------------------   
  1381. ;画面二中的星期变量   
  1382. TAB22_W1:    
  1383. DB  000H,000H,000H,000H,000H,000H,020H,080H,07FH,080H,000H,080H,000H,000H,000H,000H,0BBH;1   
  1384. TAB22_W2:    
  1385. DB  000H,000H,000H,000H,021H,080H,042H,080H,044H,080H,048H,080H,030H,080H,000H,000H,0BBH;2   
  1386. TAB22_W3:    
  1387. DB  000H,000H,000H,000H,040H,080H,048H,080H,048H,080H,048H,080H,037H,000H,000H,000H,0BBH;3   
  1388. TAB22_W4:    
  1389. DB  000H,000H,000H,000H,006H,000H,01AH,000H,022H,000H,07FH,080H,002H,000H,000H,000H,0BBH;4   
  1390. TAB22_W5:    
  1391. DB  000H,000H,000H,000H,078H,080H,048H,080H,048H,080H,048H,080H,04FH,080H,000H,000H,0BBH;5   
  1392. TAB22_W6:    
  1393. DB  000H,000H,000H,000H,07FH,080H,048H,080H,048H,080H,048H,080H,06FH,080H,000H,000H,0BBH;6   
  1394. TAB22_W7:    
  1395. DB  000H,000H,000H,000H,07FH,080H,048H,080H,048H,080H,048H,080H,07FH,080H,000H,000H,0BBH;日   
  1396. ;-------------------------------------------------------------------------------   
  1397. ;画面三   
  1398. ;-------------------------------------------------------------------------------   
  1399. ;画面三中的时间变量   
  1400. TAB31_0:    
  1401. DB  07FH,000H,041H,000H,041H,000H,07FH,000H,0BBH;0   
  1402. TAB31_1:    
  1403. DB  000H,000H,000H,000H,000H,000H,07FH,000H 0BBH;1   
  1404. TAB31_2:    
  1405. DB  04FH,000H,049H,000H,049H,000H,079H,000H,0BBH;2   
  1406. TAB31_3:    
  1407. DB  049H,000H,049H,000H,049H,000H,07FH,000H 0BBH;3   
  1408. TAB31_4:    
  1409. DB  078H,000H,008H,000H,008H,000H,07FH,000H,0BBH;4   
  1410. TAB31_5:    
  1411. DB  079H,000H,049H,000H,049H,000H,04FH,000H 0BBH;5   
  1412. TAB31_6:    
  1413. DB  07FH,000H,049H,000H,049H,000H,04FH,000H,0BBH;6   
  1414. TAB31_7:    
  1415. DB  040H,000H,040H,000H,040H,000H,07FH,000H 0BBH;7   
  1416. TAB31_8:    
  1417. DB  07FH,000H,049H,000H,049H,000H,07FH,000H,0BBH;8   
  1418. TAB31_9:    
  1419. DB  079H,000H,049H,000H,049H,000H,07FH,000H,0BBH;9   
  1420. ;-------------------------------------------------------------------------------   
  1421. ;画面三中的温度符号   
  1422. TAB32_C:    
  1423. DB  000H,000H,000H,060H,000H,01CH,000H,022H,000H    
  1424. DB  041H,000H,041H,000H,022H,000H,000H,000H,000H;C   
  1425. DB  0BBH    
  1426. ;-------------------------------------------------------------------------------   
  1427. ;画面四   
  1428. ;-------------------------------------------------------------------------------   
  1429. ;画面四中的时间   
  1430. TAB41_0:    
  1431. DB  0F8H,000H,088H,000H,0F8H,000H,0BBH;0   
  1432. TAB41_1:    
  1433. DB  000H,000H,000H,000H,0F8H,000H,0BBH;1   
  1434. TAB41_2:    
  1435. DB  0B8H,000H,0A8H,000H,0E8H,000H,0BBH;2   
  1436. TAB41_3:    
  1437. DB  0A8H,000H,0A8H,000H,0F8H,000H,0BBH;3   
  1438. TAB41_4:    
  1439. DB  0E0H,000H,020H,000H,0F8H,000H,0BBH;4   
  1440. TAB41_5:    
  1441. DB  0E8H,000H,0A8H,000H,0B8H,000H,0BBH;5   
  1442. TAB41_6:    
  1443. DB  0F8H,000H,0A8H,000H,0B8H,000H,0BBH;6   
  1444. TAB41_7:    
  1445. DB  080H,000H,080H,000H,0F8H,000H,0BBH;7   
  1446. TAB41_8:    
  1447. DB  0F8H,000H,0A8H,000H,0F8H,000H,0BBH;8   
  1448. TAB41_9:    
  1449. DB  0E8H,000H,0A8H,000H,0F8H,000H,0BBH;9   
  1450. ;-------------------------------------------------------------------------------   
  1451. ;画面四中的移动字幕   
  1452. TAB42_:    
  1453. DB  000H,040H,000H,040H,000H,090H,001H,010H,002H,090H,004H,071H,002H,016H,001H,018H    
  1454. DB  000H,080H,000H,040H,000H,040H,000H,000H,000H,041H,004H,041H,004H,042H,004H,044H    
  1455. DB  004H,058H,007H,0E0H,004H,058H,004H,044H,004H,042H,004H,041H,000H,041H,000H,000H    
  1456. DB  000H,011H,000H,012H,000H,01CH,007H,0D4H,005H,052H,005H,05FH,005H,055H,005H,055H    
  1457. DB  007H,0D5H,000H,015H,000H,011H,000H,000H,000H,0C6H,001H,00AH,001H,012H,001H,022H    
  1458. DB  000H,0C2H,000H,000H,000H,0FCH,001H,002H,001H,002H,001H,002H,000H,0FCH,000H,000H;今天是20   
  1459. DB  0EEH    
  1460. DB  000H,088H,001H,008H,006H,078H,002H,048H,002H,048H,003H,0FFH,002H,048H,002H,048H    
  1461. DB  002H,048H,002H,008H,000H,000H,000H,000H                                        ;年   
  1462. DB  0EEH    
  1463. DB  000H,000H,000H,001H,000H,002H,007H,0FCH,004H,090H,004H,090H,004H,091H,004H,091H    
  1464. DB  007H,0FFH,000H,000H,000H,000H,000H,000H                                        ;月   
  1465. DB  0EEH    
  1466. DB  000H,000H,000H,000H,007H,0FFH,004H,042H,004H,042H,004H,042H,004H,042H,004H,042H    
  1467. DB  004H,042H,007H,0FFH,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1468. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1469. DB  000H,005H,000H,009H,007H,0F5H,005H,055H,005H,055H,005H,07FH,005H,055H,005H,055H    
  1470. DB  005H,055H,007H,0D5H,000H,001H,000H,000H,002H,009H,007H,0FAH,002H,0ACH,002H,0A8H    
  1471. DB  007H,0FCH,002H,00AH,000H,001H,007H,0FEH,004H,090H,004H,091H,007H,0FFH,000H,000H    
  1472. DB  000H,000H                                                                      ;日 星期   
  1473. DB  0EEH    
  1474. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1475. DB  000H,000H,000H,000H,000H,000H,000H,000H,004H,08FH,002H,070H,000H,001H,000H,01FH    
  1476. DB  007H,0D1H,005H,05FH,005H,051H,005H,05FH,005H,051H,007H,0DFH,000H,001H,000H,000H    
  1477. DB  000H,003H,003H,0FCH,002H,081H,002H,089H,003H,0E9H,002H,0AEH,006H,0AAH,002H,0AEH    
  1478. DB  003H,0E9H,002H,089H,002H,081H,000H,000H                                        ;  温度   
  1479. DB  0EEH    
  1480. DB  000H,000H,007H,000H,005H,000H,007H,000H,000H,000H,001H,0FCH,002H,002H,002H,002H    
  1481. DB  002H,002H,002H,002H,001H,084H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1482. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H    
  1483. DB  000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H;C   
  1484. DB  0EEH    
  1485. ;-------------------------------------------------------------------------------   
  1486. ;画面四中的移动数字变量   
  1487. TAB42_0:    
  1488. DB  000H,0FCH,001H,002H,001H,002H,001H,002H,000H,0FCH,000H,000H,0BBH;0   
  1489. TAB42_1:    
  1490. DB  000H,000H,000H,082H,001H,0FEH,000H,002H,000H,000H,000H,000H,0BBH;1   
  1491. TAB42_2:    
  1492. DB  000H,0C6H,001H,00AH,001H,012H,001H,022H,000H,0C2H,000H,000H,0BBH;2   
  1493. TAB42_3:    
  1494. DB  000H,084H,001H,002H,001H,022H,001H,022H,000H,0DCH,000H,000H,0BBH;3   
  1495. TAB42_4:    
  1496. DB  000H,010H,000H,068H,000H,088H,001H,0FEH,000H,00AH,000H,000H,0BBH;4   
  1497. TAB42_5:    
  1498. DB  001H,0E4H,001H,022H,001H,022H,001H,022H,001H,01CH,000H,000H,0BBH;5   
  1499. TAB42_6:    
  1500. DB  000H,0FCH,001H,022H,001H,022H,001H,0A2H,000H,01CH,000H,000H,0BBH;6   
  1501. TAB42_7:    
  1502. DB  001H,080H,001H,000H,001H,03EH,001H,0C0H,001H,000H,000H,000H,0BBH;7   
  1503. TAB42_8:    
  1504. DB  000H,0DCH,001H,022H,001H,022H,001H,022H,000H,0DCH,000H,000H,0BBH;8   
  1505. TAB42_9:    
  1506. DB  000H,0E0H,001H,016H,001H,012H,001H,012H,000H,0FCH,000H,000H,0BBH;9   
  1507. ;-------------------------------------------------------------------------------   
  1508. ;画面四中的星期变量   
  1509. TAB42_W0:    
  1510. DB  0BBH    
  1511. TAB42_W1:    
  1512. DB  000H,020H,000H,020H,000H,020H,000H,020H,000H,020H,000H,020H,000H,020H,000H,020H    
  1513. DB  000H,020H,000H,060H,000H,020H,000H,000H                                        ;一   
  1514. DB  0BBH    
  1515. TAB42_W2:    
  1516. DB  000H,002H,001H,002H,001H,002H,001H,002H,001H,002H,001H,002H,001H,002H,001H,002H    
  1517. DB  003H,002H,001H,002H,000H,002H,000H,000H                                        ;二   
  1518. DB  0BBH    
  1519. TAB42_W3:    
  1520. DB  000H,001H,002H,001H,002H,001H,002H,021H,002H,021H,002H,021H,002H,021H,002H,021H    
  1521. DB  006H,021H,002H,003H,000H,001H,000H,000H                                        ;三   
  1522. DB  0BBH    
  1523. TAB42_W4:    
  1524. DB  000H,000H,007H,0FFH,004H,00AH,004H,012H,007H,0E2H,004H,002H,004H,002H,007H,0FAH    
  1525. DB  004H,00AH,004H,00AH,007H,0FFH,000H,000H                                        ;四   
  1526. DB  0BBH    
  1527. TAB42_W5:    
  1528. DB  000H,001H,004H,041H,004H,041H,004H,04FH,007H,0F1H,004H,041H,004H,041H,004H,041H    
  1529. DB  004H,07FH,004H,001H,000H,001H,000H,000H                                        ;五   
  1530. DB  0BBH    
  1531. TAB42_W6:    
  1532. DB  000H,081H,000H,082H,000H,08CH,000H,0B0H,004H,080H,003H,080H,000H,0A0H,000H,090H    
  1533. DB  000H,08CH,000H,083H,000H,080H,000H,000H                                        ;六   
  1534. DB  0BBH    
  1535. TAB42_W7:    
  1536. DB  000H,000H,000H,000H,007H,0FFH,004H,042H,004H,042H,004H,042H,004H,042H,004H,042H    
  1537. DB  004H,042H,007H,0FFH,000H,000H,000H,000H                                        ;日   
  1538. DB  0BBH    
  1539.   
  1540.                 END    


 


 (原文件名:IMG_0723.jpg) 
引用图片



 


 (原文件名:IMG_0724.jpg) 
引用图片



 


 (原文件名:IMG_0725.jpg) 
引用图片



 


 (原文件名:IMG_0726.jpg) 
引用图片



 


 (原文件名:IMG_0727.jpg) 
引用图片



 


 (原文件名:IMG_0729.jpg) 
引用图片



 


 (原文件名:IMG_0730.jpg) 
引用图片



 


 (原文件名:IMG_0732.jpg) 
引用图片



 


 (原文件名:IMG_0733.jpg) 
引用图片



 


 (原文件名:IMG_0734.jpg) 
引用图片



 


 (原文件名:IMG_0736.jpg) 
引用图片



 


 (原文件名:IMG_0737.jpg) 
引用图片



 


 (原文件名:IMG_0738.jpg) 
引用图片



 


 (原文件名:IMG_0739.jpg) 
引用图片



 


 (原文件名:IMG_0740.jpg) 
引用图片



 


 (原文件名:IMG_0741.jpg) 
引用图片



 


 (原文件名:IMG_0742.jpg) 
引用图片



 


 (原文件名:IMG_0743.jpg) 
引用图片



 


 (原文件名:IMG_0744.jpg) 
引用图片



 


 (原文件名:IMG_0745.jpg) 
引用图片



 


 (原文件名:IMG_0746.jpg) 
引用图片



 


 (原文件名:IMG_0747.jpg) 
引用图片



 


 (原文件名:IMG_0748.jpg) 
引用图片



 


 (原文件名:IMG_0749.jpg) 
引用图片



 


 (原文件名:IMG_0751.jpg) 
引用图片



 


 (原文件名:IMG_0752.jpg) 
引用图片



 


 (原文件名:IMG_0753.jpg) 
引用图片



 


 (原文件名:IMG_0754.jpg) 
引用图片



 


 (原文件名:IMG_0755.jpg) 
引用图片



 


 (原文件名:IMG_0756.jpg) 
引用图片



 


 (原文件名:IMG_0757.jpg) 
引用图片



 


 (原文件名:IMG_0758.jpg) 
引用图片



 


 (原文件名:IMG_0759.jpg) 
引用图片



 


 (原文件名:IMG_0760.jpg) 
引用图片



 


 (原文件名:IMG_0762.jpg) 
引用图片



 


 (原文件名:IMG_0763.jpg) 
引用图片



 


 (原文件名:IMG_0764.jpg) 
引用图片



 


 (原文件名:IMG_0765.jpg) 
引用图片



 


 (原文件名:IMG_0766.jpg) 
引用图片
 
相关文章:

 
最新开源项目
 
 
  查看更多...  
 
本站相关产品   淘宝网店
 




 
  查看更多...  

 

本站程序由百合电子工作室开发和维护
Copyright @ baihe electric studio
渝ICP备09006681号-4