From 1f27d86fea2157ac74b86fd95516d096911a6e97 Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Sun, 26 Mar 2023 18:46:10 +0200 Subject: [PATCH] Ajout de DataSend --- Etape_2.uvoptx | 208 +++++++++++++++++++++++++++++---------------- FonctionEtape2.asm | 15 ++-- 2 files changed, 145 insertions(+), 78 deletions(-) diff --git a/Etape_2.uvoptx b/Etape_2.uvoptx index 679f3f9..23ccb49 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=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) + (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=1208,526,1629,953,1)(121=566,392,987,819,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,70 +142,6 @@ 0 0 - 80 - 1 -
134222354
- 0 - 0 - 0 - 0 - 0 - 1 - .\FonctionEtape.asm - - \\Simu_Etape0\FonctionEtape.asm\80 -
- - 1 - 0 - 87 - 1 -
134222324
- 0 - 0 - 0 - 0 - 0 - 1 - .\Principale.asm - - \\Simu_Etape0\Principale.asm\87 -
- - 2 - 0 - 117 - 1 -
134222500
- 0 - 0 - 0 - 0 - 0 - 1 - .\FonctionEtape2.asm - - \\Simu_Etape0\FonctionEtape2.asm\117 -
- - 3 - 0 - 91 - 1 -
0
- 0 - 0 - 0 - 0 - 0 - 0 - .\FonctionEtape.asm - - -
- - 4 - 0 92 1
0
@@ -220,7 +156,7 @@
- 5 + 1 0 91 1 @@ -231,6 +167,70 @@ 0 0 0 + .\FonctionEtape.asm + + + + + 2 + 0 + 92 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\Principale.asm + + +
+ + 3 + 0 + 91 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\Principale.asm + + +
+ + 4 + 0 + 80 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\Principale.asm + + +
+ + 5 + 0 + 57 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 .\Principale.asm @@ -238,7 +238,7 @@ 6 0 - 92 + 56 1
0
0 @@ -251,6 +251,70 @@
+ + 7 + 0 + 80 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\FonctionEtape.asm + + +
+ + 8 + 0 + 87 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\Principale.asm + + +
+ + 9 + 0 + 117 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\FonctionEtape2.asm + + +
+ + 10 + 0 + 118 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\FonctionEtape2.asm + + +
@@ -278,7 +342,7 @@ 0 1 - 1 + 0 0 0 0 @@ -286,13 +350,13 @@ 1 0 0 - 1 + 0 0 0 0 0 0 - 1 + 0 0 0 0 @@ -318,12 +382,12 @@ 0 (portA & 0x20 & 0x20) >> 0 - FF000000000000000000000000000000E0FFEF4001000000000000000000000000000000706F7274412026203078323000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F1400000000000000000000000000000000000000E4120008 + FF000000000000000000000000000000E0FFEF4001000000000000000000000000000000706F7274412026203078323000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000E03F0800000000000000000000000000000000000000E4120008 1 (portA & 0x80 & 0x80) >> 0 - 00800000000000000000000000000000E0FFEF4001000000000000000000000000000000706F7274412026203078383000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F140000000000000000000000000000000000000062120008 + 00800000000000000000000000000000E0FFEF4001000000000000000000000000000000706F7274412026203078383000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000002000000000000000000E03F080000000000000000000000000000000000000062120008 diff --git a/FonctionEtape2.asm b/FonctionEtape2.asm index cfbd4af..a27f770 100644 --- a/FonctionEtape2.asm +++ b/FonctionEtape2.asm @@ -34,7 +34,8 @@ SCLK EQU 5 SIN1 EQU 7 PF DCD (1<<31) -Barette1 DCB 0xff,0,0 +DataSend DCB 1 +Barette1 DCB 0xad,0xff,0 DCB 0,0xff,0 DCB 0,0,0xff DCB 0xff,0,0 @@ -72,27 +73,27 @@ Set_SCLK PROC ENDP Set_X PROC - PUSH {R1,R2} ;On stocke R0 ŕ R4 dans SP + PUSH {R1,R2} ;On stocke R1 et R2 dans SP MOV R1, #1 ;******* LSL R0, R1, 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<