用CH452做16X16點陣

我用兩片CH452串聯(lián)做16X16點陣 寫的程序如下 DCLK BIT P2.3 DIN BIT P2.2 LOAD BIT P2.1 ORG 0000H AJMP START ORG 0030H START: MOV R1,#02H MOV 60H,#03H ;設(shè)置系統(tǒng) MOV 61H,#04H MOV 62H,#03H MOV 63H,#04H ACALL WRITE MOV 60H,#80H ;亮兩顆燈 MOV 61H,#0AH MOV 62H,#80H MOV 63H,#08H ACALL WRITE WRITE: CLR LOAD ;寫入數(shù)據(jù) MOV R7,#08H MOV R0,#60H MOV A,@R0 WRITE8: RRC A CLR DCLK MOV DIN,C SETB DCLK DJNZ R7,WRITE8 MOV R7,#04H INC R0 MOV A,@R0 WRITE4: RRC A CLR DCLK MOV DIN,C SETB DCLK DJNZ R7,WRITE4 INC R0 MOV A,@R0 MOV R7,#08H DJNZ R1,WRITE8 MOV R1,#02H SETB LOAD RET END 為什么只會亮一顆燈呢 那個大哥可否幫我解決下

你好!;亮一個燈是對的啊!因為你程序就是亮一個燈,只不多你的程序有點問題.我簡單的修改了一下,僅供參考! DCLK BIT P2.3 DIN BIT P2.2 LOAD BIT P2.1 ORG 0000H AJMP START ORG 0030H START: MOV 60H,#03H ;設(shè)置系統(tǒng)參數(shù) MOV 61H,#04H ACALL WRITE MOV 60H,#80H ;亮1顆燈 MOV 61H,#0AH ACALL WRITE AJMP $ WRITE: CLR LOAD ;寫入數(shù)據(jù) MOV R7,#08H MOV R0,#60H MOV A,@R0 WRITE8: RRC A ;寫入低8位數(shù)據(jù) CLR DCLK MOV DIN,C SETB DCLK DJNZ R7,WRITE8 MOV R7,#04H INC R0 MOV A,@R0 WRITE4: RRC A ;寫入高4位數(shù) CLR DCLK MOV DIN,C SETB DCLK DJNZ R7,WRITE4 SETB LOAD RET END


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频