标签: C程序

ADC0832应用–A/D转换C语言例程

#include <reg51.h>

#define ulong unsigned long
#define uint unsigned int
#define uchar unsigned char

sbit ADCS =P3^4; //ADC0832 chip seclect
sbit ADDI =P1^1; //ADC0832 data in
sbit ADDO =P1^1; //ADC0832 data out
sbit ADCLK =P1^0; //ADC0832 clock signal

unsigned int Adc0832(unsigned char channel);
阅读详细 »