📄 display_count.lst
字号:
C51 COMPILER V6.21 DISPLAY_COUNT 01/23/2002 17:41:46 PAGE 1
C51 COMPILER V6.21, COMPILATION OF MODULE DISPLAY_COUNT
OBJECT MODULE PLACED IN Display_count.OBJ
COMPILER INVOKED BY: C:\KEIL\C51\BIN\C51.EXE Display_count.c OPTIMIZE(6,SPEED) BROWSE DEBUG OBJECTEXTEND
stmt level source
1 /*------------------------------------------------------------------*-
2
3 Display_count.C (v1.00)
4
5 ------------------------------------------------------------------
6
7 Display an unsigned char on a port.
8
9
10 COPYRIGHT
11 ---------
12
13 This code is associated with the book:
14
15 EMBEDDED C by Michael J. Pont
16 [Pearson Education, 2002: ISBN: 0-201-79523-X].
17
18 This code is copyright (c) 2001 by Michael J. Pont.
19
20 See book for copyright details and other information.
21
22 -*------------------------------------------------------------------*/
23
24 #include "Main.H"
25 #include "Port.H"
26
27 #include "Display_Count.H"
28
29 /*------------------------------------------------------------------*-
30
31 DISPLAY_COUNT_Init()
32
33 Initialization function for the DISPLAY COUNT library.
34
35 -*------------------------------------------------------------------*/
36 void DISPLAY_COUNT_Init(void)
37 {
38 1 Count_port = 0x00;
39 1 }
40
41 /*------------------------------------------------------------------*-
42
43 DISPLAY_COUNT_Update()
44
45 Simple function to display tByte data (COUNT)
46 on LEDs connected to port (Count_Port)
47
48 -*------------------------------------------------------------------*/
49 void DISPLAY_COUNT_Update(const tByte COUNT)
50 {
51 1 Count_port = COUNT;
52 1 }
53
54 /*------------------------------------------------------------------*-
55 ---- END OF FILE -------------------------------------------------
C51 COMPILER V6.21 DISPLAY_COUNT 01/23/2002 17:41:46 PAGE 2
56 -*------------------------------------------------------------------*/
57
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 7 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
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 + -