diff --git a/MCU/MCU_3 _TIM_Interrupt/Listings/MCU_1.m51 b/MCU/MCU_3 _TIM_Interrupt/Listings/MCU_1.m51 index 8749b25..679c731 100644 --- a/MCU/MCU_3 _TIM_Interrupt/Listings/MCU_1.m51 +++ b/MCU/MCU_3 _TIM_Interrupt/Listings/MCU_1.m51 @@ -1,4 +1,4 @@ -BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 1 +BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 1 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 0273H 009DH UNIT ?PR?HELLO_FULL_DISPLAY?LED_NUM CODE 0310H 008CH UNIT ?C_C51STARTUP - CODE 039CH 005DH UNIT ?PR?PULSE?MAIN - CODE 03F9H 0056H UNIT ?PR?NUM_DISPLAY?LED_NUM - CODE 044FH 0051H UNIT ?PR?_GET_VAR?LED_NUM - CODE 04A0H 0044H UNIT ?C?LDIV - CODE 04E4H 002BH UNIT ?C_INITSEG - CODE 050FH 0029H UNIT ?PR?SETCONFIG?MAIN - CODE 0538H 0012H UNIT ?PR?NUM_PUSH?LED_NUM - CODE 054AH 000FH UNIT ?PR?HELLO_PUSH?LED_NUM - CODE 0559H 000EH UNIT ?PR?_DELAY?DELAY - CODE 0567H 0007H UNIT ?PR?LEDFULL?LED_NUM + CODE 039CH 0065H UNIT ?PR?PULSE?MAIN + CODE 0401H 0056H UNIT ?PR?NUM_DISPLAY?LED_NUM + CODE 0457H 0051H UNIT ?PR?_GET_VAR?LED_NUM + CODE 04A8H 0044H UNIT ?C?LDIV + CODE 04ECH 002BH UNIT ?C_INITSEG + CODE 0517H 0029H UNIT ?PR?SETCONFIG?MAIN + CODE 0540H 0012H UNIT ?PR?NUM_PUSH?LED_NUM + CODE 0552H 000FH UNIT ?PR?HELLO_PUSH?LED_NUM + CODE 0561H 000EH UNIT ?PR?_DELAY?DELAY + CODE 056FH 0007H UNIT ?PR?LEDFULL?LED_NUM - BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 2 + BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 2 @@ -97,7 +97,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) X:000CH PUBLIC TH X:000EH PUBLIC TL C:0003H PUBLIC main - C:050FH PUBLIC setConfig + C:0517H PUBLIC setConfig C:039CH PUBLIC pulse X:0010H PUBLIC count D:0098H PUBLIC SCON @@ -113,29 +113,30 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) X:0015H PUBLIC enable D:00D0H PUBLIC PSW ------- PROC SETCONFIG - C:050FH LINE# 13 - C:050FH LINE# 14 - C:050FH LINE# 15 - C:0518H LINE# 16 - C:051FH LINE# 17 - C:0526H LINE# 18 - BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 3 + C:0517H LINE# 13 + C:0517H LINE# 14 + C:0517H LINE# 15 + C:0520H LINE# 16 + C:0527H LINE# 17 + C:052EH LINE# 18 + BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 3 - C:052BH LINE# 20 - C:052EH LINE# 22 - C:0530H LINE# 23 - C:0532H LINE# 24 - C:0534H LINE# 26 - C:0537H LINE# 27 + C:0533H LINE# 20 + C:0536H LINE# 22 + C:0538H LINE# 23 + C:053AH LINE# 24 + C:053CH LINE# 26 + C:053FH LINE# 27 ------- ENDPROC SETCONFIG ------- PROC PULSE C:039CH LINE# 29 C:03B3H LINE# 32 C:03BAH LINE# 33 - C:03BFH LINE# 35 - C:03C5H LINE# 36 - C:03E4H LINE# 37 + C:03C1H LINE# 34 + C:03C7H LINE# 36 + C:03CDH LINE# 37 + C:03ECH LINE# 38 ------- ENDPROC PULSE ------- PROC IFLIGHT ------- DO @@ -144,47 +145,47 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) X:0018H SYMBOL i ------- ENDDO ------- ENDDO - C:01D4H LINE# 39 C:01D4H LINE# 40 C:01D4H LINE# 41 - C:01DDH LINE# 42 - C:01DDH LINE# 44 - C:01F7H LINE# 45 - C:01F7H LINE# 47 - C:022CH LINE# 48 - C:022CH LINE# 50 - C:0233H LINE# 51 - C:0254H LINE# 52 - C:025AH LINE# 53 - C:025CH LINE# 54 + C:01D4H LINE# 42 + C:01DDH LINE# 43 + C:01DDH LINE# 45 + C:01F7H LINE# 46 + C:01F7H LINE# 48 + C:022CH LINE# 49 + C:022CH LINE# 51 + C:0233H LINE# 52 + C:0254H LINE# 53 + C:025AH LINE# 54 C:025CH LINE# 55 - C:026DH LINE# 57 - C:0272H LINE# 58 + C:025CH LINE# 56 + C:026DH LINE# 58 C:0272H LINE# 59 + C:0272H LINE# 60 ------- ENDPROC IFLIGHT ------- PROC MAIN - C:0003H LINE# 62 C:0003H LINE# 63 - C:0003H LINE# 65 - C:0006H LINE# 66 + C:0003H LINE# 64 + C:0003H LINE# 66 C:0006H LINE# 67 C:0006H LINE# 68 - C:0009H LINE# 69 + C:0006H LINE# 69 + C:0009H LINE# 70 ------- ENDPROC MAIN ------- ENDMOD MAIN ------- MODULE DELAY C:0000H SYMBOL _ICE_DUMMY_ - C:0559H PUBLIC _delay + C:0561H PUBLIC _delay ------- PROC _DELAY D:0006H SYMBOL i - C:0559H LINE# 3 - BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 4 + BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 4 - C:0559H LINE# 5 - C:0559H LINE# 6 - C:0566H LINE# 7 + C:0561H LINE# 3 + C:0561H LINE# 5 + C:0561H LINE# 6 + C:056EH LINE# 7 ------- ENDPROC _DELAY ------- ENDMOD DELAY @@ -198,26 +199,26 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) D:00A8H PUBLIC IE D:00B8H PUBLIC IP X:0000H SYMBOL count - C:03F9H PUBLIC num_display + C:0401H PUBLIC num_display D:0098H PUBLIC SCON D:0088H PUBLIC TCON - C:054AH PUBLIC hello_push + C:0552H PUBLIC hello_push X:0002H PUBLIC hello_var X:0008H SYMBOL e D:00C8H PUBLIC T2CON X:0009H SYMBOL i - C:0567H PUBLIC ledfull - C:044FH SYMBOL _get_var + C:056FH PUBLIC ledfull + C:0457H SYMBOL _get_var C:010BH PUBLIC hello_display - C:0538H PUBLIC num_push + C:0540H PUBLIC num_push D:00D0H PUBLIC PSW X:000BH SYMBOL var2 ------- PROC _GET_VAR X:001DH SYMBOL k - C:044FH LINE# 9 - C:0457H LINE# 10 - C:0457H LINE# 11 - C:049FH LINE# 12 + C:0457H LINE# 9 + C:045FH LINE# 10 + C:045FH LINE# 11 + C:04A7H LINE# 12 ------- ENDPROC _GET_VAR ------- PROC HELLO_DISPLAY C:010BH LINE# 19 @@ -238,10 +239,10 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) C:015CH LINE# 36 C:015FH LINE# 38 C:0162H LINE# 39 + BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 5 + + C:016BH LINE# 40 - BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 5 - - C:0172H LINE# 41 C:0175H LINE# 43 C:0178H LINE# 44 @@ -262,46 +263,46 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) C:01D3H LINE# 66 ------- ENDPROC HELLO_DISPLAY ------- PROC HELLO_PUSH - C:054AH LINE# 68 - C:054AH LINE# 69 - C:054AH LINE# 71 - C:0558H LINE# 77 + C:0552H LINE# 68 + C:0552H LINE# 69 + C:0552H LINE# 71 + C:0560H LINE# 77 ------- ENDPROC HELLO_PUSH ------- PROC NUM_DISPLAY - C:03F9H LINE# 79 - C:03F9H LINE# 80 - C:03F9H LINE# 81 - C:0408H LINE# 82 - C:0408H LINE# 84 - C:040BH LINE# 85 - C:0411H LINE# 86 - C:0418H LINE# 87 - C:041BH LINE# 92 - C:041BH LINE# 93 - C:042AH LINE# 94 - C:042AH LINE# 95 - C:042DH LINE# 96 - C:042DH LINE# 97 - C:043BH LINE# 98 - C:044AH LINE# 99 - C:044EH LINE# 101 + C:0401H LINE# 79 + C:0401H LINE# 80 + C:0401H LINE# 81 + C:0410H LINE# 82 + C:0410H LINE# 84 + C:0413H LINE# 85 + C:0419H LINE# 86 + C:0420H LINE# 87 + C:0423H LINE# 92 + C:0423H LINE# 93 + C:0432H LINE# 94 + C:0432H LINE# 95 + C:0435H LINE# 96 + C:0435H LINE# 97 + C:0443H LINE# 98 + C:0452H LINE# 99 + C:0456H LINE# 101 ------- ENDPROC NUM_DISPLAY ------- PROC NUM_PUSH - C:0538H LINE# 104 - C:0538H LINE# 105 - C:0538H LINE# 106 - C:0549H LINE# 107 + C:0540H LINE# 104 + C:0540H LINE# 105 + C:0540H LINE# 106 + C:0551H LINE# 107 ------- ENDPROC NUM_PUSH ------- PROC LEDFULL - C:0567H LINE# 109 - C:0567H LINE# 110 - C:0567H LINE# 111 - C:056AH LINE# 112 - C:056DH LINE# 113 + C:056FH LINE# 109 + C:056FH LINE# 110 + C:056FH LINE# 111 + C:0572H LINE# 112 + C:0575H LINE# 113 + BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 6 + + ------- ENDPROC LEDFULL - BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 6 - - ------- PROC HELLO_FULL_DISPLAY ------- DO X:001AH SYMBOL var3 @@ -341,7 +342,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) ------- ENDMOD ?C?ULDIV ------- MODULE ?C?SLDIV - C:04A0H PUBLIC ?C?SLDIV + C:04A8H PUBLIC ?C?SLDIV ------- ENDMOD ?C?SLDIV ------- MODULE ?C?ULCMP @@ -358,10 +359,10 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?HELLO_PUSH?LED_NUM + BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:37:02 PAGE 7 + + *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS - BL51 BANKED LINKER/LOCATER V6.22.2.0 03/30/2022 21:27:40 PAGE 7 - - SEGMENT: ?PR?NUM_DISPLAY?LED_NUM *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS @@ -373,5 +374,5 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?HELLO_FULL_DISPLAY?LED_NUM -Program Size: data=9.0 xdata=31 code=1390 +Program Size: data=9.0 xdata=31 code=1398 LINK/LOCATE RUN COMPLETE. 6 WARNING(S), 0 ERROR(S) diff --git a/MCU/MCU_3 _TIM_Interrupt/main.c b/MCU/MCU_3 _TIM_Interrupt/main.c index c65f935..d9f3ac9 100644 --- a/MCU/MCU_3 _TIM_Interrupt/main.c +++ b/MCU/MCU_3 _TIM_Interrupt/main.c @@ -30,8 +30,8 @@ void pulse() interrupt 1 { TH0 = TH; - TL0 = TL0+ TL; - TL0 = TLO +19; + TL0 = TL0 + TL; + TL0 = TL0 + 23; enable = 1; count++;