发布网友 发布时间:2023-11-07 08:45
共1个回答
热心网友 时间:2024-10-03 05:10
一、求51单片机电子时钟设计。用6个数码管显示出时分秒。
;===================================== ;程序完成一个电子钟的设计 ;================================================ ;定义程序入口地址 ORG ORG000BH AJMPT0INT ;======================================================== ;定义内部REQU30H SECEQU40H MINEQU41H HORE3H ;=================================== ;定义数码管端口 LEGEQUP2 ORG0100H START: MOVSEC, #50 MOVMIN, #5 MOVTIME, #0 MOVTMOD, #01H MOVT0) MOVTH0, #HIGH(-50000) SETBTR0 SETBET0 SETBISPLAY AJMPMAIN COUNTER: MOVA, #10 DIVAB MOVDISBUF, A MOVDISN MOVB, #10 DIVAB MOVDISBUF+3, A MO B MOVA, SEC MOVB, #10 DIVAB MOVDISBUF+6, A MOVDISBUF+7, B MO MOVDISBUF+5, #16 RET DISPLAY: CALLCOUNTER MOVR0, #DISBUF MOVR1, #0 DISPLOOP: MOVDPTR, #LEDCODE MOVATR MOVLEDDATA, A MOVDPTR, #LEDPOSIT MOVA, R1 MOVCA, @A+DPTR MOVLEDSEG, A CALLDELAY MOVLEDSEG, #0FFH INCR0 INCR1 CJNER1, #8, DISPLOOP MOVR0, DISBUF MOVR1, #0 RET DELAY: MOVR7, #200 DJNZR7, $ RET T0INT: PUSHACC MOVTL0, #LOW(HIGH(-50000) INCTIME MOVA T0OUT MOVTIME, #0 C CJNEA, #60, T0OUT MOVSEC, #0 INCMIN MOVA, MIN CJNEA, #60, T0OUT MOVMIN, #0 INCHOR MOVA, HOR CJNEA, #24HOR, #0 T0TI ;======================================= ;共阴数码管码表 LEDCODE: DB3FH, 06H, 5bH, 4fH, 66H, 2 3 4 5 6 7 DB7fH, 6fH, 77H, 7cH,39H, 5eH, 79H, 71H, 40H ; 8 9 A B C D E F - ;=============== ;共阴数码管位选信号定义 LEDPOSIT: DB0FEH, 0FH, 0EFH, 0DFH, 0BFH, 7
二、银联POS机设置问题,由于要换办公地点,电话改了,往外打电...
各家的手续费不一样,一般是在1-2%,我知道的,你可以打你银行的电话问问具体是多少,如果是2%,建议你在换个银行问问,有可能是1%