您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊(cè)]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>加密解密>

解密程序源代碼

大?。?/span>67 人氣: 2010-02-09 需要積分:0
{$username}的空間

用戶級(jí)別:注冊(cè)會(huì)員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

解密程序源代碼
源程序5
;***********************************************************
; File: system.ASM
; Taget board infomation:
;?? Fosc = 11.0592MHz
;?? Chip = AT89C52WD
;?? Uart = MAX232CPE
; @2007.5.18 by Yang Zhibin
;***********************************************************
p_row_clk????? bit??? p1.2??????????????? ;行串行移位時(shí)鐘控制線
p_row_cs?????? bit??? p1.1??????????????? ;行輸出時(shí)鐘控制口
p_row_data???? bit??? p1.0??????????????? ;行數(shù)據(jù)輸出口
p_col_clk????? bit??? p1.5??????????????? ;列串行移位時(shí)鐘控制線
p_col_cs?????? bit??? p1.4??????????????? ;列輸出時(shí)鐘控制口
p_col_data???? bit??? p1.3??????????????? ;列數(shù)據(jù)輸出口
;******************************************************************
;**********************初始化**************************************
?????????????? org???? 0000h
START:???????? MOV???? TMOD,#20H????????? ;設(shè)置定時(shí)器1為方式2
?????????????? MOV???? TH1,#0FDH????????? ;置波特率初值
?????????????? MOV???? TL1,#0FDH
?????????????? MOV???? SCON,#50H????????? ;串行口初始化,為方式1,允許接收
?????????????? MOV???? PCON,#00H????????? ;SMOD=0
?????????????? setb??? tr1??????????????? ;啟動(dòng)定時(shí)器1
;******************************************************************
;*******************數(shù)據(jù)接收與發(fā)送模塊*****************************
?????????????? MOV???? dptr,#0000H??????? ;設(shè)數(shù)據(jù)存放的地址指針
?????????????? mov???? r3,#56       ;總共接收32×56字節(jié)
wait3:???????? MOV???? R2,#32???????????? ;接收32個(gè)字節(jié)
WAIT1:???????? JNB???? RI,$?????????????? ;判斷一幀是否接收完
?????????????? CLR???? RI
?????????????? MOV???? A,SBUF???????????? ;讀入一幀的數(shù)據(jù)
?????????????? MOVX??? @dptr,A??????????? ;將數(shù)據(jù)存儲(chǔ)于6264中
?????????????? inc???? dptr?????????
?????????????? djnz??? r2,wait1
?????????????? djnz??? r3,wait3
;******************************************************************
?????????????? mov???? dptr,#0000h
?????????????? mov???? r3,#56
wait4:???????? mov???? r2,#32
wait2:???????? MOVX??? A,@dptr
?????????????? MOV???? SBUF,A???????????? ;將6264存儲(chǔ)單元中的數(shù)據(jù)發(fā)送出去
.pdf

非常好我支持^.^

(5) 100%

不好我反對(duì)

(0) 0%

      發(fā)表評(píng)論

      用戶評(píng)論
      評(píng)價(jià):好評(píng)中評(píng)差評(píng)

      發(fā)表評(píng)論,獲取積分! 請(qǐng)遵守相關(guān)規(guī)定!

      ?