Tuesday, November 22, 2011

WAP to transfer WELCOME serially at 9600 baud rate do this continuously.

; USING TIMER 1 MODE 2 AUTO RELOAD MODE
; 8 BIT A STOP READ ENABLED
MOV TMOD, #0010 0000B    ; TIMER 1 MODE 2 FOR TIMER OPERATION
MOV TH1 #-3        ; AS 9600 BAUD RATE
MOV SCON #0101 0000B    ; SMODE 2 8 BIT 1 STOP BIT READ ENABLED
SETB TR1        ; START TIMER 1

MOV R7, #07H        ; AS WELCOME 7 LETTER WORD
MOV DPTR, #0300H    ; WELCOME STORED AT 300H

BACK :
CLR A            ;
MOV A, @A+DPTR        ;

HERE :
MOV SBUF,A        ;
JNB TI, HERE        ;
CLR TI            ;

INC DPTR        ;
DJNZ R7, BACK        ;
SJMP $            ;

ORG 300H        ;
DB 'W', 'E', 'L','C','O','M','E';

END            ;

No comments:

Post a Comment