?? 24c02.lst
字號(hào):
C51 COMPILER V8.01 24C02 07/31/2006 01:20:39 PAGE 1
C51 COMPILER V8.01, COMPILATION OF MODULE 24C02
OBJECT MODULE PLACED IN .\Output\24C02.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE Driver\24C02.C BROWSE DEBUG OBJECTEXTEND CODE LISTINCLUDE SYMBOLS PRINT(.\O
-utput\24C02.lst) PREPRINT(.\Output\24C02.i) OBJECT(.\Output\24C02.obj)
line level source
1 /*C**************************************************************************
2 * NAME: 24c02_drv.c
3 *----------------------------------------------------------------------------
4 * Copyright (c) 2006 Atmel.
5 *----------------------------------------------------------------------------
6 * RELEASE: C51 Sample
7 * REVISION: 1.00
8 *----------------------------------------------------------------------------
9 *
10 *****************************************************************************/
11 #include "system\reg51.h"
1 =1 /*--------------------------------------------------------------------------
2 =1 REG51.H
3 =1
4 =1 Header file for generic 80C51 and 80C31 microcontroller.
5 =1 Copyright (c) 1988-2002 Keil Elektronik GmbH and Keil Software, Inc.
6 =1 All rights reserved.
7 =1 --------------------------------------------------------------------------*/
8 =1
9 =1 #ifndef __REG51_H__
10 =1 #define __REG51_H__
11 =1
12 =1 /* BYTE Register */
13 =1 sfr P0 = 0x80;
14 =1 sbit P0_0 = P0^0;
15 =1 sbit P0_1 = P0^1;
16 =1 sbit P0_2 = P0^2;
17 =1 sbit P0_3 = P0^3;
18 =1 sbit P0_4 = P0^4;
19 =1 sbit P0_5 = P0^5;
20 =1 sbit P0_6 = P0^6;
21 =1 sbit P0_7 = P0^7;
22 =1
23 =1 sfr P1 = 0x90;
24 =1 sbit P1_0 = P1^0;
25 =1 sbit P1_1 = P1^1;
26 =1 sbit P1_2 = P1^2;
27 =1 sbit P1_3 = P1^3;
28 =1 sbit P1_4 = P1^4;
29 =1 sbit P1_5 = P1^5;
30 =1 sbit P1_6 = P1^6;
31 =1 sbit P1_7 = P1^7;
32 =1
33 =1 sfr P2 = 0xA0;
34 =1 sbit P2_0 = P2^0;
35 =1 sbit P2_1 = P2^1;
36 =1 sbit P2_2 = P2^2;
37 =1 sbit P2_3 = P2^3;
38 =1 sbit P2_4 = P2^4;
39 =1 sbit P2_5 = P2^5;
40 =1 sbit P2_6 = P2^6;
41 =1 sbit P2_7 = P2^7;
42 =1
43 =1 sfr P3 = 0xB0;
C51 COMPILER V8.01 24C02 07/31/2006 01:20:39 PAGE 2
44 =1 sbit P3_0 = P3^0;
45 =1 sbit P3_1 = P3^1;
46 =1 sbit P3_2 = P3^2;
47 =1 sbit P3_3 = P3^3;
48 =1 sbit P3_4 = P3^4;
49 =1 sbit P3_5 = P3^5;
50 =1 sbit P3_6 = P3^6;
51 =1 sbit P3_7 = P3^7;
52 =1
53 =1 sfr PSW = 0xD0;
54 =1 sfr ACC = 0xE0;
55 =1 sfr B = 0xF0;
56 =1 sfr SP = 0x81;
57 =1 sfr DPL = 0x82;
58 =1 sfr DPH = 0x83;
59 =1 sfr PCON = 0x87;
60 =1 sfr TCON = 0x88;
61 =1 sfr TMOD = 0x89;
62 =1 sfr TL0 = 0x8A;
63 =1 sfr TL1 = 0x8B;
64 =1 sfr TH0 = 0x8C;
65 =1 sfr TH1 = 0x8D;
66 =1 sfr IE = 0xA8;
67 =1 sfr IP = 0xB8;
68 =1 sfr SCON = 0x98;
69 =1 sfr SBUF = 0x99;
70 =1
71 =1
72 =1 /* BIT Register */
73 =1 /* PSW */
74 =1 sbit CY = 0xD7;
75 =1 sbit AC = 0xD6;
76 =1 sbit F0 = 0xD5;
77 =1 sbit RS1 = 0xD4;
78 =1 sbit RS0 = 0xD3;
79 =1 sbit OV = 0xD2;
80 =1 sbit P = 0xD0;
81 =1
82 =1 /* TCON */
83 =1 sbit TF1 = 0x8F;
84 =1 sbit TR1 = 0x8E;
85 =1 sbit TF0 = 0x8D;
86 =1 sbit TR0 = 0x8C;
87 =1 sbit IE1 = 0x8B;
88 =1 sbit IT1 = 0x8A;
89 =1 sbit IE0 = 0x89;
90 =1 sbit IT0 = 0x88;
91 =1
92 =1 /* IE */
93 =1 sbit EA = 0xAF;
94 =1 sbit ES = 0xAC;
95 =1 sbit ET1 = 0xAB;
96 =1 sbit EX1 = 0xAA;
97 =1 sbit ET0 = 0xA9;
98 =1 sbit EX0 = 0xA8;
99 =1
100 =1 /* IP */
101 =1 sbit PS = 0xBC;
102 =1 sbit PT1 = 0xBB;
103 =1 sbit PX1 = 0xBA;
104 =1 sbit PT0 = 0xB9;
105 =1 sbit PX0 = 0xB8;
C51 COMPILER V8.01 24C02 07/31/2006 01:20:39 PAGE 3
106 =1
107 =1 /* P3 */
108 =1 sbit RD = 0xB7;
109 =1 sbit WR = 0xB6;
110 =1 sbit T1 = 0xB5;
111 =1 sbit T0 = 0xB4;
112 =1 sbit INT1 = 0xB3;
113 =1 sbit INT0 = 0xB2;
114 =1 sbit TXD = 0xB1;
115 =1 sbit RXD = 0xB0;
116 =1
117 =1 /* SCON */
118 =1 sbit SM0 = 0x9F;
119 =1 sbit SM1 = 0x9E;
120 =1 sbit SM2 = 0x9D;
121 =1 sbit REN = 0x9C;
122 =1 sbit TB8 = 0x9B;
123 =1 sbit RB8 = 0x9A;
124 =1 sbit TI = 0x99;
125 =1 sbit RI = 0x98;
126 =1
127 =1 #endif
12 #include "system\compiler.h"
1 =1 /*H**************************************************************************
2 =1 * NAME: compiler.h
3 =1 *----------------------------------------------------------------------------
4 =1 * Copyright (c) 2006 Atmel.
5 =1 *----------------------------------------------------------------------------
6 =1 * RELEASE: C51 Sample
7 =1 * REVISION: 1.00
8 =1 *----------------------------------------------------------------------------
9 =1 * PURPOSE:
10 =1 *****************************************************************************/
11 =1
12 =1 typedef unsigned char Byte;
13 =1 typedef unsigned char Uchar;
14 =1 typedef unsigned int Uint16;
15 =1 typedef int Int16;
16 =1 typedef float Float16;
17 =1 typedef unsigned long int Uint32;
18 =1 typedef long int Int32;
19 =1
20 =1
13 #include "system\config.h"
1 =1 /*H**************************************************************************
2 =1 * NAME: config.h
3 =1 *----------------------------------------------------------------------------
4 =1 * Copyright (c) 2003 Atmel.
5 =1 *----------------------------------------------------------------------------
6 =1 * RELEASE: C51 Sample
7 =1 * REVISION: 1.15
8 =1 *----------------------------------------------------------------------------
9 =1 * PURPOSE:
10 =1 *****************************************************************************/
11 =1 /*** General purpose defines ***/
12 =1
13 =1 #define FALSE 0
14 =1 #define TRUE 1
15 =1 #define Low 0
16 =1 #define High 1
17 =1
18 =1 /* Display driver */
C51 COMPILER V8.01 24C02 07/31/2006 01:20:39 PAGE 4
19 =1 #define LCD 0
20 =1 #define LED 1
21 =1 #define LCM 2
22 =1 #define HT1621 3
23 =1 #define CONF_DISPLAY HT1621
24 =1
25 =1 /*----- HT1621 Command Definition -----*/
26 =1 #define HT1621_COMBIAS ((Byte)0x52)
27 =1 #define HT1621_RC ((Byte)0x30)
28 =1 #define HT1621_TIMER ((Byte)0x08)
29 =1 #define HT1621_SYSEN ((Byte)0x02)
30 =1 #define HT1621_ON ((Byte)0x06)
31 =1
32 =1 /*----- HT1621 Address Definition -----*/
33 =1 #define HT1621_ADDRESS0 ((Byte)0x00)
34 =1 #define HT1621_ADDRESS1 ((Byte)0x02)
35 =1 #define HT1621_ADDRESS2 ((Byte)0x04)
36 =1 #define HT1621_ADDRESS3 ((Byte)0x06)
37 =1 #define HT1621_ADDRESS4 ((Byte)0x08)
38 =1 #define HT1621_ADDRESS5 ((Byte)0x0a)
39 =1 #define HT1621_ADDRESS6 ((Byte)0x0c)
40 =1 #define HT1621_ADDRESS7 ((Byte)0x0e)
41 =1 #define HT1621_ADDRESS8 ((Byte)0x10)
42 =1
43 =1 #define HT1621TRACK_ADD HT1621_ADDRESS1
44 =1 #define HT1621VOLUME_ADD HT1621_ADDRESS1
45 =1 #define HT1621SEC_ADDL HT1621_ADDRESS1
46 =1 #define HT1621SEC_ADDH HT1621_ADDRESS2
47 =1 #define HT1621MIN_ADDL HT1621_ADDRESS3
48 =1 #define HT1621MIN_ADDH HT1621_ADDRESS4
49 =1 #define HT1621TRACK_ADDL HT1621_ADDRESS5
50 =1 #define HT1621TRACK_ADDH HT1621_ADDRESS6
51 =1 #define HT1621TRACK_H_ADD HT1621_ADDRESS8
52 =1
53 =1 #define HT1621COL ((Byte)0x10)
54 =1 #define HT1621VOL ((Byte)0x01)
55 =1
56 =1 /*----- Task states -----*/
57 =1 #define KBD_IDLE (Byte)0x00
58 =1 #define KBD_DEBOUNCE (Byte)0x01
59 =1 #define KBD_DECODE (Byte)0x02
60 =1
61 =1 /*----- Key Decoding Mask -----*/
62 =1 #define NO_KEY ((Byte)0x1f) /* 00011111 */
63 =1 #define KEY_0 ((Byte)0x1e) /* 00011110,REPEAT/PRESET */
64 =1 #define KEY_1 ((Byte)0x1d) /* 00011101,STOP */
65 =1 #define KEY_2 ((Byte)0x1B) /* 00011011,ALBUM/+10 */
66 =1 #define KEY_3 ((Byte)0x17) /* 00010111,PLAY/PAUSE */
67 =1 #define KEY_4 ((Byte)0x0f) /* 00001111,S16 */
68 =1
69 =1 #define KEY_5 ((Byte)0x1c) /* 00011100,EQ/PROG/MEM */
70 =1 #define KEY_6 ((Byte)0x1a) /* 00011010,RADIO */
71 =1 #define KEY_7 ((Byte)0x16) /* 00010110,CD */
72 =1 #define KEY_8 ((Byte)0x0e) /* 00001110,VOL+ */
73 =1
74 =1 #define KEY_9 ((Byte)0x19) /* 00011001,TAPE */
75 =1 #define KEY_10 ((Byte)0x15) /* 00010101,MAIN POWER */
76 =1 #define KEY_11 ((Byte)0x0d) /* 00001101,VOL- */
77 =1
78 =1 #define KEY_12 ((Byte)0x13) /* 00010011,BAND */
79 =1 #define KEY_13 ((Byte)0x0B) /* 00001011,FF/UP */
80 =1
C51 COMPILER V8.01 24C02 07/31/2006 01:20:39 PAGE 5
81 =1 #define KEY_14 ((Byte)0x07) /* 00000111,FR/DOWN */
82 =1
83 =1 #define KEY_REPEAT KEY_0
84 =1 #define KEY_STOP KEY_1
85 =1 #define KEY_ALBUM KEY_2
86 =1 #define KEY_PALY_PAUSE KEY_3
87 =1 #define KEY_S16 KEY_4
88 =1
89 =1 #define KEY_EQ_PROG KEY_5
90 =1 #define KEY_RADIO KEY_6
91 =1 #define KEY_CD KEY_7
92 =1 #define KEY_VOL_INC KEY_8
93 =1
94 =1 #define KEY_TAPE KEY_9
95 =1 #define KEY_MainPower KEY_10
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -