?? pdown.lst
字號(hào):
C51 COMPILER V7.04 PDOWN 09/30/2003 11:12:09 PAGE 1
C51 COMPILER V7.04, COMPILATION OF MODULE PDOWN
OBJECT MODULE PLACED IN pdown.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE pdown.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 //********************************************************************
2 //
3 // Author : ADI - Apps www.analog.com/MicroConverter
4 //
5 // Date : October 2003
6 //
7 // File : PDown.c
8 //
9 // Hardware : ADuC842/ADuC843
10 //
11 // Description : Demonstrates a use of a timer interval counter to
12 // wake the ADuC842 out of Power down mode after a user
13 // specified Power down time.
14 //
15 // The LED will, on power up, flash at 5Hz. After 5s
16 // the ADuC842 will enter power down mode (the LED will
17 // stop flashing in the off position).
18 //
19 // By pressing the external interrupt 0 button (INT0) or
20 // when the user specified time runs out (20s in this
21 // example) the ADuC842 will wake up and continue
22 // blinking as before for 5s before entering power down
23 // mode again.
24 //
25 //********************************************************************
26
27 #include <stdio.h>
28 #include <ADuC842.h>
29
30 sbit LED = 0x0B4;
31
32 void DELAY(int);
33
34
35 void int0 () interrupt 0
36 {
37 1 }
38
39 void TIC_int () interrupt 10
40 {
41 1 }
42
43 void main (void)
44 {
45 1 int i;
46 1 IEIP2 = 0xA4;
47 1 IT0 = 1;
48 1 EX0 = 1;
49 1 EA = 1;
50 1
51 1 while(1)
52 1 {
53 2 for(i=0;i<50;i++)
54 2 {
55 3 DELAY(17000);
C51 COMPILER V7.04 PDOWN 09/30/2003 11:12:09 PAGE 2
56 3 LED ^= 1;
57 3 }
58 2 INTVAL = 0x14;
59 2 TIMECON = 0x13;
60 2 LED = 1;
61 2 PCON = 0x22;
62 2
63 2 TIMECON = 0x00;
64 2 }
65 1 }
66
67 void DELAY(int length)
68 {
69 1 while (length >=0)
70 1 length--;
71 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 79 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 2
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -