Dreamtale07 发表于 2013-1-3 14:25 
你账号里的那堆数字就是QQ?
//定时器0溢出中断服务程序
#pragma vector = TIMER0_COMPA_vect
__interrupt void timer0_compa_isr(void) //匹配中断
{
ADC_Value=read_ADC(); //AD数码管显示
f_adc=(3.3*ADC_Value)/1024;
f_adc*=1000;
ADC_Value=(unsigned int)f_adc;
Dis_number(1,1,ADC_Value/1000);
Dis_number(2,0,ADC_Value%1000/100);
Dis_number(3,0,ADC_Value%1000%100/10);
Dis_number(4,0,ADC_Value%1000%100%10);
} |