From 57163ca9eedb87bd31a562959d065bdf3b9ab94f Mon Sep 17 00:00:00 2001 From: Boyu Fu Date: Fri, 24 Mar 2023 15:49:58 +0100 Subject: [PATCH] =?UTF-8?q?TP=20n=C2=B01=20termin=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soft/PjtKEIL_StepDeb_1/BacASable.uvoptx | 15 +++++++++++---- soft/PjtKEIL_StepDeb_1/BacASable.uvprojx | 9 ++------- soft/PjtKEIL_StepDeb_1/Src/Delay.s | 17 +++++++++-------- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx b/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx index ed76561..7fdb9ce 100644 --- a/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx +++ b/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx @@ -10,7 +10,7 @@ *.s*; *.src; *.a* *.obj; *.o *.lib - *.txt; *.h; *.inc + *.txt; *.h; *.inc; *.md *.plm *.cpp 0 @@ -75,7 +75,7 @@ 1 0 - 1 + 0 18 @@ -260,7 +260,7 @@ 1 0 - 0 + 1 18 @@ -339,11 +339,18 @@ + + + 0 + 1 + VarTime + + 1 257 - r0 + 0x20000000 0 diff --git a/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx b/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx index 9c192f5..2318c0c 100644 --- a/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx +++ b/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx @@ -10,7 +10,7 @@ Simu 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::.\ARMCC + 5060960::V5.06 update 7 (build 960)::.\ARMCC 0 @@ -424,7 +424,7 @@ CibleSondeKEIL 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::.\ARMCC + 5060960::V5.06 update 7 (build 960)::.\ARMCC 0 @@ -1338,11 +1338,6 @@ <Project Info> - - - - - 0 1 diff --git a/soft/PjtKEIL_StepDeb_1/Src/Delay.s b/soft/PjtKEIL_StepDeb_1/Src/Delay.s index bf49175..abec5f2 100644 --- a/soft/PjtKEIL_StepDeb_1/Src/Delay.s +++ b/soft/PjtKEIL_StepDeb_1/Src/Delay.s @@ -12,6 +12,7 @@ VarTime dcd 0 + EXPORT VarTime ; =============================================================================================== @@ -41,19 +42,19 @@ TimeValue equ 900000 Delay_100ms proc - ldr r0,=VarTime + ldr r0,=VarTime ; r0 prend la valeur VarTime = 0 ici la premiere adresse est 0x20000000 en RAM dans simulation - ldr r1,=TimeValue - str r1,[r0] + ldr r1,=TimeValue ; r1 prend la valeur TimeValue = 900000 + str r1,[r0] ; la valeur 32bits contenue dans r1 est copiée en RAM à l'adresse spécifiée dans r0 BoucleTempo - ldr r1,[r0] + ldr r1,[r0] ; la valeur 32bits située à l'adresse spécifiée dans r0 est recopiée dans r1 - subs r1,#1 - str r1,[r0] - bne BoucleTempo + subs r1,#1 ; r1 prend la valeur r1 - 1 = 899999 + str r1,[r0] ; la valeur 32bits contenue dans r1 est copiée en RAM à l'adresse spécifiée dans r0 + bne BoucleTempo ; if z = 0 faire BoucleTempo; Z: Set to 1 when r1 is zero, otherwise cleared to 0 - bx lr + bx lr ; indirect jump to [LR] endp