{"id":2500,"date":"2019-05-27T08:43:34","date_gmt":"2019-05-27T08:43:34","guid":{"rendered":""},"modified":"2019-05-27T16:44:09","modified_gmt":"2019-05-27T08:44:09","slug":"51%e5%8d%95%e7%89%87%e6%9c%ba%e5%af%b9602lcd%e6%98%be%e7%a4%ba%e5%99%a8%e7%9a%84%e9%a9%b1%e5%8a%a8%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2500","title":{"rendered":"51\u5355\u7247\u673a\u5bf9602LCD\u663e\u793a\u5668\u7684\u9a71\u52a8\u8bbe\u8ba1"},"content":{"rendered":"

\n\t;\u786c\u4ef6\u8fde\u63a5\uff1a1602LCD\u663e\u793a000000Hz\u77ed\u63a5p1.4--p3.5\u5219\u663e\u793a0000010hz<\/p>\n

\n\t;LCD1602\u663e\u793a\u5728\u4e0d\u589e\u52a0\u5916\u90e8\u8ba1\u6570\u786c\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0c\u672c\u8bd5\u9a8c\u8f6f\u4ef6\u53ef\u6d4b\u6700\u9ad8\u9891\u7387\u8fbe\u5230460KHz<\/p>\n

\n\t <\/div>\n

\n\t;\u5de5\u4f5c\u539f\u7406\uff1a<\/p>\n

\n\t;1S \u949f\u5185\u5bf9\u8f93\u5165\u8109\u51b2\u6240\u8ba1\u6570\u7684\u6b21\u6570\u5219\u4e3a\u9891\u7387\u503c\u3002<\/p>\n

\n\t;16\u4f4d\u4e8c\u8fdb\u5236\u52a0\u6cd5\u8ba1\u6570\u5668\u7684\u6700\u5927\u8ba1\u6570\u503c\u4e3a 65535\u3002<\/p>\n

\n\t;\u8bbe\u7f6e\u5b9a\u65f6\u5668<\/u> 0 \u5de5\u4f5c\u5728\u5b9a\u65f6\u65b9\u5f0f1\uff0c\u5b9a\u65f61S\u3002<\/p>\n

\n\t;\u8bbe\u7f6e\u5b9a\u65f6\u5668 1 \u5de5\u4f5c\u5728\u8ba1\u6570\u65b9\u5f0f1\uff0c\u5bf9\u8f93\u5165\u8109\u51b2\u8fdb\u884c\u8ba1\u6570\uff0c\u6ea2\u51fa\u4ea7\u751f\u4e2d\u65ad\u3002<\/p>\n

\n\t;\u5c06\u5b9a\u65f6\u5668 1\u4e2d\u65ad\u5b9a\u4e49\u4e3a\u4f18\u5148\u3002\u5728\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u91cc\u5bf9\u4e2d\u65ad\u6b21\u6570\u8fdb\u884c\u8ba1\u6570\u30021S\u5230\u540e\uff0c<\/p>\n

\n\t;\u5c06\u4e2d\u65ad\u6b21\u6570\u548c\u8ba1\u6570\u5668\u91cc\u7684\u8ba1\u6570\u503c\u53d6\u51fa\u8fdb\u884c\u7efc\u5408\u6570\u636e\u5904\u7406\uff0c\u5904\u7406\u540e\u7684\u6570\u636e\u9001LCD1602\u663e\u793a\uff1f<\/p>\n

\n\t\"51\u5355\u7247\u673a\u5bf9602LCD\u663e\u793a\u5668\u7684\u9a71\u52a8\u8bbe\u8ba1\"<\/p>\n

\n\t;\u4fe1\u53f7\u6765\u6e90\uff1a<\/p>\n

\n\t;1\u3001\u8f6f\u4ef6\u91cc\u5bf9 P1.4\u5b9a\u65f6\u53d6\u53cd\uff0c\u5f62\u6210\u8f93\u51fa\u8109\u51b2\uff0c\u63a5\u5230 P3.5 \u53ef\u81ea\u6d4b\u3002<\/p>\n

\n\t; \u663e\u793a\u7ed3\u679c\uff1aP1.4 → P3.5 \u663e\u793a\uff1a 000010 \uff08Hz\uff09<\/p>\n

\n\t;\u5982\u679c\u6709\u6761\u4ef6\u7684\u8bdd\uff0c\u53ef\u4f7f\u7528\u4e13\u7528\u8bbe\u5907\uff08\u4fe1\u53f7\u53d1\u751f\u5668\u548c\u9891\u7387\u8ba1\uff09\u8fdb\u884c\u6821\u6b63\u3002<\/p>\n

\n\t;\u9891\u7387\u8ba1\u7684\u7a0b\u5e8f<\/p>\n

\n\t;\u5305\u542b\uff1a\u5916\u90e8\u4e2d\u65ad\u8bbe\u7f6e\uff0c\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\uff0c\u5b9a\u65f6\u7a0b\u5e8f\uff0c\u5b9a\u65f6\u670d\u52a1\u7a0b\u5e8f<\/p>\n

\n\t;\u4ee5\u53ca\u6570\u636e\u5904\u7406\uff0c\u663e\u793a\uff0c\u5305\u62ec \u4e09\u4f4d\u5341\u8fdb\u5236\u6570\u8f6c\u5316\u4e3a\u56db\u4f4dBCD\u7801\uff0c<\/p>\n

\n\t;------------------------------------------------------------<\/p>\n

\n\tBEEPBITP3.7<\/p>\n

\n\tLCD_RS<\/u>BITP2.0<\/p>\n

\n\tLCD_RWBITP2.1<\/p>\n

\n\tLCD_ENBITP2.2<\/p>\n

\n\tLCD_XEQU3FH;LCD\u5730\u5740\u53d8\u91cf<\/p>\n

\n\tTI<\/u>MER_HEQU30H;\u5b9a\u65f6\u5668\u9ad8\u4f4d\u5b57\u8282\u5355\u5143<\/p>\n

\n\tTIMER_LEQU31H;\u5b9a\u65f6\u5668\u4f4e\u4f4d\u5b57\u8282\u5355\u5143<\/p>\n

\n\tTIMCOUNTE<\/u>QU32H;\u65f6\u95f4\u4e2d\u65ad\u6570<\/p>\n

\n\tINT_GEQU35H;\u4e2d\u65ad\u8ba1\u6570\u7f13\u51b2\u5355\u5143\u9ad8\u5730\u5740<\/p>\n

\n\tINT_HEQU34H;\u4e2d\u65ad\u8ba1\u6570\u7f13\u51b2\u5355\u5143\u4e2d\u5730\u5740<\/p>\n

\n\tINT_LEQU33H;\u4e2d\u65ad\u8ba1\u6570\u7f13\u51b2\u5355\u5143\u4f4e\u5730\u5740<\/p>\n

\n\tT_SEQU36H;\u6570\u636e\u663e\u793a\u4f4e\u4f4d<\/p>\n

\n\tT_MEQU37H;\u6570\u636e\u663e\u793a\u4e2d\u4f4d<\/p>\n

\n\tT_HEQU38H;\u6570\u636e\u663e\u793a\u9ad8\u4f4d<\/p>\n

\n\tT_GEQU39H;\u6570\u636e\u663e\u793a\u6700\u9ad8\u4f4d<\/p>\n

\n\t;----------------------------------------------------------<\/p>\n

\n\tORG0000H<\/p>\n

\n\tJMPMAI<\/u>N;\u4e3b\u7a0b\u5e8f\u5f00\u59cb<\/p>\n

\n\tORG000BH<\/p>\n

\n\tJMPTIMER_INT;\u5b9a\u65f6\u5668T0\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f<\/p>\n

\n\tORG001BH;\u5b9a\u65f6\u5668T1\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f<\/p>\n

\n\tJMPTIMER1<\/p>\n

\n\tORG0030H<\/p>\n

\n\t;----------------------------------------------------------<\/p>\n

\n\tMAIN\uff1a<\/p>\n

\n\tMOVSP\uff0c#60H;\u8bbe\u7f6eSP\u6307\u9488<\/p>\n

\n\tLCALLPRO_SET;\u521d\u59cb\u5316<\/p>\n

\n\tCALLSET_LCD<\/p>\n

\n\tLCALLTIM_T0<\/p>\n

\n\t;-----------------------------------------------------------<\/p>\n

\n\t;LCD1602\u662f\u6162\u901f\u663e\u793a\u5668\u4ef6\uff0c\u6545100MS\u663e\u793a\u4e00\u6b21\u3002<\/p>\n

\n\t;-----------------------------------------------------------<\/p>\n

\n\tMAIN1\uff1a<\/p>\n

\n\tMOVR<\/u>5\uff0c40<\/p>\n

\n\tMAIN2\uff1a<\/p>\n

\n\tACALLDELAY1;3ms<\/p>\n

\n\tDJNZR5\uff0cMAIN2<\/p>\n

\n\tACALLSBIN_SBCD<\/p>\n

\n\tCALLCONV<\/p>\n

\n\tJMPMAIN1<\/p>\n

\n\t;------------------------------------------------------------<\/p>\n

\n\t;T1\u8ba1\u6570\u5668\u4e2d\u65ad\u670d\u52a1\u5b50\u7a0b\u5e8f<\/p>\n

\n\t;\u8ba1T1\u8ba1\u6570\u5668\u6ea2\u51fa\u6b21\u6570<\/p>\n

\n\t;------------------------------------------------------------<\/p>\n

\n\tTIMER1\uff1a<\/p>\n

\n\tINC2AH<\/p>\n

\n\tRETI<\/p>\n

\n\t;------------------------------------------------------------<\/p>\n

\n\t;\u521d\u59cb\u5316\u7a0b\u5e8f<\/p>\n

\n\t;------------------------------------------------------------<\/p>\n

\n\tPRO_SET:MOVA\uff0c#00H<\/p>\n

\n\tMOVB\uff0c#00H<\/p>\n

\n\tMOV2AH\uff0cA<\/p>\n

\n\tMOVP0\uff0c#0FFH<\/p>\n

\n\tMOVP1\uff0c#0FFH<\/p>\n

\n\tMOVP2\uff0c#0FFH<\/p>\n

\n\tMOVINT_H\uff0c#00H<\/p>\n

\n\tMOVINT_L\uff0c#00H<\/p>\n

\n\tMOVINT_G\uff0c#00H<\/p>\n

\n\tMOVT_S\uff0c#00H<\/p>\n

\n\tMOVT_H\uff0c#00H<\/p>\n

\n\tMOVT_M\uff0c#00H<\/p>\n

\n\tMOVT_G\uff0c#00H<\/p>\n

\n\tMOVTIMCOUNT\uff0c#00H<\/p>\n

\n\tMOVTIMER_H\uff0c#04CH;\u5b9a\u65f650MS<\/p>\n

\n\tMOVTIMER_L\uff0c#10H;<\/p>\n

\n\tCLRBEEP<\/p>\n

\n\tSETBP3.5;P3.5\u7aef\u53e3\u7f6e\u8f93\u5165\u72b6\u6001<\/p>\n

\n\tRET;T1\uff08TIMER1\u7684\u5916\u90e8\u8f93\u5165\u811a\uff09<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\t;LCD\u521d\u59cb\u5316\u8bbe\u7f6e<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\tSET_LCD\uff1a<\/p>\n

\n\tCLRLCD_EN<\/p>\n

\n\tCALLINIT_LCD;\u521d\u59cb\u5316LCD<\/p>\n

\n\tCALLDELAY1<\/p>\n

\n\tMOVDPTR\uff0c#INFO1;\u6307\u9488\u6307\u5230\u663e\u793a\u4fe1\u606f1<\/p>\n

\n\tMOVA\uff0c#1;\u663e\u793a\u5728\u7b2c\u4e00\u884c<\/p>\n

\n\tCALLLCD_SHOW<\/p>\n

\n\tMOVDPTR\uff0c#INFO2;\u6307\u9488\u6307\u5230\u663e\u793a\u4fe1\u606f2<\/p>\n

\n\tMOVA\uff0c#2;\u663e\u793a\u5728\u7b2c\u4e8c\u884c<\/p>\n

\n\tCALLLCD_SHOW<\/p>\n

\n\tRET<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\tINFO1:DB“CYMOMETER”\uff0c0;LCD\u7b2c\u4e00\u884c\u663e\u793a\u4fe1\u606f<\/p>\n

\n\tINFO2:DB“FREQ:HZ”\uff0c0;LCD\u7b2c\u4e8c\u884c\u663e\u793a\u4fe1\u606f<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\t;LCD\u63a5\u53e3\u521d\u59cb\u5316<\/p>\n

\n\t;8\u4f4dI\/O\u63a7\u5236<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\tINIT_LCD\uff1a<\/p>\n

\n\tMOVA\uff0c#38H;\u53cc\u5217\u663e\u793a\uff0c\u5b57\u5f625*7\u70b9\u9635<\/p>\n

\n\tCALLWCOM<\/p>\n

\n\tCALLDELAY1<\/p>\n

\n\tMOVA\uff0c#38H;\u53cc\u5217\u663e\u793a\uff0c\u5b57\u5f625*7\u70b9\u9635<\/p>\n

\n\tCALLWCOM<\/p>\n

\n\tCALLDELAY1<\/p>\n

\n\tMOVA\uff0c#38H;\u53cc\u5217\u663e\u793a\uff0c\u5b57\u5f625*7\u70b9\u9635<\/p>\n

\n\tCALLWCOM<\/p>\n

\n\tCALLDELAY1<\/p>\n

\n\tMOVA\uff0c#0CH;\u5f00\u663e\u793a\uff0c\u5173\u5149\u6807\uff0c<\/p>\n

\n\tCALLWCOM<\/p>\n

\n\tCALLDELAY1<\/p>\n

\n\tMOVA\uff0c#01H;\u6e05\u9664LCD\u663e\u793a\u5c4f<\/p>\n

\n\tCALLWCOM<\/p>\n

\n\tCALLDELAY1<\/p>\n

\n\tRET<\/p>\n

\n\t;----------------------------------------------------<\/p>\n

\n\tLCD_SHOW\uff1a;\u5728LCD\u7684\u7b2c\u4e00\u884c\u6216\u7b2c\u4e8c\u884c\u663e\u793a\u4fe1\u606f\u5b57\u7b26<\/u><\/p>\n

\n\tCJNEA\uff0c#1\uff0cLINE2;\u5224\u65ad\u662f\u5426\u4e3a\u7b2c\u4e00\u884c<\/p>\n

\n\tLINE1:MOVA\uff0c#80H;\u8bbe\u7f6eLCD\u7684\u7b2c\u4e00\u884c\u5730\u5740<\/p>\n

\n\tCALLWCOM;\u5199\u5165\u547d\u4ee4<\/p>\n

\n\tCALLCLR_LINE;\u6e05\u9664\u8be5\u884c\u5b57\u7b26\u6570\u636e<\/p>\n

\n\tMOVA\uff0c#80H;\u8bbe\u7f6eLCD\u7684\u7b2c\u4e00\u884c\u5730\u5740<\/p>\n

\n\tCALLWCOM;\u5199\u5165\u547d\u4ee4<\/p>\n

\n\tJMPFILL<\/p>\n

\n\tLINE2:MOVA\uff0c#0C0H;\u8bbe\u7f6eLCD\u7684\u7b2c\u4e8c\u884c\u5730\u5740<\/p>\n

\n\tCALLWCOM;\u5199\u5165\u547d\u4ee4<\/p>\n

\n\tCALLCLR_LINE;\u6e05\u9664\u8be5\u884c\u5b57\u7b26\u6570\u636e<\/p>\n

\n\tMOVA\uff0c#0C0H;\u8bbe\u7f6eLCD\u7684\u7b2c\u4e8c\u884c\u5730\u5740<\/p>\n

\n\tCALLWCOM<\/p>\n

\n\tFILL:CLRA;\u586b\u5165\u5b57\u7b26<\/p>\n

\n\tMOVCA\uff0c@A+DPTR;\u7531\u6d88\u606f\u533a\u53d6\u51fa\u5b57\u7b26<\/p>\n

\n\tCJNEA\uff0c#0\uff0cLC1;\u5224\u65ad\u662f\u5426\u4e3a\u7ed3\u675f\u7801<\/p>\n

\n\tRET<\/p>\n

\n\tLC1:CALLWDATA;\u5199\u5165\u6570\u636e<\/p>\n

\n\tINCDPTR;\u6307\u9488\u52a01<\/p>\n

\n\tJMPFILL;\u7ee7\u7eed\u586b\u5165\u5b57\u7b26<\/p>\n

\n\tRET<\/p>\n

\n\t;---------------------------------------------------<\/p>\n

\n\tCLR_LINE\uff1a;\u6e05\u9664\u8be5\u884cLCD\u7684\u5b57\u7b26<\/p>\n

\n\tMOVR0\uff0c#24<\/p>\n

\n\tCL1:MOVA\uff0c#’’<\/p>\n

\n\tCALLWDATA<\/p>\n

\n\tDJNZR0\uff0cCL1<\/p>\n

\n\tRET<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\t;\u5199\u6307\u4ee4\u3001\u6570\u636e\u4f7f\u80fd\u5b50\u7a0b\u5e8f<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\tENABLE\uff1a;\u5199\u6307\u4ee4\u4f7f\u80fd<\/p>\n

\n\tCLRLCD_RS;RS=L\uff0cLCD_RW=L\uff0cD0-D7=\u6307\u4ee4\u7801\uff0cE=\u9ad8\u8109\u51b2<\/p>\n

\n\tCLRLCD_RW<\/p>\n

\n\tSETBLCD_EN<\/p>\n

\n\tCALLDELAY0<\/p>\n

\n\tCLRLCD_EN<\/p>\n

\n\tRET<\/p>\n

\n\tENABLE1\uff1a;\u5199\u6570\u636e\u4f7f\u80fd<\/p>\n

\n\tSETBLCD_RS;RS=H\uff0cRW=L\uff0cD0-D7=\u6570\u636e\uff0cE=\u9ad8\u8109\u51b2<\/p>\n

\n\tCLRLCD_RW<\/p>\n

\n\tSETBLCD_EN<\/p>\n

\n\tCALLDELAY0<\/p>\n

\n\tCLRLCD_EN<\/p>\n

\n\tRET<\/p>\n

\n\tDELAY0:MOVR7\uff0c#250;\u5ef6\u65f6500\u5fae\u79d2<\/p>\n

\n\tDJNZR7\uff0c$<\/p>\n

\n\tRET<\/p>\n

\n\t;----------------------------------------------------<\/p>\n

\n\t;\u5199\u5165\u547d\u4ee4\u5b50\u7a0b\u5e8f<\/p>\n

\n\t;----------------------------------------------------<\/p>\n

\n\tWCOM\uff1a;\u4ee58\u4f4d\u63a7\u5236\u65b9\u5f0f\u5c06\u547d\u4ee4\u5199\u81f3LCD<\/p>\n

\n\tMOVP0\uff0cA;\u5199\u5165\u547d\u4ee4<\/p>\n

\n\tCALLENABLE<\/p>\n

\n\tRET<\/p>\n

\n\t;----------------------------------------------------<\/p>\n

\n\t;\u5199\u5165\u6570\u636e\u5b50\u7a0b\u5e8f<\/p>\n

\n\t;----------------------------------------------------<\/p>\n

\n\tWDATA\uff1a;\u4ee58\u4f4d\u63a7\u5236\u65b9\u5f0f\u5c06\u6570\u636e\u5199\u81f3LCD<\/p>\n

\n\tMOVP0\uff0cA;\u5199\u5165\u6570\u636e<\/p>\n

\n\tCALLENABLE1<\/p>\n

\n\tRET<\/p>\n

\n\t;---------------------------------------------------<\/p>\n

\n\t;\u5728LCD\u7b2c\u4e8c\u884c\u663e\u793a\u5b57\u7b26<\/p>\n

\n\t;A=ASCDATA\uff0cB=LINEXPOS<\/p>\n

\n\t;---------------------------------------------------<\/p>\n

\n\tLCDP2\uff1a;\u5728LCD\u7684\u7b2c\u4e8c\u884c\u663e\u793a\u5b57\u7b26<\/p>\n

\n\tPUSHACC;<\/p>\n

\n\tMOVA\uff0cB;\u8bbe\u7f6e\u663e\u793a\u5730\u5740<\/p>\n

\n\tADDA\uff0c#0C0H;\u8bbe\u7f6eLCD\u7684\u7b2c\u4e8c\u884c\u5730\u5740<\/p>\n

\n\tCALLWCOM;\u5199\u5165\u547d\u4ee4<\/p>\n

\n\tPOPACC;\u7531\u5806\u6808\u53d6\u51faA<\/p>\n

\n\tCALLWDATA;\u5199\u5165\u6570\u636e<\/p>\n

\n\tRET<\/p>\n

\n\t;-------------------------------------------------------<\/p>\n

\n\t;ASCII\u8f6c\u6362\u5e76\u5728\u7b2c\u4e8c\u884c\u663e\u793a\u6570\u5b57\u5b50\u7a0b\u5e8f<\/p>\n

\n\t;-------------------------------------------------------<\/p>\n

\n\tCONV\uff1a;MOVA\uff0cT_G<\/p>\n

\n\tMOVLCD_X\uff0c#6;\u8bbe\u7f6e\u4f4d\u7f6e<\/p>\n

\n\t;CALLSHOW_DIG2<\/p>\n

\n\tMOVA\uff0cT_H<\/p>\n

\n\t;INCLCD_X;\u52a0\u8f7d\u5c0f\u65f6\u6570\u636e<\/p>\n

\n\tCALLSHOW_DIG2;\u663e\u793a\u6570\u636e<\/p>\n

\n\tMOVA\uff0cT_M;\u52a0\u8f7d\u5206\u949f\u6570\u636e<\/p>\n

\n\tINCLCD_X;\u8bbe\u7f6e\u4f4d\u7f6e<\/p>\n

\n\tCALLSHOW_DIG2;\u663e\u793a\u6570\u636e<\/p>\n

\n\tMOVA\uff0cT_S;\u52a0\u8f7d\u79d2\u6570\u6570\u636e<\/p>\n

\n\tINCLCD_X;\u8bbe\u7f6e\u4f4d\u7f6e<\/p>\n

\n\tCALLSHOW_DIG2;\u663e\u793a\u6570\u636e<\/p>\n

\n\tRET<\/p>\n

\n\t;----------------------------------------------------<\/p>\n

\n\tSHOW_DIG2\uff1a<\/p>\n

\n\tMOVB\uff0c#16<\/p>\n

\n\tDIVAB<\/p>\n

\n\tADDA\uff0c#30H<\/p>\n

\n\tPUSHB<\/p>\n

\n\tMOVB\uff0cLCD_X<\/p>\n

\n\tCALLLCDP2<\/p>\n

\n\tPOPB<\/p>\n

\n\tMOVA\uff0cB<\/p>\n

\n\tADDA\uff0c#30H<\/p>\n

\n\tINCLCD_X<\/p>\n

\n\tMOVB\uff0cLCD_X<\/p>\n

\n\tCALLLCDP2<\/p>\n

\n\tRET<\/p>\n

\n\t;-----------------------------------------------------<\/p>\n

\n\tDELAY1\uff1a;\u5ef6\u65f63MS<\/p>\n

\n\tMOVR6\uff0c#15<\/p>\n

\n\tD2:MOVR7\uff0c#100<\/p>\n

\n\tDJNZR7\uff0c$<\/p>\n

\n\tDJNZR6\uff0cD2<\/p>\n

\n\tRET<\/p>\n

\n\t;-----------------\u5b9a\u65f6\u5668\u8bbe\u7f6e------------------------<\/p>\n

\n\t;\u8bbe\u7f6e\u5b9a\u65f6\u56680\u5de5\u4f5c\u5728\u5b9a\u65f6\u65b9\u5f0f1\uff0c\u5b9a\u65f6\u56681\u5de5\u4f5c\u5728\u8ba1\u6570\u65b9\u5f0f1<\/p>\n

\n\t;---------------------------------------------------------<\/p>\n

\n\tTIM_T0:MOVTMOD\uff0c#0D1H<\/p>\n

\n\tMOVTH0\uff0cTIMER_H;\u8bbe\u7f6e\u5b9a\u65f6\u521d\u503c\u9ad8\u4f4d<\/p>\n

\n\tMOVTL0\uff0cTIMER_L;\u8bbe\u7f6e\u5b9a\u65f6\u521d\u503c\u4f4e\u4f4d<\/p>\n

\n\tMOVTH1\uff0c#00H;\u6e05T1\u8ba1\u6570\u5668<\/p>\n

\n\tMOVTL1\uff0c#00H<\/p>\n

\n\tMOVIE\uff0c#8AH;\u5f00\u4e2d\u65ad\u603b\u5141\u8bb8\uff0c\u5141\u8bb8T0\u6ea2\u51fa\u4e2d\u65ad<\/p>\n

\n\tSETBPT1<\/p>\n

\n\tSETBTR1<\/p>\n

\n\tSETBTR0;\u5b9a\u65f6\u5668\u5f00\u59cb\u5de5\u4f5c<\/p>\n

\n\tRET<\/p>\n

\n\t;--------------------------------------------------------<\/p>\n

\n\t;\u5b9a\u65f6\u56680\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f<\/p>\n

\n\t;--------------------------------------------------------<\/p>\n

\n\tTIMER_INT\uff1a<\/p>\n

\n\tCLRTR0;\u5173\u95ed\u5b9a\u65f6\u5668<\/p>\n

\n\tMOVTL0\uff0cTIMER_L;\u91cd\u65b0\u8d4b\u521d\u503c<\/p>\n

\n\tMOVTH0\uff0cTIMER_H;<\/p>\n

\n\tINCTIMCOUNT;\u5b9a\u65f61S\uff0c\u65f6\u95f4\u5355\u4f4d<\/p>\n

\n\tMOVA\uff0cTIMCOUNT;\u67e5\u770b\u6570\u91cf\u503c<\/p>\n

\n\tCPLP1.4;\u4ea7\u751f\u81ea\u6d4b\u4fe1\u53f7<\/p>\n

\n\tCJNEA\uff0c#20\uff0cT_END;\u5982\u679c\u6ca1\u6709\u52301S\u8fd4\u56de<\/p>\n

\n\tCLRTR1;\u5173\u95ed\u8ba1\u6570\u5668T1<\/p>\n

\n\tMOVTIMCOUNT\uff0c#00H;\u52301S\u5219\u6e05\u96f6<\/p>\n

\n\tMOVINT_L\uff0cTL1;\u53d6\u51fa\u8ba1\u6570\u503c\u4f4e\u4f4d<\/p>\n

\n\tMOVINT_H\uff0cTH1;\u53d6\u51fa\u8ba1\u6570\u503c\u9ad8\u4f4d<\/p>\n

\n\tMOVINT_G\uff0c2AH;\u53d6\u51fa\u6ea2\u51fa\u8ba1\u6570\u503c\u4f4d<\/p>\n

\n\tMOVTH1\uff0c#00H<\/p>\n

\n\tMOVTL1\uff0c#00H<\/p>\n

\n\tMOV2AH\uff0c#00H<\/p>\n

\n\tSETBTR1<\/p>\n

\n\tT_END:SETBTR0;\u91cd\u65b0\u5f00\u59cb\u5b9a\u65f6\u64cd\u4f5c<\/p>\n

\n\tRETI<\/p>\n

\n\t;---------------------------------------------------------------<\/p>\n

\n\t;\u4e09\u5b57\u8282\u4e8c\u8fdb\u5236\u6574\u6570\u8f6c\u6362\u6210\u56db\u5b57\u8282BCD\u7801\u5b50\u7a0b\u5e8f<\/p>\n

\n\t;\u4e8c\u8fdb\u5236\u6570\u4ece\u4f4e\u4f4d\u5230\u9ad8\u4f4d\u5206\u522b\u5b58\u653e\u5728INT_L\u3001INT_H\u3001INT_G\u5355\u5143\u4e2d<\/p>\n

\n\t;BCD\u7801\u4ece\u4f4e\u4f4d\u5230\u9ad8\u4f4d\u5206\u522b\u5b58\u653e\u5728T_S\u3001T_M\u3001T_H\u3001T_G\u5355\u5143\u4e2d<\/p>\n

\n\t;---------------------------------------------------------------<\/p>\n

\n\tSBIN_SBCD\uff1a<\/p>\n

\n\tPUSHPSW<\/p>\n

\n\tSETBPSW.3;\u8bbe\u7f6e\u5f53\u524d\u5bc4\u5b58\u5668<\/u><\/p>\n

\n\tCLRPSW.4<\/p>\n

\n\tCLRA;\u6e05\u7d2f\u52a0\u5668<\/p>\n

\n\tMOVT_G\uff0cA<\/p>\n

\n\tMOVT_H\uff0cA;\u6e05\u9664\u51fa\u53e3\u5355\u5143\uff0c\u51c6\u5907\u8f6c\u6362<\/p>\n

\n\tMOVT_M\uff0cA<\/p>\n

\n\tMOVT_S\uff0cA<\/p>\n

\n\tMOVR5\uff0cINT_G<\/p>\n

\n\tMOVR7\uff0cINT_L;\u8bbe\u7f6e\u4e8c\u8fdb\u5236\u6570\u8d77\u59cb\u5730\u5740<\/p>\n

\n\tMOVR6\uff0cINT_H<\/p>\n

\n\tMOVR2\uff0c#24<\/p>\n

\n\tCLRC<\/p>\n

\n\tHH1\uff1a<\/p>\n

\n\tMOVA\uff0cR7<\/p>\n

\n\tRLCA<\/p>\n

\n\tMOVR7\uff0cA<\/p>\n

\n\tMOVA\uff0cR6<\/p>\n

\n\tRLCA<\/p>\n

\n\tMOVR6\uff0cA<\/p>\n

\n\tMOVA\uff0cR5<\/p>\n

\n\tRLCA<\/p>\n

\n\tMOVR5\uff0cA<\/p>\n

\n\tMOVA\uff0cT_S;\u5f97\u5230\u4f4e\u4f4d\u6570\u636e<\/p>\n

\n\tADDCA\uff0cT_S;\u7d2f\u52a0<\/p>\n

\n\tDAA;\u5341\u8fdb\u5236\u8c03\u6574<\/p>\n

\n\tMOVT_S\uff0cA;\u4fdd\u5b58\u6570\u636e<\/p>\n

\n\tMOVA\uff0cT_M;\u5f97\u5230\u7b2c\u4e8c\u4f4d\u6570\u636e<\/p>\n

\n\tADDCA\uff0cT_M;\u7d2f\u52a0<\/p>\n

\n\tDAA;\u5341\u8fdb\u5236\u8c03\u6574<\/p>\n

\n\tMOVT_M\uff0cA;\u4fdd\u5b58\u7ed3\u679c<\/p>\n

\n\tMOVA\uff0cT_H;\u5f97\u5230\u7b2c\u4e09\u4f4d<\/p>\n

\n\tADDCA\uff0cT_H;\u7d2f\u52a0<\/p>\n

\n\tDAA<\/p>\n

\n\tMOVT_H\uff0cA;\u4fdd\u5b58<\/p>\n

\n\tMOVA\uff0cT_G;\u5f97\u5230\u7b2c\u56db\u4f4d<\/p>\n

\n\tADDCA\uff0cT_G;\u7d2f\u52a0<\/p>\n

\n\t;DAA<\/p>\n

\n\tMOVT_G\uff0cA<\/p>\n

\n\tDJNZR2\uff0cHH1;<\/p>\n

\n\tPOPPSW<\/p>\n

\n\tRET<\/p>\n

\n\t;----------------------------------------------------------------<\/p>\n

\n\tEND;\u544a\u8bc9\u7f16\u8bd1\u5668\u672c\u7a0b\u5e8f\u5230\u6b64\u7ed3\u675f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

;\u786c\u4ef6\u8fde\u63a5\uff1a1602LCD\u663e\u793a000000Hz\u77ed\u63a5p1.4–p3.5\u5219\u663e\u793a0000010hz ;LCD1602\u663e\u793a\u5728\u4e0d\u589e\u52a0\u5916\u90e8\u8ba1\u6570\u786c\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0c\u672c\u8bd5\u9a8c\u8f6f\u4ef6\u53ef\u6d4b\u6700\u9ad8\u9891\u7387\u8fbe\u5230460KHz ;\u5de5\u4f5c\u539f\u7406\uff1a ;1S \u949f\u5185\u5bf9\u8f93\u5165\u8109\u51b2\u6240\u8ba1\u6570\u7684\u6b21\u6570\u5219\u4e3a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2500"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2500"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2500\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2500"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}