1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

msp430g2x32 adc10 temp

2 108 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2
Dung lượng 2,83 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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 2

interrupt void ADC10_ISR (void)

#pragma vector=TIMER0_A0_VECTOR interrupt void ta0_isr(void)

Ngày đăng: 26/12/2017, 07:50

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN

w