代码搜索结果
找到约 10,000 项符合
ADC 的代码
adc_drv.h
/*H**************************************************************************
* $RCSfile: adc_drv.h,v $
*----------------------------------------------------------------------------
* Copy
adc7923._h
/*******************************************************************************
**文 件 名:ADC7923.h
**作 者:
**创建日期:
**修改记录:
**文件说明:AD7923低功耗底层驱动头文件
**版
adc_demo.c
/*
* File: adc_demo.c
* Purpose: Demo the Analog to Digtal Converter triggered by the Programable Delay Block
* Call the function Hw_Trig_Test which demonstrates and tests
adc_demo.h
/******************************************************************************
* File: ADC_PDB.h
* Purpose: header file for ADC_PDB.c
* Note:
*************************************************
adc16.h
// This file contains the defines for the ADC "driver".
#ifndef __ADC16_H__
#define __ADC16_H__ 1
#define ADC0_irq_no 57
#define ADC1_irq_no 58
// Bit shifting of bitfiled is already ta
adc16.c
/*
* File: a16dc.c
* Purpose: Simple Driver or API for AdC16/PGA
* This file contains the following two functions:
* 1. ADC_Cal: calibrates the ADC
* 2. ADC_Config_Alt: Simply configures
adc_ts.h
/*
* FILE: adc_ts.h
* ADC和触摸屏的测试函数接口
*/
#ifndef __ADC_TS_H__
#define __ADC_TS_H__
/*
* 测试ADC
* 通过A/D转换,测量可变电阻器的电压值
*/
void Test_Adc(void);
/*
* 测试触摸屏,打印触点坐标
*/
adc_ts.lds
SECTIONS {
. = 0x00000000;
.init : AT(0){ head.o init.o nand.o}
. = 0x30000000;
.text : AT(4096) { *(.text) }
.rodata ALIGN(4) : AT((LOADADDR(.text)+SIZEOF(.text)+3)&~(0x03)) {*(.r
adc_ts.c
/*
* FILE: adc_ts.c
* ADC和触摸屏的测试函数
*/
#include
#include "adc_ts.h"
#include "s3c24xx.h"
#include "serial.h"
// ADCCON寄存器
#define PRESCALE_DIS (0
stc_adc.h
sfr P1_ADC_EN=0x97;
sfr ADC_CONTR=0xc5;
sfr ADC_DATA=0xc6;
int GetAD(unsigned char channel) //用户函数,channel为要取的通道号(0~7)
{
unsigned char AD_finished=0;
// AD_Init(1