This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430G2553已LaunchPad經USCI傳送設定問題?,

Other Parts Discussed in Thread: MSP430G2553, MAX232

我用的是MSP430G2553的USCI

但一直無法用LaunchPad傳電腦

請問這樣的基礎設定有問題嗎?

p.s.我用的是IAR,板子上有變成HW

;=================================================================================
#include   "msp430.h"                                     ;載入MSP430定義檔                                       
;=================================================================================
;          中斷向量表
;=================================================================================
           ORG   0FFFEh                                    ;RESET中斷向量
           DW     ST                                            ;主程式位址
           ORG   0FFECh                                    ;USCI_TX_ISR
           DW     USCI_TX_ISR                            ;
;=================================================================================
;          主程式
;=================================================================================
           ORG   0C000h
ST:      MOV   #0400h,SP                                                      ;初始堆疊位址
           MOV   #WDTPW+WDTHOLD,&WDTCTL                     ;關閉WDT
           CLR   R4
           CLR   R5
           CLR   R6
           CLR   R7
           CLR   R8        
          
           BIS.B #UCSWRST+UCSSEL_1,&UCA0CTL1                 ;Enabled.USCI logic held in reset state.
                                                                                             ;Use ACLK to be BRCLK
           BIS.B #00000100b,&P1SEL                                          ;P1.2使用週邊模組(USCI)
           MOV.B #3,&UCA0BR0                                                 ;鮑率=9600bps
           MOV.B #0,&UCA0BR1
           MOV.B #UCBRS_3+UCBRF_0,&UCA0MCTL                ;鮑率=9600bps
           BIC.B #UCSWRST,&UCA0CTL1                                   ;Disabled.USCI reset released for operation.
           BIS.B #UCA0TXIE,&IE2                                                ;致能UCA0TXIE
      
           BIS   #GIE+CPUOFF,SR                                              ;致能中斷功能+等待中斷
           NOP