Software sets ADC10SC to start sample and conversion - ADC10SC // automatically cleared at EOC.. ADC10 internal oscillator/4 times sample // 64x and conversion.. In Mainloop MSP430 waits
Trang 1//****************************************************************************** //
// Description: A single sample is made on A10 with reference to internal
// 1.5V Vref Software sets ADC10SC to start sample and conversion - ADC10SC // automatically cleared at EOC ADC10 internal oscillator/4 times sample
// (64x) and conversion In Mainloop MSP430 waits in LPM0 to save power until // ADC10 conversion complete, ADC10_ISR will force exit from any LPMx in
// Uncalibrated temperature measured from device to device will vary with
// slope and offset - please see datasheet
// ACLK = n/a, MCLK = SMCLK = default DCO ~1.2MHz, ADC10CLK = ADC10OSC/4
//
// MSP430G2x32/G2x52
//
-// /|\|
XIN|-// | | |
// |RST
XOUT|-// | |
// |A10 |
//
// D Dang
// Texas Instruments Inc
// December 2010
// Built with CCS Version 4.2.0 and IAR Embedded Workbench Version: 5.10
//******************************************************************************
#include "msp430g2452.h"
void main(void)
while(1)
// ADC10 interrupt service routine
#pragma vector=ADC10_VECTOR
Trang 2interrupt void ADC10_ISR (void)
#pragma vector=TIMER0_A0_VECTOR interrupt void ta0_isr(void)