急求关于空调的模拟生产线计数过程,每过一件就计数一次,并将结果显示在P1D低4位连接的一个数码管上,要求实现计数开关可人为控制,绘制出模拟电路图和编写实验程序.
谁会啊..赶紧帮忙一下500) {this.resized=true; this.width=500; this.alt='这是一张缩略图,点击可放大。\n按住CTRL,滚动鼠标滚轮可自由缩放';this.style.cursor='hand'}" onclick="if(!this.resized) {return true;} else {window.open('http://u.dianyuan.com/bbs/u/73/3112311231774494.jpg?x-oss-process=image/watermark,g_center,image_YXJ0aWNsZS9wdWJsaWMvd2F0ZXJtYXJrLnBuZz94LW9zcy1wcm9jZXNzPWltYWdlL3Jlc2l6ZSxQXzQwCg,t_20');}" onmousewheel="return imgzoom(this);">
甲机发送
ORG 0000H
LJMP START
ORG 000BH
LJMP TOINT
ORG 0100H
START:MOV TMOD,#20H
MOV TMOD,#06H
MOV TL0,#0FFH
MOV TH0,#0FFH
MOV TL1,#0E6H
MOV TH1,#0E6H
SETB EA
SETB ET0
SETB TR0
SEND:MOV SBUF,A
JNB TI,$
CLR TI
MOV SCON,#50H
MOV TMOD,#20H
MOV TMOD,#06H
MOV TL0,#0FFH
MOV TH0,#0FFH
MOV TL1,#0E6H
MOV TH1,#0E6H
SETB TR1
MOV R0,#40H
MOV R7,#20H
RET
READ:JNB RI,RETI
CLR RI
MOV A,SBUF
MOV R0,A
INC R0
DJNZ R7,READ
SJMP $
TOINT: MOV P1,A
inc a
RETI
END
乙机接受
ORG 0000H
LJMP L3
ORG OO23H
L3:MOV TMOD,#2EH
MOV TL1,#0E6H
MOV TH1,#0E6H
MOV TL0,#0FFH
MOV TH0,#0FFH
MOV A,#00H
L4:MOV R1,#01H
SETB EA
SETB ETO
SETB TR0
SETB TR1
JNB RI
CLR RI
MOV A,SBUF
INC A
DJNZ R1,L4
SJMP $
END
这样对吗?? 两个计数器要同时计数.每按一次开关计数器就计数一次500) {this.resized=true; this.width=500; this.alt='这是一张缩略图,点击可放大。\n按住CTRL,滚动鼠标滚轮可自由缩放';this.style.cursor='hand'}" onclick="if(!this.resized) {return true;} else {window.open('http://u.dianyuan.com/bbs/u/73/3112311231861635.jpg?x-oss-process=image/watermark,g_center,image_YXJ0aWNsZS9wdWJsaWMvd2F0ZXJtYXJrLnBuZz94LW9zcy1wcm9jZXNzPWltYWdlL3Jlc2l6ZSxQXzQwCg,t_20');}" onmousewheel="return imgzoom(this);">
哎...实习要求 没做就挂课...