【正文】
JNB KEYVALED,$ CLR KEYVALED LCALL KEYSCAN MOV A,KEYNAME TIMER1:PUSH PSW PUSH AW SETB RS1 CLR RS0 MOV TH1,8AH MOV TL1,0D0H MOV P3,0FH MOV A,P3 ANL A,0FH CJNE A,0FH,NEXT21 SETB C JMP NEXT22 NEXT21: CLR C NEXT22: MOV A,KEYSTU RLC A MOV KEYSTU,A ANL A,07H CJNE A,2,NEXT23 ANL KEYSTU,00H JMP EXIT2 NEXT23: CJNE A,4,NEXT24 SETB KEYVALED JMP EXIT2 NEXT24: CJNE A,5,EXIT2 ORL KEYSTU,07H EXIT2: POP ACC POP PWE RETI KEYSCAN: MOV R7,4 MOV R5,0 MOV R6,11110111B OP1: MOV A,R6 RL A MOV R6,A MOV P3,A MOV A,P3 ANL A,0FH RL A,0FH JNZ NEXT31 INC R5 DJNZ R7,LOOP1 SJMP EXIT3 NEXT31: JNE ,NEXT32 MOV R4,0 SJMP NEXT35 NEXT32:JNB ,NEXT33 MOV R4,1 SJMP NEXT35 NEXT33:JNB ,NEXT34 MOV R4,2 SJMP NEXT35 NEXT 34:MOV R4,3 NEXT35: MOV A,R4 RL A RL A ADD A,R5 MOV DPTP,KEYTAB MOVC A,A+DPTP MOV KEYNAME,A EXIT3: RET DISPLAY: MOV LEDSP,00H LCALL BIN T0BCD LCALL BCD T0SEG LJMP LOOP TIME R0:PUSH PSW PUSH Acc SETB RS0 CLR RS1 MOV TH0,0E4A MOV TL0,0A8H MOV ANL A,04H CJNE A,0,NEXT11 MOV P2,00001D00B ADD ASEGBUF MOV R0,A MOV P0,A MOV P0,R0 CJMP EXIT1 NEXT11:CJNE A,2,NEXT12 MOV P2,00000100B ADD A,SEGBUF MOV R0,A MOV P0,R0 LKMP EXIT1 NEXT12: CJNE A,1,NEXT13 MOV P2,00000010B ADD A,SEGBUF MOV R0,A MOV P0,R0 LJMP EXIT1 NEXT13: MOV P2,300000001B AD A,SEGBUF MOV R0,A MOV P0,R0 EXIT1: INC LEDSP MOV A,LEDSP ANL A,01A CJNE A,04A,BELOW BELOW: JC RETUN MOV LEDSP,00H RETURN: POP Acc POP PSW RETI BIN T0BCD: MOV R0,3DISBUF+3 MOV A,KEYNAME MOV B,10 DIV AB MOV R0,B DEC R0 MOV B,10 DIV AB MOV R0,B DEC R0 MOV B,10 DIV AB MOV R0,B DEC R0 MOV R0,A RET 方波輸出部分: TIMER1: MOV DPTR,KEYNAME MOVC A+DPTR,DPTR RETI END 附錄二 組員工作分配 李建華:主要寫程序和報(bào)告以及仿真檢查結(jié)果 賴水兵:電路圖的描繪,程序的撰寫 梁國(guó)鋒:程序的撰寫 郭萬(wàn)勁:電路圖 的描繪 參考文獻(xiàn) 潘永雄 高等學(xué)校信息工程類專業(yè)規(guī)劃教材(新編單片機(jī)原理與應(yīng)用) (英文版 ) Two regulations promulgated for implementation is in the party in power for a long time and the rule of law conditions, the implementation of prehensive strictly strategic plan, implementation in accordance with the rules and discipline to manage the party, strengthen innerparty supervision of major initiatives. The two regulations supporting each other, the code adhere to a positive advocate, focusing on morality is of Party members and Party leading cadres can see, enough to get a high standard。 the fourth part on how to grasp the implementation of the two regulations of the party. code and Regulations revised the necessity and revised history of the CPC Central Committee the amendment to the Chinese Communist Party members and leading cadres honest politics several guidelines and Chinese Communist Party discipline and Punishment Regulations column 1 by 2020 to strengthen party laws and regulations focus. Two party regulations revision work lasted a Years, pooling the wisdom of the whole party, ideological consensus, draw historical experience, respect for the wisdom of our predecessors, which reflects the unity of inheritance and innovation。s eighteen years prehensive strictly practice. (a) revised two regulations of the party need of the ICAC guidelines in in 1997 Leaders as members of the Communist Party of China clean politics certain criteria (Trial) based on revised, the promulgation and implementation of January 2020, to strengthen the construction of the contingent of leading cadres play an important role. But with the party to manage the party strictly administering the deepening, has not been able to fully meet the actual needs. Content is too plicated, eight prohibition, 52 are not allowed to hard to remember, and also difficult to put into practice。 two is the political discipline regulations is not prominent, not specific, for violation of the party constitution, damage the authority of Party Constitution of misconduct lack necessary and serious responsibility to pursue。s eighteen years strict political discipline and political rules, anization and discipline and to implement the central eight provisions of the spirit against the four winds and other requirements into Disciplinary provisions. Not one pace reachs the designated position, focusing on in line with reality, pragmatic and effective. After the revision of major changes, major changes in the code and rule modified and needs to grasp several key problems (a) code code adhere to according to regulations governing the party and party with morals in bination, for at the present stage, the leadership of the party members and cadres and Party members in existing main problems of selfdiscipline, put forward principles, requirements and specifications, showing Communists noble moral pursuit, reflected at all times and in all over the world ethics from high from low 5 mon requirements. One is closely linked to the selfdiscipline, removal and no direct relation to the provisions of . the second is adhere to a positive advocate, eight prohibition 52 are not allowed to about the content of the negative list moved into synchronization amendment cases . Three is for all the party members, will apply object from the leadership of the party members and cadres to expand to all Party members, fully embodies the prehensive strictly required. The fourth is prominent key minority, seize the leadership of the party members and cadres is the key, and put forward higher requirements than the ordinary Party members. Five is to simplify, and strive to achieve concise, easy to understand, easy to remember.