?? pll841.lst
字號:
C51 COMPILER V5.50, PLL841 20/10/03 09:04:33 PAGE 1
DOS C51 COMPILER V5.50, COMPILATION OF MODULE PLL841
OBJECT MODULE PLACED IN PLL841.OBJ
COMPILER INVOKED BY: C:\ADUC\BIN\C51.EXE PLL841.C DB
stmt level source
1 //pll841.c
2 /*
3 Author: Eckart Hartmann Date:15/10/2003
4 Description of Software:
5 This program demonstrates the PLL functions:
6 <A HREF="/mcc/softw/841/pll/Pll841Dly.html">PllDly()</A>,
7 <A HREF="/mcc/softw/841/pll/Pll841Wcd.html">PllWcd()</A> and
8 <A HREF="/mcc/softw/841/pll/Pll841Rcd.html">PllRcd()</A>.
9
10 The test waits 1s to ensure PLL is stable, reads the CD bits and
11 then checks the CD bits. If an error occurs P3.4 pulses every second.
12 Then 0ms, 1ms, 255ms, 256ms, 257ms, 32.6s,33s and 65.535s are measured off with
13 P3.4 toggling after each time period. The periods can thus be checked on an
14 oscilloscope. If the test has passed P3.4 flickers continuously.
15 Development progress: <A HREF="/mcc/softw/814/pll/Pll814Df.html">Pll814.df</A>
16 */
17 #include"..\kei841.h" //;<A HREF="/mcc/softw/841/Kei841Sfr.html">SFR definition file</A>.
18 #include"..\lib841.h" //;<A HREF="/mcc/softw/841/Lib841H.html">Function and variable declaration file</A>.
19
20 void flicker(void);
21
22 void main(void)
23 {
24 1 PllDly(1000);
25 1 P34 = 0;
26 1 PllDly(0);
27 1 P34 = !P34;
28 1 PllDly(1);
29 1 P34 = !P34;
30 1 PllDly(255);
31 1 P34 = !P34;
32 1 PllDly(256);
33 1 P34 = !P34;
34 1 PllDly(257);
35 1 P34 = !P34;
36 1 PllDly(32600);
37 1 P34 = !P34;
38 1 PllDly(33000);
39 1 P34 = !P34;
40 1 PllDly(65535);
41 1 P34 = !P34;
42 1 while(1) flicker();
43 1 }
44
45 void flicker(void)
46 {
47 1 char c1;
48 1
49 1 for(c1=0; c1<32; c1++)
50 1 {
51 2 PllDly(30);
52 2 P34 = 1;
53 2 PllDly(30);
54 2 P3 = 0x00;
55 2 } }
56
MODULE INFORMATION: STATIC OVERLAYABLE
C51 COMPILER V5.50, PLL841 20/10/03 09:04:33 PAGE 2
CODE SIZE = 120 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 2 1
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -