diff --git a/Etape_2.uvoptx b/Etape_2.uvoptx
index cb26b33..6a71f02 100644
--- a/Etape_2.uvoptx
+++ b/Etape_2.uvoptx
@@ -125,7 +125,7 @@
0
DLGDARM
- (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=15,39,661,712,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=1209,244,1630,671,1)(121=1190,75,1611,502,0)(122=-1,-1,-1,-1,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=-1,-1,-1,-1,0)(131=-1,-1,-1,-1,0)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(234=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)
+ (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=15,39,661,712,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=287,138,708,565,1)(121=1190,75,1611,502,0)(122=-1,-1,-1,-1,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=-1,-1,-1,-1,0)(131=-1,-1,-1,-1,0)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(234=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)
0
@@ -142,9 +142,121 @@
0
0
+ 116
+ 1
+ 134222522
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\116
+
+
+ 1
+ 0
+ 115
+ 1
+ 134222518
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\115
+
+
+ 2
+ 0
+ 113
+ 1
+ 134222512
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\113
+
+
+ 3
+ 0
+ 99
+ 1
+ 134222500
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\99
+
+
+ 4
+ 0
+ 98
+ 1
+ 134222498
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\98
+
+
+ 5
+ 0
+ 58
+ 1
+ 134222426
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\58
+
+
+ 6
+ 0
+ 57
+ 1
+ 134222424
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\57
+
+
+ 7
+ 0
56
1
- 134222432
+ 134222422
0
0
0
@@ -156,39 +268,7 @@
\\Simu_Etape0\FonctionEtape2.asm\56
- 1
- 0
- 55
- 1
- 134222428
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\55
-
-
- 2
- 0
- 78
- 1
- 134222464
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\78
-
-
- 3
+ 8
0
87
1
@@ -204,7 +284,7 @@
\\Simu_Etape0\Principale.asm\87
- 4
+ 9
0
80
1
@@ -220,7 +300,7 @@
- 5
+ 10
0
91
1
@@ -236,7 +316,7 @@
- 6
+ 11
0
92
1
@@ -256,7 +336,7 @@
1
0
- 0x20000000
+ 0x200004A0
0
diff --git a/FonctionEtape2.asm b/FonctionEtape2.asm
index 6a64d8e..85f023a 100644
--- a/FonctionEtape2.asm
+++ b/FonctionEtape2.asm
@@ -30,7 +30,9 @@
AREA MesDonnees, data, readwrite
;**************************************************************************
-
+SCLK EQU 5
+SIN1 EQU 7
+
Barette1 DCB 0,1,0
DCB 0,1,0
DCB 0,1,0
@@ -58,9 +60,42 @@ Set_SCLK PROC
BX LR ;Retour
ENDP
+
+Set_X PROC
+ PUSH {R7} ;On stocke R7 dans SP
+ MOV R7,SP ;R7 récupère l'adresse du SP
+ PUSH {R0-R4} ;On stocke R0 à R4 dans SP
+ LDRB R0,[R7,#4] ;Argument 1 dans R0
+ MOV R4, #1 ;*******
+ LSL R0, R4, R0 ;1< Adresse de GPIOA
+ LDRH R2,[R1,#OffsetOutput] ;Valeur à l'adresse d'ODR : R2 = GPIOA->ODR
+ ORR R2, R2, R0 ;similaire à GPIOA->ODR |= (1< Adresse de GPIOA
+ LDRH R2,[R1,#OffsetOutput] ;Valeur à l'adresse d'ODR : R2 = GPIOA->ODR
+ AND R2, R2, R0 ;similaire à GPIOA->ODR &= ~(1< Adresse de GPIOA
LDRH R2,[R1,#OffsetOutput] ;Valeur à l'adresse d'ODR : R2 = GPIOA->ODR
AND R2, R2,#~(0x01 << 5) ;similaire à GPIOA->ODR &= ~(1<<5)
@@ -75,7 +110,9 @@ Reset_SCLK PROC
;R8 = ValCourante[NBLed]
;****************************************************************************
DriverGlobal PROC
- BL Set_SCLK;
+ MOV R0, #SCLK ;************
+ PUSH {R0} ;Set_X(SCLK)
+ BL Set_X; ;************
MOV R6, #0;
WHILE_NBLED
;Pour NbLed = 1 à 48