English
Language : 

SLAS191A Datasheet, PDF (72/86 Pages) Texas Instruments – Starter Kit Evaluation Kit Manual
The following code in Figure 5–3 is an example of transmission of the single character s.
WDTCTL
WDTHold
WDT_wrkey
TXCHAR
TXTABLE
PREPRX
PREPTX
INT_RXTX
TXDATA
RXBUF
.equ 0120h
.equ 80h
.equ 05a00h
.equ 0FFD2h
.equ 0FFD4h
.equ 0FFD6h
.equ 0FFD8h
.equ 0FFDAh
.equ 020Eh
.equ 0210h
RESET:
TX:
;
ENDL:
UART:
.text 0240h
MOV
#03DEh,SP
; use #05DEh on the MSP430X33x
MOV
#(WDTHold+WDT_wrkey),&WDTCTL ; stop Watchdog Timer
EINT
; enable interrupt
MOV
#0AA55h,&03DEh ; prepare software UART for the use
; in user application
(05DEh FOR MSP430X33x)
MOV.B
#‘a’,&TXDATA
; put char to TXDATA
BIC
#01h,&200h
; use only if no special
; treatment of ESC is wanted
CALL
&TXCHAR
; call transmit sub-routine in
; monitor
CALL
&PREPRX
; prepare software UART for receive
; to get back to monitor with ESC
MOV
#00h,&03DEh
; prepare software UART only for
; the use in the Hyperterminal
(05DEh FOR MSP430X33x)
JMP
ENDL
BR
&INT_RXTX
.sect “Int_Vect”,03E0h
; (use 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
Figure 5–3. Transmitting the s Character
5–6