This commit is contained in:
iridiumR 2022-03-30 21:31:30 +08:00
parent 6e42dca90a
commit bdd3b50d57
2 changed files with 101 additions and 99 deletions

View file

@ -1,4 +1,4 @@
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 1 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 1
BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY: BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY:
@ -48,18 +48,18 @@ LINK MAP OF MODULE: .\Objects\MCU_1 (MAIN)
CODE 01D4H 009FH UNIT ?PR?IFLIGHT?MAIN CODE 01D4H 009FH UNIT ?PR?IFLIGHT?MAIN
CODE 0273H 009DH UNIT ?PR?HELLO_FULL_DISPLAY?LED_NUM CODE 0273H 009DH UNIT ?PR?HELLO_FULL_DISPLAY?LED_NUM
CODE 0310H 008CH UNIT ?C_C51STARTUP CODE 0310H 008CH UNIT ?C_C51STARTUP
CODE 039CH 0060H UNIT ?PR?PULSE?MAIN CODE 039CH 005DH UNIT ?PR?PULSE?MAIN
CODE 03FCH 0056H UNIT ?PR?NUM_DISPLAY?LED_NUM CODE 03F9H 0056H UNIT ?PR?NUM_DISPLAY?LED_NUM
CODE 0452H 0051H UNIT ?PR?_GET_VAR?LED_NUM CODE 044FH 0051H UNIT ?PR?_GET_VAR?LED_NUM
CODE 04A3H 0044H UNIT ?C?LDIV CODE 04A0H 0044H UNIT ?C?LDIV
CODE 04E7H 002BH UNIT ?C_INITSEG CODE 04E4H 002BH UNIT ?C_INITSEG
CODE 0512H 0029H UNIT ?PR?SETCONFIG?MAIN CODE 050FH 0029H UNIT ?PR?SETCONFIG?MAIN
CODE 053BH 0012H UNIT ?PR?NUM_PUSH?LED_NUM CODE 0538H 0012H UNIT ?PR?NUM_PUSH?LED_NUM
CODE 054DH 000FH UNIT ?PR?HELLO_PUSH?LED_NUM CODE 054AH 000FH UNIT ?PR?HELLO_PUSH?LED_NUM
CODE 055CH 000EH UNIT ?PR?_DELAY?DELAY CODE 0559H 000EH UNIT ?PR?_DELAY?DELAY
CODE 056AH 0007H UNIT ?PR?LEDFULL?LED_NUM CODE 0567H 0007H UNIT ?PR?LEDFULL?LED_NUM
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 2 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 2
@ -97,7 +97,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
X:000CH PUBLIC TH X:000CH PUBLIC TH
X:000EH PUBLIC TL X:000EH PUBLIC TL
C:0003H PUBLIC main C:0003H PUBLIC main
C:0512H PUBLIC setConfig C:050FH PUBLIC setConfig
C:039CH PUBLIC pulse C:039CH PUBLIC pulse
X:0010H PUBLIC count X:0010H PUBLIC count
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
@ -113,29 +113,29 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
X:0015H PUBLIC enable X:0015H PUBLIC enable
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
------- PROC SETCONFIG ------- PROC SETCONFIG
C:0512H LINE# 13 C:050FH LINE# 13
C:0512H LINE# 14 C:050FH LINE# 14
C:0512H LINE# 15 C:050FH LINE# 15
C:051BH LINE# 16 C:0518H LINE# 16
C:0522H LINE# 17 C:051FH LINE# 17
C:0529H LINE# 18 C:0526H LINE# 18
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 3 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 3
C:052EH LINE# 20 C:052BH LINE# 20
C:0531H LINE# 22 C:052EH LINE# 22
C:0533H LINE# 23 C:0530H LINE# 23
C:0535H LINE# 24 C:0532H LINE# 24
C:0537H LINE# 26 C:0534H LINE# 26
C:053AH LINE# 27 C:0537H LINE# 27
------- ENDPROC SETCONFIG ------- ENDPROC SETCONFIG
------- PROC PULSE ------- PROC PULSE
C:039CH LINE# 29 C:039CH LINE# 29
C:03B3H LINE# 32 C:03B3H LINE# 32
C:03BCH LINE# 33 C:03BAH LINE# 33
C:03C2H LINE# 34 C:03BFH LINE# 35
C:03C8H LINE# 35 C:03C5H LINE# 36
C:03E7H LINE# 36 C:03E4H LINE# 37
------- ENDPROC PULSE ------- ENDPROC PULSE
------- PROC IFLIGHT ------- PROC IFLIGHT
------- DO ------- DO
@ -144,47 +144,47 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
X:0018H SYMBOL i X:0018H SYMBOL i
------- ENDDO ------- ENDDO
------- ENDDO ------- ENDDO
C:01D4H LINE# 38
C:01D4H LINE# 39 C:01D4H LINE# 39
C:01D4H LINE# 40 C:01D4H LINE# 40
C:01DDH LINE# 41 C:01D4H LINE# 41
C:01DDH LINE# 43 C:01DDH LINE# 42
C:01F7H LINE# 44 C:01DDH LINE# 44
C:01F7H LINE# 46 C:01F7H LINE# 45
C:022CH LINE# 47 C:01F7H LINE# 47
C:022CH LINE# 49 C:022CH LINE# 48
C:0233H LINE# 50 C:022CH LINE# 50
C:0254H LINE# 51 C:0233H LINE# 51
C:025AH LINE# 52 C:0254H LINE# 52
C:025CH LINE# 53 C:025AH LINE# 53
C:025CH LINE# 54 C:025CH LINE# 54
C:026DH LINE# 56 C:025CH LINE# 55
C:0272H LINE# 57 C:026DH LINE# 57
C:0272H LINE# 58 C:0272H LINE# 58
C:0272H LINE# 59
------- ENDPROC IFLIGHT ------- ENDPROC IFLIGHT
------- PROC MAIN ------- PROC MAIN
C:0003H LINE# 61
C:0003H LINE# 62 C:0003H LINE# 62
C:0003H LINE# 64 C:0003H LINE# 63
C:0006H LINE# 65 C:0003H LINE# 65
C:0006H LINE# 66 C:0006H LINE# 66
C:0006H LINE# 67 C:0006H LINE# 67
C:0009H LINE# 68 C:0006H LINE# 68
C:0009H LINE# 69
------- ENDPROC MAIN ------- ENDPROC MAIN
------- ENDMOD MAIN ------- ENDMOD MAIN
------- MODULE DELAY ------- MODULE DELAY
C:0000H SYMBOL _ICE_DUMMY_ C:0000H SYMBOL _ICE_DUMMY_
C:055CH PUBLIC _delay C:0559H PUBLIC _delay
------- PROC _DELAY ------- PROC _DELAY
D:0006H SYMBOL i D:0006H SYMBOL i
C:055CH LINE# 3 C:0559H LINE# 3
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 4 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 4
C:055CH LINE# 5 C:0559H LINE# 5
C:055CH LINE# 6 C:0559H LINE# 6
C:0569H LINE# 7 C:0566H LINE# 7
------- ENDPROC _DELAY ------- ENDPROC _DELAY
------- ENDMOD DELAY ------- ENDMOD DELAY
@ -198,26 +198,26 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
D:00A8H PUBLIC IE D:00A8H PUBLIC IE
D:00B8H PUBLIC IP D:00B8H PUBLIC IP
X:0000H SYMBOL count X:0000H SYMBOL count
C:03FCH PUBLIC num_display C:03F9H PUBLIC num_display
D:0098H PUBLIC SCON D:0098H PUBLIC SCON
D:0088H PUBLIC TCON D:0088H PUBLIC TCON
C:054DH PUBLIC hello_push C:054AH PUBLIC hello_push
X:0002H PUBLIC hello_var X:0002H PUBLIC hello_var
X:0008H SYMBOL e X:0008H SYMBOL e
D:00C8H PUBLIC T2CON D:00C8H PUBLIC T2CON
X:0009H SYMBOL i X:0009H SYMBOL i
C:056AH PUBLIC ledfull C:0567H PUBLIC ledfull
C:0452H SYMBOL _get_var C:044FH SYMBOL _get_var
C:010BH PUBLIC hello_display C:010BH PUBLIC hello_display
C:053BH PUBLIC num_push C:0538H PUBLIC num_push
D:00D0H PUBLIC PSW D:00D0H PUBLIC PSW
X:000BH SYMBOL var2 X:000BH SYMBOL var2
------- PROC _GET_VAR ------- PROC _GET_VAR
X:001DH SYMBOL k X:001DH SYMBOL k
C:0452H LINE# 9 C:044FH LINE# 9
C:045AH LINE# 10 C:0457H LINE# 10
C:045AH LINE# 11 C:0457H LINE# 11
C:04A2H LINE# 12 C:049FH LINE# 12
------- ENDPROC _GET_VAR ------- ENDPROC _GET_VAR
------- PROC HELLO_DISPLAY ------- PROC HELLO_DISPLAY
C:010BH LINE# 19 C:010BH LINE# 19
@ -239,7 +239,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:015FH LINE# 38 C:015FH LINE# 38
C:0162H LINE# 39 C:0162H LINE# 39
C:016BH LINE# 40 C:016BH LINE# 40
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 5 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 5
C:0172H LINE# 41 C:0172H LINE# 41
@ -262,44 +262,44 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
C:01D3H LINE# 66 C:01D3H LINE# 66
------- ENDPROC HELLO_DISPLAY ------- ENDPROC HELLO_DISPLAY
------- PROC HELLO_PUSH ------- PROC HELLO_PUSH
C:054DH LINE# 68 C:054AH LINE# 68
C:054DH LINE# 69 C:054AH LINE# 69
C:054DH LINE# 71 C:054AH LINE# 71
C:055BH LINE# 77 C:0558H LINE# 77
------- ENDPROC HELLO_PUSH ------- ENDPROC HELLO_PUSH
------- PROC NUM_DISPLAY ------- PROC NUM_DISPLAY
C:03FCH LINE# 79 C:03F9H LINE# 79
C:03FCH LINE# 80 C:03F9H LINE# 80
C:03FCH LINE# 81 C:03F9H LINE# 81
C:040BH LINE# 82 C:0408H LINE# 82
C:040BH LINE# 84 C:0408H LINE# 84
C:040EH LINE# 85 C:040BH LINE# 85
C:0414H LINE# 86 C:0411H LINE# 86
C:041BH LINE# 87 C:0418H LINE# 87
C:041EH LINE# 92 C:041BH LINE# 92
C:041EH LINE# 93 C:041BH LINE# 93
C:042DH LINE# 94 C:042AH LINE# 94
C:042DH LINE# 95 C:042AH LINE# 95
C:0430H LINE# 96 C:042DH LINE# 96
C:0430H LINE# 97 C:042DH LINE# 97
C:043EH LINE# 98 C:043BH LINE# 98
C:044DH LINE# 99 C:044AH LINE# 99
C:0451H LINE# 101 C:044EH LINE# 101
------- ENDPROC NUM_DISPLAY ------- ENDPROC NUM_DISPLAY
------- PROC NUM_PUSH ------- PROC NUM_PUSH
C:053BH LINE# 104 C:0538H LINE# 104
C:053BH LINE# 105 C:0538H LINE# 105
C:053BH LINE# 106 C:0538H LINE# 106
C:054CH LINE# 107 C:0549H LINE# 107
------- ENDPROC NUM_PUSH ------- ENDPROC NUM_PUSH
------- PROC LEDFULL ------- PROC LEDFULL
C:056AH LINE# 109 C:0567H LINE# 109
C:056AH LINE# 110 C:0567H LINE# 110
C:056AH LINE# 111 C:0567H LINE# 111
C:056DH LINE# 112 C:056AH LINE# 112
C:0570H LINE# 113 C:056DH LINE# 113
------- ENDPROC LEDFULL ------- ENDPROC LEDFULL
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 6 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 6
------- PROC HELLO_FULL_DISPLAY ------- PROC HELLO_FULL_DISPLAY
@ -341,7 +341,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
------- ENDMOD ?C?ULDIV ------- ENDMOD ?C?ULDIV
------- MODULE ?C?SLDIV ------- MODULE ?C?SLDIV
C:04A3H PUBLIC ?C?SLDIV C:04A0H PUBLIC ?C?SLDIV
------- ENDMOD ?C?SLDIV ------- ENDMOD ?C?SLDIV
------- MODULE ?C?ULCMP ------- MODULE ?C?ULCMP
@ -359,7 +359,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
SEGMENT: ?PR?HELLO_PUSH?LED_NUM SEGMENT: ?PR?HELLO_PUSH?LED_NUM
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:25:24 PAGE 7 BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 7
SEGMENT: ?PR?NUM_DISPLAY?LED_NUM SEGMENT: ?PR?NUM_DISPLAY?LED_NUM
@ -373,5 +373,5 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?HELLO_FULL_DISPLAY?LED_NUM SEGMENT: ?PR?HELLO_FULL_DISPLAY?LED_NUM
Program Size: data=9.0 xdata=31 code=1393 Program Size: data=9.0 xdata=31 code=1390
LINK/LOCATE RUN COMPLETE. 6 WARNING(S), 0 ERROR(S) LINK/LOCATE RUN COMPLETE. 6 WARNING(S), 0 ERROR(S)

View file

@ -29,8 +29,10 @@ void setConfig()
void pulse() interrupt 1 void pulse() interrupt 1
{ {
TL0 += TL; TH0 = TH;
TL0 += 19; TL0 = TL0+ TL;
TL0 = TLO +19;
enable = 1; enable = 1;
count++; count++;
} }