English
Language : 

SLAS191A Datasheet, PDF (75/86 Pages) Texas Instruments – Starter Kit Evaluation Kit Manual
WAIT
TX
;
UART
TST.B
JEQ
MOV.B
CLR.B
BIC
CALL
CALL
&RXBUF
WAIT
&RXBUF,&TXDATA
&RXBUF
#01h,&200h
&TXCHAR
&PREPRX
JMP
WAIT
BR
&INT_RXTX
.sect “Int_Vect”,03E0h
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word RESET
.word UART
.word RESET
.word RESET
.word RESET
.end
; receive to get back to monitor
; with ESC
; char. in rxbuf ?
; no, then wait
; put char to TXDATA
; use only if no special
; treatment of ESC is wanted
; call transmit sub-routine in
; monitor
; prepare software UART for
; receive to get back to monitor
; with ESC
; 050Eh on the MSP430X33x
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; Reset
; UART Routine
; Reset
; Reset
; Reset
The next example receives a string with a maximum of 100 (100=64h) characters, stores them, and then
transmits them after the <ENTER> key is pressed.
WDTCTL
WDTHold
WDT_wrkey
TXCHAR
TXTABLE
PREPRX
PREPTX
INT_RXTX
TXDATA
RXBUF
cr
STRING:
RESET:
.equ 0120h
.equ 80h
.equ 05a00h
.equ 0FFD2h
.equ 0FFD4h
.equ 0FFD6h
.equ 0FFD8h
.equ 0FFDAh
.equ 020Eh
.equ 0210h
.equ 0dh
.data 0300h
.space 0064h
; reserves receive buffer
.text
00240H
MOV
#03DEh,SP
; #05DEh on the MSP430X33x
MOV
#(WDTHold+WDT_wrkey),&WDTCTL ; stop Watchdog Timer
5–9