代码搜索结果
找到约 10,000 项符合
Analog 的代码
analog.c
#include
//#include
#include
#include
#include "avr_compat.h"
#include "dac.h"
#include "hardware_settings.h"
volatile static unsigned char c
analog.h
#ifndef ANALOG_H
#define ANALOG_H
/* You must enable interrupt with sei() in the main program */
extern void init_analog(void);
/* get the result of an analog conversion */
extern int getanalogresult
analog.h
//-----------------------------------------------------------------------------
// ANALOG.H
//
//-----------------------------------------------------------------------------
void init_adc(void)
analog.c
//-----------------------------------------------------------------------------
// Net ANALOG.C
//
// This module handles the analog inputs which are external temperature
// sensor, the on-chip te
analog.c
#include "main.h"
void ADC_Init(void)
{
//printf("ADC_Init\n");
ATD0CTL0=0x07;
ATD0CTL1=0xc0; //7:1-外部触发,65:00-12位精度,4:放电,3210:ch
ATD0CTL2=0x40; //禁止外部触发, 中断禁止
ATD0CT
analog.h
#ifndef _ANALOG_H
#define _ANALOG_H
void ADC_Init(void);
#endif