?? fet410_fll_01.asm
字號:
;*******************************************************************************
; MSP-FET430P410 Demo - FLL+, Runs Internal DCO at 2.45MHz
;
; Description: This program demonstrates setting the internal DCO to run at
; 2.45MHz with auto-calibration by the FLL+.
; ACLK = LFXT1 = 32768Hz, MCLK = SMCLK = DCO = (74+1) x ACLK = 2457600Hz
; ;* An external watch crystal between XIN & XOUT is required for ACLK *//
;
; MSP430F413
; -----------------
; /|\| XIN|-
; | | | 32kHz
; --|RST XOUT|-
; | |
; | P1.1/MCLK|--> MCLK = 2.45MHz
; | |
; | P1.5/ACLK|--> ACLK = 32kHz
; | |
;
; M. Buccini / S. Karthikeyan
; Texas Instruments Inc.
; May 2005
; Built with Code Composer Essentials Version: 1.0
;******************************************************************************
.cdecls C,LIST, "msp430x41x.h"
;------------------------------------------------------------------------------
.text ; Program Start
;------------------------------------------------------------------------------
RESET mov.w #300h,SP ; Initialize stackpointer
SetupWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT
SetupFLL2 bis.b #FN_2,&SCFI0 ; .set DCO operating range
bis.b #XCAP18PF,&FLL_CTL0 ; .set load capacitance for xtal
mov.b #74,&SCFQCTL ; (74+1) x 32768 = 2457600Hz
;
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
;
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".reset" ; RESET Vector
.short RESET ;
.end
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -