?? 實驗2_思考3.s43
字號:
#include "msp430x44x.h"; MSP430x44x Standard Definitions
;*******************************************************************************
; MSP-Test44x Demo - FLL+ clock, runs internal DCO at8 Mhz
;
; Description "FET440_8MhzDCO": This program demostrates setting the internal
; DCO to run at 8Mhz with auto-calibration by the FLL+.
; ACLK = LFXT1 = 32768, MCLK = SMCLK = DCOCLK = (n+1) x 2 x ACLK
; //*An external watch crystal is required on XIN/XOUT for ACLK*//
;
; MSP430F449
; -----------------
; /|\| XIN|-
; | | | 32khz xtal
; --|RST XOUT|-
; | |
; | P1.1|--> MCLK = 8Mhz
; | |
; | P1.5|--> ACLK = 32khz
; | |
;
; Yang Rui
; Lierda, Inc
; NOVEMBER 2003
; Built with IAR Embedded Workbench Version: 1.26B
;------------------------------------------------------------------------------
ORG 01100h ; Program Start
;------------------------------------------------------------------------------
RESET mov.w #0A00h,SP ; Initialize '449 stackpointer
SetupWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ;stop WDT
SetupFLL2 bis.b #FN_4,&SCFI0 ; x2 DCO, 8MHz nominal DCO
bis.b #DCOPLUS+XCAP14PF,&FLL_CTL0 ; DCO+, configure load caps
mov.b #121,&SCFQCTL ;(121+1) x 2 x 32768 = 7.99 Mhz
SetupPorts bis.b #022h,&P1DIR ;P1.1 & P1.5 to output direction
bis.b #022h,&P1SEL ;P1.1 & P1.5 to output MCLK & ACLK
;
Mainloop jmp Mainloop ;loop with CPU running
;
;-----------------------------------------------------------------------------
; MSP430F43x/44x interrupt vectors used
;-----------------------------------------------------------------------------
ORG 0FFFEh ; MSP430 RESET Vector
DW RESET ;
END
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -