|
|||||||||||
| 技術交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術 | 電源技術 | 測控之家 | EMC技術 | ARM技術 | EDA技術 | PCB技術 | 嵌入式系統(tǒng) 驅動編程 | 集成電路 | 器件替換 | 模擬技術 | 新手園地 | 單 片 機 | DSP技術 | MCU技術 | IC 設計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
KEIL中的以下警告對程序運行有什么影響? |
| 作者:sky134579 欄目:單片機 |
Build target 'Target 1' compiling 8051ucode.c... linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?POWER_OFF?8051UCODE *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?DO_ACK?8051UCODE Program Size: data=50.1 xdata=0 code=1523 creating hex file from "J1"... "J1" - 0 Error(s), 2 Warning(s). 以上兩個警告對程序會造成什么影響呢? 請各位指導一下 |
| 2樓: | >>參與討論 |
| 作者: computer00 于 2006/7/18 14:45:00 發(fā)布:
沒什么影響。沒調用而已。 |
|
| 3樓: | >>參與討論 |
| 作者: sky134579 于 2006/7/18 14:57:00 發(fā)布:
謝謝圈圈! 圈圈大哥可以幫我看一下下面的遙控接收處理程序嗎? 我實在找不到錯了. /* interrupt 0 External Interrupt 0 (Remote CONTROL) interrupt 1 Timer 0 (562.5us) interrupt 2 External Interrupt 1 (I2C SCL) interrupt 3 Timer 1 (25ms) interrupt 4 RS232C Disabled interrupt 5 Timer 2 Disabled */ /******************************************************************** * Function NAME: IR_Falling_Edge_ISR * Input Parameters: None * Return VALUE: None * DESCRIPTION: interrupt 0 External Interrupt 0 (Remote CONTROL) * This interrupt service routine is triggered at the falling edge of IR signal ********************************************************************/ void IR_Falling_Edge_ISR(void) interrupt 0 { static u8 bitcount; /* bits counter */ static u8 IR_State=IDLE; static u8 data1; static u8 data2; static bit valid_repeat; int t0; EX0 = 0; /* disable externel interrupt 0 */ /* calculate the clock */ TR1=0; t0=(TH1<<8)|TL1; /* Get the time between the two interrupts */ TH1=0; TL1=0; TR1=1; /* Jack 7/13 17:02 */ /*** IR_processing is no longer used. ****/ /* <<This flag prevents the reception of REPEAT keys & hence is not GOOD enough.>> */ /* if(IR_processing==1) { EX0=1; return; } */ SWITCH(IR_State) { case IDLE: IR_State = LEADER_ON; //LEAD PULSE received. break; case LEADER_ON: if ( (t0 > NORMAL_HEADER_L) && (t0 < NORMAL_HEADER_R) ) { IR_State = CUSTOM; valid_repeat = 0; IR_Repeat = 0; data1 = 0; data2 = 0; bitcount = 0; } else { if ( (t0 > REPEAT_HEADER_L) && (t0 < REPEAT_HEADER_R) ) { if (valid_repeat) IR_Repeat = 1; } /* IR_State = IDLE; */ &nb |
|
| 4樓: | >>參與討論 |
| 作者: computer00 于 2006/7/18 15:34:00 發(fā)布:
這個太長了,看起來暈人啊,你還是自己慢慢檢查吧。 |
|
| 5樓: | >>參與討論 |
| 作者: sky134579 于 2006/7/18 15:35:00 發(fā)布:
問題搞定了 是在頭文件中BIT_0及BIT_1的定義出了點小問題,還是馬虎. |
|
|
|
| 免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |