📄 fet430_oa_05.asm
字号:
;******************************************************************************
; MSP-FET430P430 Demo - OA0, Non-Inverting PGA Mode
;
; Description: Configure OA0 for Non-Inverting PGA mode. In this mode,
; the "-" terminal is connected to the R ladder tap and the OAFBRx bits
; select the gain.
; ACLK = n/a, MCLK = SMCLK = default DCO
;
; MSP430FG439
; -------------------
; /|\| XIN|-
; | | |
; --|RST XOUT|-
; | |
; "+" -->|P6.0/OA0I0 |
; | |
; | P6.1/OA0O|--> OA0 Output
; | | Gain is 8
;
; M. Mitchell / M. Mitchell
; Texas Instruments Inc.
; May 2005
; Built with Code Composer Essentials Version: 1.0
;******************************************************************************
.cdecls C,LIST, "msp430xG43x.h"
;------------------------------------------------------------------------------
.text ; Program Start
;------------------------------------------------------------------------------
RESET mov.w #0A00h,SP ; Initialize stack pointer
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT
;
SetupOA mov.b #OAPM_1+OAADC1,&OA0CTL0 ; Slow slew rate,
; "+" connected to OA0IO (default),
; output connected to A1
mov.b #OAFC_4+OAFBR_6+OARRIP,&OA0CTL1
; Non-inverting PGA mode,
; gain is 8, no r-to-r input
;
Mainloop bis.w #LPM3,SR ; Enter LPM3
nop ; Required only for debug
;
;------------------------------------------------------------------------------
; Interrupt Vectors
;------------------------------------------------------------------------------
.sect ".reset" ; RESET Vector
.short RESET ;
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -