C51 COMPILER V7.06 FUNCTION 01/29/2008 16:50:10 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE FUNCTION
OBJECT MODULE PLACED IN .\bin\function.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE function.c BROWSE DEBUG OBJECTEXTEND OBJECT(.\bin\function.obj)
stmt level source
1 #include
2 #include
3 #include
4
5
6 void init_mcu(void)
7 {
8 1 INT0=1;
9 1 EA=0;//关CPU总中断
10 1 LED_RED=0;
11 1 delay_xms(200);
12 1 LED_RED=1;
13 1 delay_xms(200);
14 1 LED_GREEN=0;
15 1 LED_RED=0;
16 1
17 1 //---------------uart init------------
18 1 SCON=0x50;//0x50;// 0101 0000
19 1 TMOD=0x21;//0x20
20 1 TCON=0x40;
21 1 TH1=0xf3;//实现波特率2400(系统时钟12.000MHZ)
22 1 TI=1;
23 1 TR1=1;
24 1 //---------------uart init------------
25 1
26 1 //-----------timer init----------
27 1 //TMOD=1;
28 1 TR0=1;
29 1 TH0=0;
30 1 TL0=0;
31 1 //-----------timer init----------
32 1
33 1 //-----------intinit------------
34 1 EA=1;//开CPU总中断
35 1 EX0=1;//开外部中断0
36 1 EX1=0;//关外部中断1
37 1 IT0=1;//下降沿触发中断0
38 1 IT1=1;//下降沿触发中断1
39 1 PX0=1;
40 1 //----------intinit------------
41 1 }
42
43 #if 0
data UCHAR IR_IN_SHARP_IRKEY_WAP[5][2]=
{
{0xf4,0x0b},//back
{0x68,0x97},//power
{0xc8,0x37},//video
{0x88,0x77},//ch+
{0x48,0xb7},//ch-
{0x50,0xaf},//digital_0
{0x80,0x7f},//digital_1
{0x40,0xbf},//digital_2
{0xc0,0x3f},//digital_3
{0x20,0xdf},//digital_4
C51 COMPILER V7.06 FUNCTION 01/29/2008 16:50:10 PAGE 2
{0xa0,0x5f},//digital_5
{0x60,0x9f},//digital_6
{0xe0,0x1f},//digital_7
{0x10,0xef},//digital_8
{0x90,0x6f}//digital_9
};
// /*
data UCHAR IR_SEND_NEC_IRKEY_WAP[5]=
{
0x0a,//back
0x0a,//power
0x0a,//video
0xf4,//ch+
0xf4,//ch-
0xf4,//digital_0
0xf4,//digital_1
0xf4,//digital_2
0xf4,//digital_3
0xf4,//digital_4
0xf4,//digital_5
0xf4,//digital_6
0xf4,//digital_7
0xf4,//digital_8
0xf4//digital_9
};
// */
#endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 58 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 5 ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)