不知道好不好用

This commit is contained in:
iridiumR 2022-05-25 15:12:42 +08:00
parent 4b9c9d4b9c
commit 20bb7dbf92
13 changed files with 569 additions and 451 deletions

View file

@ -1,9 +1,9 @@
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY:
C:\KEIL_V5\C51\BIN\BL51.EXE .\Objects\main.obj, .\Objects\menu.obj, .\Objects\delay.obj, .\Objects\display.obj TO .\Obje
>> cts\MCU_1 PRINT (.\Listings\MCU_1.m51)
C:\KEIL_V5\C51\BIN\BL51.EXE .\Objects\main.obj, .\Objects\menu.obj, .\Objects\delay.obj, .\Objects\display.obj, .\Object
>> s\draw.obj TO .\Objects\MCU_1 PRINT (.\Listings\MCU_1.m51)
MEMORY MODEL: LARGE
@ -14,6 +14,7 @@ INPUT MODULES INCLUDED:
.\Objects\menu.obj (MENU)
.\Objects\delay.obj (DELAY)
.\Objects\display.obj (DISPLAY)
.\Objects\draw.obj (DRAW)
C:\KEIL_V5\C51\LIB\C51L.LIB (?C_STARTUP)
C:\KEIL_V5\C51\LIB\C51L.LIB (?C?PLDPTR)
C:\KEIL_V5\C51\LIB\C51L.LIB (?C?PLDOPTR)
@ -44,24 +45,25 @@ LINK MAP OF MODULE: .\Objects\MCU_1 (MAIN)
* * * * * * * C O D E M E M O R Y * * * * * * *
CODE 0000H 0003H ABSOLUTE
CODE 0003H 01A0H UNIT ?CO?DISPLAY
CODE 01A3H 013BH UNIT ?PR?DRAWNUMBER?DISPLAY
CODE 02DEH 00C5H UNIT ?PR?CLEAR?DISPLAY
CODE 03A3H 00C5H UNIT ?PR?MINICLEAR?DISPLAY
CODE 0468H 00C5H UNIT ?PR?TEST?DISPLAY
CODE 052DH 008EH UNIT ?PR?DRAWNAME?DISPLAY
CODE 05BBH 008CH UNIT ?C_C51STARTUP
CODE 0647H 007DH UNIT ?C?LIB_CODE
CODE 06C4H 0042H UNIT ?PR?_M_STARTUP?MENU
CODE 0706H 002FH UNIT ?PR?MAIN?MAIN
CODE 0735H 0020H UNIT ?PR?_DELAY?DELAY
CODE 0755H 001CH UNIT ?PR?DISPLAYINIT?DISPLAY
CODE 0771H 0019H UNIT ?PR?WRITE?DISPLAY
CODE 078AH 000FH UNIT ?PR?MENUINIT?MENU
CODE 0799H 000BH UNIT ?PR?DELAY100US?DELAY
CODE 07A4H 000AH UNIT ?C_INITSEG
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 2
CODE 01A3H 01A0H UNIT ?CO?DRAW
CODE 0343H 013FH UNIT ?PR?DRAWNUMBER?DRAW
CODE 0482H 00C5H UNIT ?PR?CLEAR?DISPLAY
CODE 0547H 00C5H UNIT ?PR?MINICLEAR?DISPLAY
CODE 060CH 00C5H UNIT ?PR?TEST?DISPLAY
CODE 06D1H 008EH UNIT ?PR?DRAWNAME?DRAW
CODE 075FH 008CH UNIT ?C_C51STARTUP
CODE 07EBH 007DH UNIT ?C?LIB_CODE
CODE 0868H 0042H UNIT ?PR?_M_STARTUP?MENU
CODE 08AAH 002FH UNIT ?PR?MAIN?MAIN
CODE 08D9H 0020H UNIT ?PR?_DELAY?DELAY
CODE 08F9H 001CH UNIT ?PR?DISPLAYINIT?DISPLAY
CODE 0915H 0019H UNIT ?PR?WRITE?DISPLAY
CODE 092EH 000FH UNIT ?PR?MENUINIT?MENU
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 2
CODE 093DH 000BH UNIT ?PR?DELAY100US?DELAY
CODE 0948H 000AH UNIT ?C_INITSEG
@ -84,9 +86,9 @@ SEGMENT XDATA_GROUP
?PR?_M_STARTUP?MENU 000FH 0003H
+--> ?PR?DISPLAYINIT?DISPLAY
+--> ?PR?CLEAR?DISPLAY
+--> ?PR?DRAWNAME?DISPLAY
+--> ?PR?DRAWNAME?DRAW
+--> ?PR?_DELAY?DELAY
+--> ?PR?DRAWNUMBER?DISPLAY
+--> ?PR?DRAWNUMBER?DRAW
?PR?DISPLAYINIT?DISPLAY ----- -----
+--> ?PR?WRITE?DISPLAY
@ -97,16 +99,29 @@ SEGMENT XDATA_GROUP
?PR?CLEAR?DISPLAY 0012H 0004H
+--> ?PR?WRITE?DISPLAY
?PR?DRAWNAME?DISPLAY 0012H 0002H
?PR?DRAWNAME?DRAW 0012H 0002H
+--> ?PR?WRITE?DISPLAY
+--> ?CO?DISPLAY
+--> ?CO?DRAW
?PR?DRAWNUMBER?DISPLAY 0012H 0002H
?PR?DRAWNUMBER?DRAW 0012H 0002H
+--> ?PR?WRITE?DISPLAY
+--> ?CO?DISPLAY
+--> ?CO?DRAW
IGNORED SYMBOLS:
NAME_PAGE0
NAME_PAGE1
NUMBER_PAGE0
NUMBER_PAGE1
NUMBER_RPAGE0
NUMBER_RPAGE1
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 3
SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
VALUE TYPE NAME
@ -118,76 +133,73 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:00B0H PUBLIC P3
D:00A8H PUBLIC IE
D:00B8H PUBLIC IP
C:0706H PUBLIC main
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 3
C:08AAH PUBLIC main
D:0098H PUBLIC SCON
D:0088H PUBLIC TCON
D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW
------- PROC MAIN
C:0706H LINE# 15
C:0706H LINE# 16
C:0706H LINE# 17
C:0709H LINE# 18
C:0733H LINE# 19
C:0733H LINE# 20
C:0733H LINE# 24
C:08AAH LINE# 16
C:08AAH LINE# 17
C:08AAH LINE# 18
C:08ADH LINE# 19
C:08D7H LINE# 20
C:08D7H LINE# 21
C:08D7H LINE# 25
------- ENDPROC MAIN
------- ENDMOD MAIN
------- MODULE MENU
C:0000H SYMBOL _ICE_DUMMY_
X:0000H PUBLIC M_MAINMANU
C:078AH PUBLIC menuInit
C:092EH PUBLIC menuInit
X:0006H PUBLIC M_STARTUP
C:06C4H PUBLIC _m_startup
C:0868H PUBLIC _m_startup
X:000CH PUBLIC NOW
------- PROC _M_STARTUP
X:000FH SYMBOL this
C:06C4H LINE# 10
C:06CFH LINE# 11
C:06CFH LINE# 12
C:06D2H LINE# 13
C:06D5H LINE# 14
C:06D8H LINE# 15
C:06DFH LINE# 16
C:06E2H LINE# 17
C:06E9H LINE# 18
C:06ECH LINE# 19
C:0705H LINE# 20
C:0868H LINE# 18
C:0873H LINE# 19
C:0873H LINE# 20
C:0876H LINE# 21
C:0879H LINE# 22
C:087CH LINE# 23
C:0883H LINE# 24
C:0886H LINE# 25
C:088DH LINE# 26
C:0890H LINE# 27
C:08A9H LINE# 28
------- ENDPROC _M_STARTUP
------- PROC MENUINIT
C:078AH LINE# 24
C:078AH LINE# 25
C:078AH LINE# 26
C:0798H LINE# 27
C:092EH LINE# 31
C:092EH LINE# 32
C:092EH LINE# 33
C:093CH LINE# 34
------- ENDPROC MENUINIT
------- ENDMOD MENU
------- MODULE DELAY
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 4
C:0000H SYMBOL _ICE_DUMMY_
C:0799H PUBLIC delay100us
C:0735H PUBLIC _delay
C:093DH PUBLIC delay100us
C:08D9H PUBLIC _delay
------- PROC DELAY100US
------- DO
D:0007H SYMBOL i
D:0006H SYMBOL j
------- ENDDO
C:0799H LINE# 3
C:0799H LINE# 4
C:0799H LINE# 7
C:079AH LINE# 8
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 4
C:079BH LINE# 9
C:079DH LINE# 10
C:079FH LINE# 12
C:079FH LINE# 13
C:07A1H LINE# 14
C:07A3H LINE# 15
C:093DH LINE# 3
C:093DH LINE# 4
C:093DH LINE# 7
C:093EH LINE# 8
C:093FH LINE# 9
C:0941H LINE# 10
C:0943H LINE# 12
C:0943H LINE# 13
C:0945H LINE# 14
C:0947H LINE# 15
------- ENDPROC DELAY100US
------- PROC _DELAY
D:0006H SYMBOL n
@ -195,11 +207,11 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:0006H SYMBOL i
D:0004H SYMBOL j
------- ENDDO
C:0735H LINE# 24
C:0735H LINE# 26
C:0735H LINE# 27
C:0740H LINE# 28
C:0754H LINE# 29
C:08D9H LINE# 24
C:08D9H LINE# 26
C:08D9H LINE# 27
C:08E4H LINE# 28
C:08F8H LINE# 29
------- ENDPROC _DELAY
------- ENDMOD DELAY
@ -207,343 +219,395 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:0000H SYMBOL _ICE_DUMMY_
D:0090H PUBLIC P1
D:00B0H PUBLIC P3
C:02DEH PUBLIC clear
C:0482H PUBLIC clear
D:00A8H PUBLIC IE
C:0755H PUBLIC displayInit
C:08F9H PUBLIC displayInit
D:00B8H PUBLIC IP
B:00B0H.0 PUBLIC RS
B:00B0H.1 PUBLIC RW
C:077AH PUBLIC write
C:091EH PUBLIC write
D:0098H PUBLIC SCON
D:0088H PUBLIC TCON
C:03A3H PUBLIC miniclear
C:0468H PUBLIC test
C:0547H PUBLIC miniclear
C:060CH PUBLIC test
B:00B0H.2 PUBLIC E
C:0163H PUBLIC NUMBER_RPAGE0
C:0183H PUBLIC NUMBER_RPAGE1
C:0003H PUBLIC NAME_PAGE0
C:0033H PUBLIC NAME_PAGE1
C:052DH PUBLIC drawNAME
B:00B0H.4 PUBLIC CSA
B:00B0H.5 PUBLIC CSB
D:00C8H PUBLIC T2CON
C:0063H PUBLIC NUMBER_PAGE0
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 5
D:00D0H PUBLIC PSW
C:00E3H PUBLIC NUMBER_PAGE1
C:01A3H PUBLIC drawNUMBER
C:0771H SYMBOL L?0069
------- PROC L?0068
------- ENDPROC L?0068
C:0771H SYMBOL L?0069
C:0915H SYMBOL L?0055
------- PROC L?0054
------- ENDPROC L?0054
C:0915H SYMBOL L?0055
------- PROC WRITE
C:077AH LINE# 18
C:077AH LINE# 19
C:077AH LINE# 20
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 5
C:077CH LINE# 21
C:077EH LINE# 22
C:0780H LINE# 23
C:0787H LINE# 24
C:0789H LINE# 25
C:091EH LINE# 18
C:091EH LINE# 19
C:091EH LINE# 20
C:0920H LINE# 21
C:0922H LINE# 22
C:0924H LINE# 23
C:092BH LINE# 24
C:092DH LINE# 25
------- ENDPROC WRITE
------- PROC DRAWNUMBER
------- DO
X:0012H SYMBOL j
------- ENDDO
C:01A3H LINE# 27
C:01A3H LINE# 28
C:01A3H LINE# 30
C:01AAH LINE# 31
C:01AAH LINE# 34
C:01ACH LINE# 35
C:01AEH LINE# 36
C:01B0H LINE# 37
C:01B2H LINE# 38
C:01B5H LINE# 39
C:01B8H LINE# 40
C:01C1H LINE# 41
C:01C4H LINE# 43
C:01C6H LINE# 44
C:01C8H LINE# 45
C:01E4H LINE# 46
C:01E7H LINE# 48
C:01E9H LINE# 49
C:01EBH LINE# 50
C:01EEH LINE# 51
C:01F1H LINE# 52
C:01FAH LINE# 53
C:01FDH LINE# 55
C:01FFH LINE# 56
C:0201H LINE# 57
C:021DH LINE# 58
C:0220H LINE# 61
C:0240H LINE# 62
C:0247H LINE# 63
C:0247H LINE# 66
C:0249H LINE# 67
C:024BH LINE# 68
C:024DH LINE# 69
C:024FH LINE# 70
C:0252H LINE# 71
C:0255H LINE# 72
C:025EH LINE# 73
C:0261H LINE# 75
C:0263H LINE# 76
C:0265H LINE# 77
C:0281H LINE# 78
C:0284H LINE# 80
C:0286H LINE# 81
C:0288H LINE# 82
C:028BH LINE# 83
C:028EH LINE# 84
C:0297H LINE# 85
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 6
C:029AH LINE# 87
C:029CH LINE# 88
C:029EH LINE# 89
C:02BAH LINE# 90
C:02BDH LINE# 93
C:02DDH LINE# 94
------- ENDPROC DRAWNUMBER
------- PROC DRAWNAME
------- DO
X:0012H SYMBOL j
------- ENDDO
C:052DH LINE# 96
C:052DH LINE# 97
C:052DH LINE# 100
C:0534H LINE# 101
C:0534H LINE# 104
C:0536H LINE# 105
C:0538H LINE# 106
C:053AH LINE# 107
C:053CH LINE# 108
C:053FH LINE# 109
C:0542H LINE# 110
C:054BH LINE# 111
C:054EH LINE# 113
C:0550H LINE# 114
C:0552H LINE# 115
C:0566H LINE# 116
C:0569H LINE# 118
C:056BH LINE# 119
C:056DH LINE# 120
C:0570H LINE# 121
C:0573H LINE# 122
C:057CH LINE# 123
C:057FH LINE# 125
C:0581H LINE# 126
C:0583H LINE# 127
C:0597H LINE# 128
C:059AH LINE# 131
C:05BAH LINE# 132
------- ENDPROC DRAWNAME
------- PROC CLEAR
------- DO
X:0012H SYMBOL i
X:0014H SYMBOL j
------- ENDDO
C:02DEH LINE# 134
C:02DEH LINE# 135
C:02DEH LINE# 137
C:02E0H LINE# 138
C:02E2H LINE# 139
C:02F9H LINE# 140
C:02F9H LINE# 141
C:02F9H LINE# 142
C:02F9H LINE# 143
C:02F9H LINE# 144
C:02FCH LINE# 145
C:02FFH LINE# 146
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 7
C:0482H LINE# 29
C:0482H LINE# 30
C:0482H LINE# 32
C:0484H LINE# 33
C:0486H LINE# 34
C:049DH LINE# 35
C:049DH LINE# 36
C:049DH LINE# 37
C:049DH LINE# 38
C:049DH LINE# 39
C:04A0H LINE# 40
C:04A3H LINE# 41
C:04A6H LINE# 43
C:04ADH LINE# 44
C:04ADH LINE# 45
C:04AFH LINE# 46
C:04B1H LINE# 47
C:04B4H LINE# 48
C:04B7H LINE# 49
C:04D4H LINE# 50
C:04E4H LINE# 51
C:04E6H LINE# 52
C:04E8H LINE# 53
C:04FFH LINE# 54
C:04FFH LINE# 55
C:04FFH LINE# 56
C:04FFH LINE# 57
C:04FFH LINE# 58
C:0502H LINE# 59
C:0505H LINE# 60
C:0508H LINE# 62
C:050FH LINE# 63
C:050FH LINE# 64
C:0511H LINE# 65
C:0513H LINE# 66
C:0516H LINE# 67
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 6
C:0302H LINE# 148
C:0309H LINE# 149
C:0309H LINE# 150
C:030BH LINE# 151
C:030DH LINE# 152
C:0310H LINE# 153
C:0313H LINE# 154
C:0330H LINE# 155
C:0340H LINE# 156
C:0342H LINE# 157
C:0344H LINE# 158
C:035BH LINE# 159
C:035BH LINE# 160
C:035BH LINE# 161
C:035BH LINE# 162
C:035BH LINE# 163
C:035EH LINE# 164
C:0361H LINE# 165
C:0364H LINE# 167
C:036BH LINE# 168
C:036BH LINE# 169
C:036DH LINE# 170
C:036FH LINE# 171
C:0372H LINE# 172
C:0375H LINE# 173
C:0392H LINE# 174
C:03A2H LINE# 175
C:0519H LINE# 68
C:0536H LINE# 69
C:0546H LINE# 70
------- ENDPROC CLEAR
------- PROC MINICLEAR
------- DO
X:0016H SYMBOL i
X:0018H SYMBOL j
------- ENDDO
C:03A3H LINE# 178
C:03A3H LINE# 179
C:03A3H LINE# 181
C:03A5H LINE# 182
C:03A7H LINE# 183
C:03BEH LINE# 184
C:03BEH LINE# 185
C:03BEH LINE# 186
C:03BEH LINE# 187
C:03BEH LINE# 188
C:03C1H LINE# 189
C:03C4H LINE# 190
C:03C7H LINE# 192
C:03CEH LINE# 193
C:03CEH LINE# 194
C:03D0H LINE# 195
C:03D2H LINE# 196
C:03D5H LINE# 197
C:03D8H LINE# 198
C:03F5H LINE# 199
C:0405H LINE# 200
C:0407H LINE# 201
C:0409H LINE# 202
C:0420H LINE# 203
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 8
C:0420H LINE# 204
C:0420H LINE# 205
C:0420H LINE# 206
C:0420H LINE# 207
C:0423H LINE# 208
C:0426H LINE# 209
C:0429H LINE# 211
C:0430H LINE# 212
C:0430H LINE# 213
C:0432H LINE# 214
C:0434H LINE# 215
C:0437H LINE# 216
C:043AH LINE# 217
C:0457H LINE# 218
C:0467H LINE# 219
C:0547H LINE# 73
C:0547H LINE# 74
C:0547H LINE# 76
C:0549H LINE# 77
C:054BH LINE# 78
C:0562H LINE# 79
C:0562H LINE# 80
C:0562H LINE# 81
C:0562H LINE# 82
C:0562H LINE# 83
C:0565H LINE# 84
C:0568H LINE# 85
C:056BH LINE# 87
C:0572H LINE# 88
C:0572H LINE# 89
C:0574H LINE# 90
C:0576H LINE# 91
C:0579H LINE# 92
C:057CH LINE# 93
C:0599H LINE# 94
C:05A9H LINE# 95
C:05ABH LINE# 96
C:05ADH LINE# 97
C:05C4H LINE# 98
C:05C4H LINE# 99
C:05C4H LINE# 100
C:05C4H LINE# 101
C:05C4H LINE# 102
C:05C7H LINE# 103
C:05CAH LINE# 104
C:05CDH LINE# 106
C:05D4H LINE# 107
C:05D4H LINE# 108
C:05D6H LINE# 109
C:05D8H LINE# 110
C:05DBH LINE# 111
C:05DEH LINE# 112
C:05FBH LINE# 113
C:060BH LINE# 114
------- ENDPROC MINICLEAR
------- PROC DISPLAYINIT
C:0755H LINE# 220
C:0755H LINE# 221
C:0755H LINE# 222
C:0757H LINE# 223
C:0759H LINE# 224
C:075BH LINE# 225
C:075DH LINE# 226
C:075FH LINE# 227
C:0762H LINE# 228
C:0765H LINE# 230
C:0767H LINE# 231
C:0769H LINE# 232
C:076BH LINE# 233
C:076EH LINE# 234
C:08F9H LINE# 115
C:08F9H LINE# 116
C:08F9H LINE# 117
C:08FBH LINE# 118
C:08FDH LINE# 119
C:08FFH LINE# 120
C:0901H LINE# 121
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 7
C:0903H LINE# 122
C:0906H LINE# 123
C:0909H LINE# 125
C:090BH LINE# 126
C:090DH LINE# 127
C:090FH LINE# 128
C:0912H LINE# 129
------- ENDPROC DISPLAYINIT
------- PROC TEST
------- DO
X:001AH SYMBOL i
X:001CH SYMBOL j
------- ENDDO
C:0468H LINE# 237
C:0468H LINE# 238
C:0468H LINE# 240
C:046AH LINE# 241
C:046CH LINE# 242
C:0483H LINE# 243
C:0483H LINE# 244
C:0483H LINE# 245
C:0483H LINE# 246
C:0483H LINE# 247
C:0486H LINE# 248
C:0489H LINE# 249
C:048CH LINE# 251
C:0493H LINE# 252
C:0493H LINE# 253
C:0495H LINE# 254
C:0497H LINE# 255
C:049AH LINE# 256
C:049DH LINE# 257
C:04BAH LINE# 258
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 9
C:04CAH LINE# 259
C:04CCH LINE# 260
C:04CEH LINE# 261
C:04E5H LINE# 262
C:04E5H LINE# 263
C:04E5H LINE# 264
C:04E5H LINE# 265
C:04E5H LINE# 266
C:04E8H LINE# 267
C:04EBH LINE# 268
C:04EEH LINE# 270
C:04F5H LINE# 271
C:04F5H LINE# 272
C:04F7H LINE# 273
C:04F9H LINE# 274
C:04FCH LINE# 275
C:04FFH LINE# 276
C:051CH LINE# 277
C:052CH LINE# 278
C:060CH LINE# 132
C:060CH LINE# 133
C:060CH LINE# 135
C:060EH LINE# 136
C:0610H LINE# 137
C:0627H LINE# 138
C:0627H LINE# 139
C:0627H LINE# 140
C:0627H LINE# 141
C:0627H LINE# 142
C:062AH LINE# 143
C:062DH LINE# 144
C:0630H LINE# 146
C:0637H LINE# 147
C:0637H LINE# 148
C:0639H LINE# 149
C:063BH LINE# 150
C:063EH LINE# 151
C:0641H LINE# 152
C:065EH LINE# 153
C:066EH LINE# 154
C:0670H LINE# 155
C:0672H LINE# 156
C:0689H LINE# 157
C:0689H LINE# 158
C:0689H LINE# 159
C:0689H LINE# 160
C:0689H LINE# 161
C:068CH LINE# 162
C:068FH LINE# 163
C:0692H LINE# 165
C:0699H LINE# 166
C:0699H LINE# 167
C:069BH LINE# 168
C:069DH LINE# 169
C:06A0H LINE# 170
C:06A3H LINE# 171
C:06C0H LINE# 172
C:06D0H LINE# 173
------- ENDPROC TEST
------- ENDMOD DISPLAY
------- MODULE DRAW
C:0000H SYMBOL _ICE_DUMMY_
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 8
D:0090H PUBLIC P1
D:00B0H PUBLIC P3
D:00A8H PUBLIC IE
D:00B8H PUBLIC IP
B:00B0H.0 PUBLIC RS
B:00B0H.1 PUBLIC RW
D:0098H PUBLIC SCON
D:0088H PUBLIC TCON
C:0303H PUBLIC NUMBER_RPAGE0
C:0323H PUBLIC NUMBER_RPAGE1
C:01A3H PUBLIC NAME_PAGE0
C:01D3H PUBLIC NAME_PAGE1
C:06D1H PUBLIC drawNAME
B:00B0H.4 PUBLIC CSA
B:00B0H.5 PUBLIC CSB
D:00C8H PUBLIC T2CON
D:00D0H PUBLIC PSW
C:0203H PUBLIC NUMBER_PAGE0
C:0283H PUBLIC NUMBER_PAGE1
C:0343H PUBLIC drawNUMBER
------- PROC DRAWNUMBER
------- DO
X:0012H SYMBOL j
------- ENDDO
C:0343H LINE# 12
C:0343H LINE# 13
C:0343H LINE# 15
C:034AH LINE# 16
C:034AH LINE# 19
C:034CH LINE# 20
C:034EH LINE# 21
C:0350H LINE# 22
C:0352H LINE# 23
C:0355H LINE# 24
C:0358H LINE# 25
C:0361H LINE# 26
C:0364H LINE# 28
C:0366H LINE# 29
C:0368H LINE# 30
C:0385H LINE# 31
C:0388H LINE# 33
C:038AH LINE# 34
C:038CH LINE# 35
C:038FH LINE# 36
C:0392H LINE# 37
C:039BH LINE# 38
C:039EH LINE# 40
C:03A0H LINE# 41
C:03A2H LINE# 42
C:03BFH LINE# 43
C:03C2H LINE# 46
C:03E2H LINE# 47
C:03E9H LINE# 48
C:03E9H LINE# 51
C:03EBH LINE# 52
C:03EDH LINE# 53
C:03EFH LINE# 54
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 9
C:03F1H LINE# 55
C:03F4H LINE# 56
C:03F7H LINE# 57
C:0400H LINE# 58
C:0403H LINE# 60
C:0405H LINE# 61
C:0407H LINE# 62
C:0424H LINE# 63
C:0427H LINE# 65
C:0429H LINE# 66
C:042BH LINE# 67
C:042EH LINE# 68
C:0431H LINE# 69
C:043AH LINE# 70
C:043DH LINE# 72
C:043FH LINE# 73
C:0441H LINE# 74
C:045EH LINE# 75
C:0461H LINE# 78
C:0481H LINE# 79
------- ENDPROC DRAWNUMBER
------- PROC DRAWNAME
------- DO
X:0012H SYMBOL j
------- ENDDO
C:06D1H LINE# 81
C:06D1H LINE# 82
C:06D1H LINE# 85
C:06D8H LINE# 86
C:06D8H LINE# 89
C:06DAH LINE# 90
C:06DCH LINE# 91
C:06DEH LINE# 92
C:06E0H LINE# 93
C:06E3H LINE# 94
C:06E6H LINE# 95
C:06EFH LINE# 96
C:06F2H LINE# 98
C:06F4H LINE# 99
C:06F6H LINE# 100
C:070AH LINE# 101
C:070DH LINE# 103
C:070FH LINE# 104
C:0711H LINE# 105
C:0714H LINE# 106
C:0717H LINE# 107
C:0720H LINE# 108
C:0723H LINE# 110
C:0725H LINE# 111
C:0727H LINE# 112
C:073BH LINE# 113
C:073EH LINE# 116
C:075EH LINE# 117
------- ENDPROC DRAWNAME
------- ENDMOD DRAW
------- MODULE ?C?PLDPTR
C:0647H PUBLIC ?C?PLDPTR
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 10
C:07EBH PUBLIC ?C?PLDPTR
------- ENDMOD ?C?PLDPTR
------- MODULE ?C?PLDOPTR
C:0667H PUBLIC ?C?PLDOPTR
C:080BH PUBLIC ?C?PLDOPTR
------- ENDMOD ?C?PLDOPTR
------- MODULE ?C?ICALL
C:0697H PUBLIC ?C?ICALL
C:069BH PUBLIC ?C?ICALL2
C:083BH PUBLIC ?C?ICALL
C:083FH PUBLIC ?C?ICALL2
------- ENDMOD ?C?ICALL
------- MODULE ?C?PLDIDATA
C:069DH PUBLIC ?C?PLDIDATA
C:0841H PUBLIC ?C?PLDIDATA
------- ENDMOD ?C?PLDIDATA
------- MODULE ?C?PLDXDATA
C:06A6H PUBLIC ?C?PLDXDATA
C:084AH PUBLIC ?C?PLDXDATA
------- ENDMOD ?C?PLDXDATA
------- MODULE ?C?PLDPDATA
C:06AFH PUBLIC ?C?PLDPDATA
C:0853H PUBLIC ?C?PLDPDATA
------- ENDMOD ?C?PLDPDATA
------- MODULE ?C?PLDCODE
C:06B8H PUBLIC ?C?PLDCODE
C:085CH PUBLIC ?C?PLDCODE
------- ENDMOD ?C?PLDCODE
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: NUMBER_RPAGE1
MODULE: .\Objects\draw.obj (DRAW)
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: NUMBER_RPAGE0
MODULE: .\Objects\draw.obj (DRAW)
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: NUMBER_PAGE1
MODULE: .\Objects\draw.obj (DRAW)
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: NUMBER_PAGE0
MODULE: .\Objects\draw.obj (DRAW)
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: NAME_PAGE1
MODULE: .\Objects\draw.obj (DRAW)
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: NAME_PAGE0
MODULE: .\Objects\draw.obj (DRAW)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?DELAY100US?DELAY
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MINICLEAR?DISPLAY
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:13:03 PAGE 11
BL51 BANKED LINKER/LOCATER V6.22.2.0 05/19/2022 21:06:37 PAGE 10
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?TEST?DISPLAY
Program Size: data=9.0 xdata=30 code=1966
LINK/LOCATE RUN COMPLETE. 3 WARNING(S), 0 ERROR(S)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?CO?DISPLAY
Program Size: data=9.0 xdata=30 code=2386
LINK/LOCATE RUN COMPLETE. 4 WARNING(S), 6 ERROR(S)

