#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
uchar ge,shi,bai;
uchar tt;
uchar code tb[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90};
uchar code bit_ser[]={0xff,0xdf,0xef,0xf7};
sbit DA = P1^5;
sbit CLK = P1^1;
sbit CS = P1^6;
void timer0_init() //T0的初始化函数
{
TMOD =0x01;
TL0=(65536-50000)%256;
TH0=(65536-50000)/256;
TR0=1;
ET0=1;
EA=1;
}
void timer0_isr() interrupt 1 //T0的中断处理函数,用于显示输出的电压值
{ <