?? 實驗2_思考2.s43
字號:
#include "msp430x44x.h"; MSP430x44x Standard Definitions
;*******************************************************************************
; MSP-Test44x Demo - FLL+ clock, Runs internal DCO at 2.4576Mhz
;
; Description This program demostrates setting the internal DCO to run at
; 2.4576Mhz with auto-calibration by the FLL+.
; ACLK = LFXT1 = 32768, MCLK = SMCLK = DCO = (n+1) x ACLK
; //*An external watch crystal is required on XIN/XOUT for ACLK*//
;
; MSP430F449
; -----------------
; /|\| XIN|-
; | | | 32khz xtal
; --|RST XOUT|-
; | |
; | P1.1|--> MCLK = 2.4576Mhz
; | |
; | 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_2,&SCFI0 ; x2 DCO, 4MHz nominal DCO
bis.b #XCAP18PF,&FLL_CTL0 ; set load capacitance for xtal
mov.b #74,&SCFQCTL ; (74+1) x 32768 = 2.4576Mhz
;
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 + -