ADC0809做的51单片机8路电压采集
float
unsigned char sj;
unsigned int gata;
unsigned char gw,sw,bw;
unsigned char kk,tdao;
//4联共阳数码管,最高位显示通道号,其他三位为电压值
unsigned char code shuzi[]={
unsigned char code duanxuan[]={0x0f,0x8f,0x4f,0xcf,0x2f,0xaf,0x6f,0xff};
sbit START=P3^1;
sbit OE=P3^3;
sbit EOC=P3^2;
sbit clock=P3^0;
void delay()
{
}
//timer init
void Timer()
{
}
void AD_zh()
{
}
//timer0/counter0 interrupt
void timer0(void) interrupt 1
{
}
void timer1(void) interrupt 3
{
}
void display()
{
}
//the main fun
void main(void)
{
while(1)
{
}
ADC080951单片机电压采 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)