fet430_oa1_ni-pga.c
来自「msp430F435做的医疗器械,包括语音模块,知识源于网络」· C语言 代码 · 共 35 行
C
35 行
//******************************************************************************
// MSP-FET430P430 Demo - OA1 Configured For Non-Inverting PGA Mode
//
// Description; Configure OA1 of the MSP430FG439 for Non-Inverting PGA mode.
// In this mode, the - terminal is connected to the R ladder tap and the
// OAFBRx bits select the gain.
// //* MSP430FG439 Device Required*//
//
// MSP430FG439
// -------------------
// /|\| XIN|-
// | | |
// --|RST XOUT|-
// | |
// | P6.4/A4/OA1I0|<- Input
// | P6.3/A3/OA1O|-> OA1 Amplified Output
// | |
//
// M.Mitchell
// Texas Instruments, Inc
// April 2004
// Built with IAR Embedded Workbench Version: 2.21B
//******************************************************************************
#include <msp430xG43x.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
OA1CTL0 = OAPM_1 + OAADC1; // Select inputs, power mode
OA1CTL1 = OAFC_4 + OAFBR_6 + OARRIP; // Mode, OAFBRx sets gain
LPM3; // LPM3;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?