?? fet430_oa_05.c
字號:
//*****************************************************************************
// 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
// Texas Instruments Inc.
// Feb 2005
// Built with IAR Embedded Workbench Version: 3.21A
//*****************************************************************************
#include <msp430xG43x.h>
void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
OA0CTL0 = OAPM_1 + OAADC1; // Select inputs, power mode
OA0CTL1 = OAFC_4 + OAFBR_6 + OARRIP; // Mode, OAFBRx sets gain
LPM3; // LPM3
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -