Datasheet
5–10
EINT ; enable interrupt
CALL &PREPRX
MOV #0AA55h,&03DEh ; &05DEh on the MSP430X33x
RX: MOV #STRING,R7 ; load string address
WAIT: MOV.B #RXBUF,R6 ; char. in rxbuf ?
CMP.B #0h,r6
JEQ WAIT ; no, then wait
CLR.B &RXBUF
CMP.B #cr,R6 ; end of line
’ received?
JEQ TX
MOV.B R6,0(R7) ; put char. into string
INC R7
CMP #064h,R7 ; all 100 characters are
; received ?
JL WAIT
TX: MOV #STRING,R11 ; load string address
MOV #0h,1(R7) ; end of text character
; BIC #01h,&200h ; use only if no special
; treatment of ESC is wanted
CALL &TXTABLE
CALL &PREPRX
MOV #00h,&03DEh ; &05DEh on the MSP430X33x
ENDL; JMP ENDL
UART: BR &INT_RXTX
.sect “Int_Vect”,03E0h ; &05E0h on the MSP430X33x
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.word UART ; UART Routine
.word RESET ; Reset
.word RESET ; Reset
.word RESET ; Reset
.end