diff --git a/.gitignore b/.gitignore
index 43314a8..adf9980 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@
**/Objects/
**/Listings/
**/Debug/
+.obsidian
diff --git a/Etape_2.uvoptx b/Etape_2.uvoptx
index 2b9736b..679f3f9 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=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)
+ (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=532,24,953,451,1)(121=540,467,961,894,1)(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,150 +142,22 @@
0
0
- 128
+ 80
1
- 134222544
+ 134222354
0
0
0
0
0
1
- .\FonctionEtape2.asm
+ .\FonctionEtape.asm
- \\Simu_Etape0\FonctionEtape2.asm\128
+ \\Simu_Etape0\FonctionEtape.asm\80
1
0
- 116
- 1
- 134222522
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\116
-
-
- 2
- 0
- 115
- 1
- 134222518
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\115
-
-
- 3
- 0
- 113
- 1
- 134222512
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\113
-
-
- 4
- 0
- 99
- 1
- 134222500
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\99
-
-
- 5
- 0
- 98
- 1
- 134222498
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\98
-
-
- 6
- 0
- 58
- 1
- 134222426
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\58
-
-
- 7
- 0
- 57
- 1
- 134222424
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\57
-
-
- 8
- 0
- 56
- 1
- 134222422
- 0
- 0
- 0
- 0
- 0
- 1
- .\FonctionEtape2.asm
-
- \\Simu_Etape0\FonctionEtape2.asm\56
-
-
- 9
- 0
87
1
134222324
@@ -300,9 +172,25 @@
\\Simu_Etape0\Principale.asm\87
- 10
+ 2
0
- 80
+ 117
+ 1
+ 134222500
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ .\FonctionEtape2.asm
+
+ \\Simu_Etape0\FonctionEtape2.asm\117
+
+
+ 3
+ 0
+ 91
1
0
0
@@ -311,12 +199,28 @@
0
0
0
- .\Principale.asm
+ .\FonctionEtape.asm
- 11
+ 4
+ 0
+ 92
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ .\FonctionEtape.asm
+
+
+
+
+ 5
0
91
1
@@ -332,7 +236,7 @@
- 12
+ 6
0
92
1
@@ -352,7 +256,7 @@
1
0
- 0x200004A0
+ 0x20000000
0
@@ -388,7 +292,7 @@
0
0
0
- 0
+ 1
0
0
0
@@ -413,13 +317,13 @@
0
- ((portA & 0x00000100) >> 8 & 0x100) >> 8
- FF000000000000000000000000000000E0FFEF400100000000000000000000000000000028706F7274412026203078303030303031303029203E3E2038000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F170000000000000000000000000000000000000044140008
+ (portA & 0x20 & 0x20) >> 0
+ FF000000000000000000000000000000E0FFEF4001000000000000000000000000000000706F7274412026203078323000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F1400000000000000000000000000000000000000E4120008
1
- ((portB & 0x00000400) >> 10 & 0x400) >> 10
- 00800000000000000000000000000000E0FFEF400100000000000000000000000000000028706F7274422026203078303030303034303029203E3E2031300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F17000000000000000000000000000000000000004C140008
+ (portA & 0x80 & 0x80) >> 0
+ 00800000000000000000000000000000E0FFEF4001000000000000000000000000000000706F7274412026203078383000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F140000000000000000000000000000000000000062120008
@@ -689,7 +593,7 @@
::Device
- 1
+ 0
0
0
1
diff --git a/FonctionEtape2.asm b/FonctionEtape2.asm
index 27c3e16..cfbd4af 100644
--- a/FonctionEtape2.asm
+++ b/FonctionEtape2.asm
@@ -32,14 +32,24 @@
SCLK EQU 5
SIN1 EQU 7
-
-Barette1 DCB 0,1,0
- DCB 0,1,0
- DCB 0,1,0
- DCB 0,1,0
- DCB 0,1,0
- DCB 0,1,0
- DCB 0,1,0
+
+PF DCD (1<<31)
+Barette1 DCB 0xff,0,0
+ DCB 0,0xff,0
+ DCB 0,0,0xff
+ DCB 0xff,0,0
+ DCB 0xff,0xff,0
+ DCB 0xff,0xff,0xff
+ DCB 0xff,0,0
+ DCB 0,0xff,0
+ DCB 0,0,0xff
+ DCB 0xff,0,0
+ DCB 0xff,0xff,0
+ DCB 0xff,0xff,0xff
+ DCB 0xff,0,0
+ DCB 0xff,0xff,0
+ DCB 0xff,0xff,0xff
+ DCB 0x0f,0xff,0x00
@@ -62,34 +72,28 @@ Set_SCLK PROC
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<:
- 0:e1e00000 mvnr0, r0
- 4:e12fff1e bxlr
+ 0:e1e00000 mvn r0, r0
+ 4:e12fff1e bx lr
00000008 :
- 8:e3a01001 movr1, #1
- c:e59f3010 ldrr3, [pc, #16]@ 24
- 10:e5932000 ldrr2, [r3]
- 14:e1d230b5 ldrhr3, [r2, #5]
- 18:e1c33011 bicr3, r3, r1, lsl r0
- 1c:e1c230b5 strhr3, [r2, #5]
- 20:e12fff1e bxlr
- 24:00000000 andeqr0, r0, r0
+ 8:e3a01001 mov r1, #1
+ c:e59f3010 ldr r3, [pc, #16]@ 24
+ 10:e5932000 ldr r2, [r3]
+ 14:e1d230b5 ldrh r3, [r2, #5]
+ 18:e1c33011 bic r3, r3, r1, lsl r0
+ 1c:e1c230b5 strh r3, [r2, #5]
+ 20:e12fff1e bx lr
+ 24:00000000 andeq r0, r0, r0
```
\ No newline at end of file
diff --git a/assets/graph_complete.png b/assets/graph_complete.png
new file mode 100644
index 0000000..328dc0d
Binary files /dev/null and b/assets/graph_complete.png differ
diff --git a/capteur_signals.uvl b/capteur_signals.uvl
new file mode 100644
index 0000000..45ea5db
--- /dev/null
+++ b/capteur_signals.uvl
@@ -0,0 +1,28 @@
+[Signal 1]
+DispName=(portA & 0x00000100) >> 8
+PlotType=1
+Color=255
+ValHex=0
+MinDec=0
+MinVal=0.
+MaxDec=0
+MaxVal=65535.
+Mask=256
+Offset=8
+Adaptive=0
+DispNumber=1
+HeightFactor=0.5
+[Signal 2]
+DispName=(portB & 0x00000400) >> 10
+PlotType=1
+Color=32768
+ValHex=0
+MinDec=0
+MinVal=0.
+MaxDec=0
+MaxVal=65535.
+Mask=1024
+Offset=10
+Adaptive=0
+DispNumber=2
+HeightFactor=0.5