分类：电脑/网络-硬件
问题：单片机高手请进我想请教下，在c51编程中出现如下警告的原因和如何 
我想请教下，在c51编程中出现如下警告的原因和如何避免*** WNING L16: UNCALLED SEGMENT, IGNORED    FOR OVERLAY PROCESS    SEGMENT: ?PR?TIMER0?PAO             #include <REG52.H>sbit dula=P2^6;sbit wela=P2^7;#define uchar unsigned char#define uint unsigned intuchar code table[]={0x3f,0x06我想请教下，在c51编程中出现如下警告的原因和如何避免*** WNING L16: UNCALLED SEGMENT, IGNORED    FOR OVERLAY PROCESS    SEGMENT: ?PR?TIMER0?PAO             #include <REG52.H>sbit dula=P2^6;sbit wela=P2^7;#define uchar unsigned char#define uint unsigned intuchar code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0};void delay(int z);void display(); uchar bai ,shi,ge;uint temp, i,j,t0,t1;void main(){     temp=432;     TMOD=0x01;  TH0=(65536-5000)/256;  TL0=(65536-5000)%256;  EA=1;  ET0=1;  TR0=1;                          while(1){                bai=temp/100;            shi=temp%100/10;            ge=temp%10;                                          dula=1;      P0=table[7];      dula=0;              P0=0xff;            wela=1;            P0=0xfe;            wela=0;            delay(1);              dula=1;      P0=table[6];      dula=0;              P0=0xff;            wela=1;            P0=0xfd;            wela=0;            delay(1);            dula=1;      P0=table[5];      dula=0;              P0=0xff;            wela=1;            P0=0xfb;            wela=0;            delay(1);            dula=1;      P0=table[bai];      dula=0;              P0=0xff;            wela=1;            P0=0xf7;            wela=0;            delay(1);             dula=1;      P0=table[shi];      dula=0;              P0=0xff;            wela=1;            P0=0xef;            wela=0;            delay(1);                         dula=1;      P0=table[ge];      dula=0;              P0=0xff;            wela=1;            P0=0xdf;            wela=0;            delay(1);                                                        }}void delay(int z){  int x,y;  for(x=z;x>0;x--)    for(y=110;y>0;y--);}void timer0(){    TH0=(65536-5000)/256;  TL0=(65536-5000)%256;    t0++;      if(t0==10)           {            t0=0;            temp--;           }      }
回答：你的timer（）中断忘了加 interrupt 1了，在后面加上就可以了