View file

@ -257,6 +257,18 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>1</GroupNumber>
<FileNumber>5</FileNumber>
<FileType>1</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\draw.c</PathWithFileName>
<FilenameWithoutPath>draw.c</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
<Group>
@ -267,7 +279,7 @@
<RteFlg>0</RteFlg>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>5</FileNumber>
<FileNumber>6</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -279,7 +291,7 @@
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>6</FileNumber>
<FileNumber>7</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -291,7 +303,7 @@
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>7</FileNumber>
<FileNumber>8</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -303,7 +315,7 @@
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>8</FileNumber>
<FileNumber>9</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
@ -313,6 +325,18 @@
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
<File>
<GroupNumber>2</GroupNumber>
<FileNumber>10</FileNumber>
<FileType>5</FileType>
<tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg>
<bDave2>0</bDave2>
<PathWithFileName>.\draw.h</PathWithFileName>
<FilenameWithoutPath>draw.h</FilenameWithoutPath>
<RteFlg>0</RteFlg>
<bShared>0</bShared>
</File>
</Group>
</ProjectOpt>

View file

@ -396,6 +396,11 @@
<FileType>1</FileType>
<FilePath>.\display.c</FilePath>
</File>
<File>
<FileName>draw.c</FileName>
<FileType>1</FileType>
<FilePath>.\draw.c</FilePath>
</File>
</Files>
</Group>
<Group>
@ -421,6 +426,11 @@
<FileType>5</FileType>
<FilePath>.\menu.h</FilePath>
</File>
<File>
<FileName>draw.h</FileName>
<FileType>5</FileType>
<FilePath>.\draw.h</FilePath>
</File>
</Files>
</Group>
</Groups>

