MAIN:
MOV R1,20H
MOV R2,21H
CLR P3.6
L1:CALL DELAY
DJNZ R1,L1
SETB P3.6
MOV A,#69
SUBB A,R1
MOV 30H,A
L2:CALL DELAY
DJNZ 30H,L2
SETB P2.6
L3:CALL DELAY
DJNZ R2,L3
CLR P2.6
MOV A,#69
SUBB A,R2
MOV 31H,A
L4:CALL DELAY DJNZ 31H,L4 LJMP MAIN
在这之前已经给20h和21h里面赋值了,我打算用按键调整20h和21h中值的大小来改变波形占比的,一段没问题,但是两端就干扰了!