diff --git a/MCU/MCU_8 _LCD12864_Sine/Listings/MCU_1.m51 b/MCU/MCU_8 _LCD12864_Sine/Listings/MCU_1.m51 index b4eefb7..201ce5e 100644 --- a/MCU/MCU_8 _LCD12864_Sine/Listings/MCU_1.m51 +++ b/MCU/MCU_8 _LCD12864_Sine/Listings/MCU_1.m51 @@ -1,4 +1,4 @@ -BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 1 +BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 1 BL51 BANKED LINKER/LOCATER V6.22.2.0, INVOKED BY: @@ -59,7 +59,7 @@ OVERLAY MAP OF MODULE: .\Objects\MCU_1 (MAIN) SEGMENT XDATA_GROUP +--> CALLED SEGMENT START LENGTH ----------------------------------------------- - BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 2 + BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 2 ?C_C51STARTUP ----- ----- @@ -119,7 +119,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) C:0000H SYMBOL _ICE_DUMMY_ C:03EBH PUBLIC delay100us C:038BH PUBLIC _delay - BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 3 + BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 3 ------- PROC DELAY100US @@ -179,7 +179,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) D:00C8H PUBLIC T2CON D:00D0H PUBLIC PSW C:03C7H SYMBOL L?0056 - BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 4 + BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 4 C:03CCH SYMBOL L?0057 @@ -239,7 +239,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) ------- DO X:0088H SYMBOL i X:008AH SYMBOL j - BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 5 + BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 5 ------- ENDDO @@ -299,7 +299,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) C:03C1H LINE# 124 C:03C4H LINE# 125 ------- ENDPROC INIT - BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 6 + BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 6 ------- PROC TEST @@ -359,7 +359,7 @@ SYMBOL TABLE OF MODULE: .\Objects\MCU_1 (MAIN) ------- PROC _SETCOMMAND D:0007H SYMBOL d C:03FDH LINE# 179 - BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:23:01 PAGE 7 + BL51 BANKED LINKER/LOCATER V6.22.2.0 05/05/2022 20:42:31 PAGE 7 C:03FDH LINE# 180 diff --git a/MCU/MCU_8 _LCD12864_Sine/display.c b/MCU/MCU_8 _LCD12864_Sine/display.c index 5a9cb8f..449e261 100644 --- a/MCU/MCU_8 _LCD12864_Sine/display.c +++ b/MCU/MCU_8 _LCD12864_Sine/display.c @@ -52,7 +52,7 @@ void draw() RS = 0; RW = 0; - P1 = 0xb8 + sine[63 + j] / 8; //页 + P1 = 0xb8 + (sine[63 + j] / 8); //页 write(); P1 = 0X40 + j; //Y write(); @@ -60,7 +60,7 @@ void draw() RS = 1; RW = 0; - P1 = 1<<(sine[j] % 8); + P1 = 1<<(sine[j+63] % 8); write(); } } @@ -121,7 +121,7 @@ void init() CSA = 0; CSB = 1; RS = 0; - P1 = 0XFF; + P1 = 0X3F; write(); }