View file

@ -24,113 +24,8 @@ void write()
E = 0;
}
void drawNUMBER()
{
unsigned int j;
for(j =0 ; j < 64; j++)
{
CSA = 1;
CSB = 0;
RS = 0;
RW = 0;
P1 = 0xb8 + 2;
write();
P1 = 0X40 + j;
write(); //Ò³2ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_PAGE0[j - 1];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 3;
write();
P1 = 0X40 + j;
write(); //Ò³3ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_PAGE1[j - 1];
write();
}
for(j =0 ; j < 16; j++)
{
CSA = 0;
CSB = 1;
RS = 0;
RW = 0;
P1 = 0xb8 + 2;
write();
P1 = 0X40 + j;
write(); //Ò³2ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_RPAGE0[j - 1];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 3;
write();
P1 = 0X40 + j;
write(); //Ò³3ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_RPAGE1[j - 1];
write();
}
}
void drawNAME()
{
unsigned int j;
for(j = 0; j < 48; j++)
{
CSA = 1;
CSB = 0;
RS = 0;
RW = 0;
P1 = 0xb8 + 0;
write();
P1 = 0X40 + j;
write(); //Ò³0ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NAME_PAGE0[j - 1];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40 + j;
write(); //Ò³1ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NAME_PAGE1[j - 1];
write();
}
}
void clear()
{
unsigned int i, j;

View file

@ -12,7 +12,5 @@ void test();
void displayInit();
void clear();
void miniclear();
void drawNAME();
void drawNUMBER();
void write();
#endif

117
MCU/MCU_REAL _FINAL/draw.c Normal file
View file

@ -0,0 +1,117 @@
#include "img.h"
#include "display.h"
#include "draw.h"
#include <reg52.h>
sbit RS = P3 ^ 0;
sbit RW = P3 ^ 1;
sbit E = P3 ^ 2;
sbit CSA = P3 ^ 4;
sbit CSB = P3 ^ 5;
void drawNUMBER()
{
unsigned int j;
for(j =0 ; j < 64; j++)
{
CSA = 1;
CSB = 0;
RS = 0;
RW = 0;
P1 = 0xb8 + 2;
write();
P1 = 0X40 + j;
write(); //Ò³2ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_PAGE0[j - 1];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 3;
write();
P1 = 0X40 + j;
write(); //Ò³3ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_PAGE1[j - 1];
write();
}
for(j =0 ; j < 16; j++)
{
CSA = 0;
CSB = 1;
RS = 0;
RW = 0;
P1 = 0xb8 + 2;
write();
P1 = 0X40 + j;
write(); //Ò³2ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_RPAGE0[j - 1];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 3;
write();
P1 = 0X40 + j;
write(); //Ò³3ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NUMBER_RPAGE1[j - 1];
write();
}
}
void drawNAME()
{
unsigned int j;
for(j = 0; j < 48; j++)
{
CSA = 1;
CSB = 0;
RS = 0;
RW = 0;
P1 = 0xb8 + 0;
write();
P1 = 0X40 + j;
write(); //Ò³0ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NAME_PAGE0[j - 1];
write();
RS = 0;
RW = 0;
P1 = 0xb8 + 1;
write();
P1 = 0X40 + j;
write(); //Ò³1ÁÐjÆÁA
RS = 1;
RW = 0;
P1 = NAME_PAGE1[j - 1];
write();
}
}

View file

@ -0,0 +1,2 @@
void drawNAME();
void drawNUMBER();

View file

@ -2,6 +2,7 @@
#include "main.h"
#include "display.h"
#include "menu.h"
#include "draw.h"
extern Menu *NOW;

View file

@ -1,12 +1,20 @@
#include "menu.h"
#include "display.h"
#include "delay.h"
#include "draw.h"
Menu M_MAINMANU;
Menu* NOW;
Menu* NOW; //现在菜单指针
//初始菜单
void m_startup(struct _menu* this)
{
displayInit();
@ -18,7 +26,6 @@ void m_startup(struct _menu* this)
clear();
NOW=this->n;
}
Menu M_STARTUP={&M_MAINMANU,m_startup};
void menuInit()

BIN
Quartus/UART_screen/k.HMI Normal file

Binary file not shown.

BIN
Quartus/UART_screen/kk.HMI Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.