Browse Source

Ajout Objectif 1

Auriane Lartigue 3 years ago
parent
commit
39fa74a965

BIN
Obj_1/Librairie/GASSP72/Manuel_utilisateur_GASSP72_v7.pdf View File


+ 115
- 0
Obj_1/Librairie/GASSP72/gassp72.h View File

@@ -0,0 +1,115 @@
1
+/**
2
+ * Bibliotheque GASSP 2013-02-15
3
+ *
4
+ * GPIO - ADC - Sequenceur - System Timer - PWM - 72 MHz
5
+ *
6
+ */
7
+
8
+// STM32F10X_CL : pour le STM32F107 "Communication Line"
9
+// STM32F10X_MD : pour le STM32F103 "Medium Density"
10
+
11
+//#define STM32F10X_MD	// 2019 fix for Keil 5.23
12
+
13
+#include "stm32f10x.h"
14
+
15
+// horloge systeme (config statique a 72 MHz pour le STM32F103) ------------
16
+void CLOCK_Configure(void);
17
+
18
+// Timers 1, 2, 3, 4 -------------------------------------------------------
19
+// la duree entre deux debordements successifs doit etre donnnee en periodes
20
+// d'horloge CPU (typiquement 72 MHz)
21
+void Timer_1234_Init_ff( TIM_TypeDef *Timer, u32 Duree_ticks );
22
+
23
+// activation d'une fonction de traitement de l'interruption timer (callback)
24
+void Active_IT_Debordement_Timer( TIM_TypeDef *Timer, char Prio, void (*IT_function)(void) );
25
+
26
+// bloque le timer
27
+#define Bloque_Timer(Timer) Timer->CR1=(Timer->CR1)&~(1<<0)
28
+
29
+// Lance timer
30
+#define Run_Timer(Timer) Timer->CR1=(Timer->CR1)|(1<<0)
31
+
32
+// PWM (basee sur un des Timers 1, 2, 3, 4 ---------------------------------
33
+// la periode doit etre donnee en periodes d'horloge CPU (typiquement 72 MHz)
34
+// la fonction rend la pleine echelle ou resolution, c'est a dire la plage
35
+// de valeurs acceptees pour moduler la largeur d'impulsion
36
+vu16 PWM_Init_ff( TIM_TypeDef *Timer, char Voie, u32 Periode_ticks );
37
+
38
+// Timer systeme "SysTick" -------------------------------------------------
39
+
40
+// la periode doit etre donnee en periodes d'horloge CPU (typiquement 72 MHz)
41
+void Systick_Period_ff( unsigned int Periode_ticks );
42
+
43
+// activation d'une fonction de traitement de l'interruption timer (callback)
44
+void Systick_Prio_IT( char Prio, void (*Systick_function)(void) );
45
+
46
+#define  SysTick_On ((SysTick->CTRL)=(SysTick->CTRL)|1<<0)
47
+#define  SysTick_Off ((SysTick->CTRL)=(SysTick->CTRL)& ~(1<<0))
48
+#define  SysTick_Enable_IT ((SysTick->CTRL)=(SysTick->CTRL)|1<<1)
49
+#define  SysTick_Disable_IT ((SysTick->CTRL)=(SysTick->CTRL)& ~(1<<1))
50
+
51
+// ADC - DMA ---------------------------------------------------------------
52
+// Analog-to-Digital Conversion, Direct Memory Access
53
+
54
+// la duree d'echantillonnage doit etre donnee en periodes d'horloge CPU (typiquement 72 MHz)
55
+// la fonction rend la duree totale de conversion (meme unites)
56
+u32 Init_TimingADC_ActiveADC_ff( ADC_TypeDef * ADC, u32 Duree_Ech_ticks );
57
+
58
+// choix d'un canal ADC unique
59
+void Single_Channel_ADC( ADC_TypeDef * ADC, char Voie_ADC );
60
+
61
+// la periode de repetition des acquisitions doit etre donnee en periodes d'horloge CPU
62
+// Les sources de déclenchement possibles :
63
+#define TIM1_CC1 0
64
+#define TIM1_CC2 1
65
+#define TIM1_CC3 2
66
+#define TIM2_CC2 3
67
+#define TIM4_CC4 5
68
+void Init_Conversion_On_Trig_Timer_ff( ADC_TypeDef * ADC, char Source, u32 Periode_ticks );
69
+
70
+// initialisation d'acquisition en mode DMA
71
+// Ptr_Table_DMA doit pointer sur un espace memoire suffisant pour le nombre d'ech. demande
72
+void Init_ADC1_DMA1( char Circ, vu16 *Ptr_Table_DMA );
73
+
74
+
75
+// Lance une DMA sur le nombre de points spécifie. Les resultats seront stockes
76
+// dans la zone de RAM écrite est indiquée lors de l'appel de la fonction  Init_ADC1_DMA1
77
+void Start_DMA1( u16 NbEchDMA );
78
+
79
+// arret DMA
80
+#define  Stop_DMA1 DMA1_Channel1->CCR =(DMA1_Channel1->CCR) &~0x1;
81
+
82
+// fonction d'attente (bloquante)
83
+// la duree depend de la periode d'acquisition et du nombre d'echantillons
84
+void Wait_On_End_Of_DMA1(void);
85
+
86
+
87
+// GPIO --------------------------------------------------------------------
88
+
89
+// Sens
90
+#define INPUT   'i'
91
+#define OUTPUT  'o'
92
+
93
+// Techno pour pin en entrée (INPUT)
94
+#define ANALOG              0
95
+#define INPUT_FLOATING      1
96
+#define INPUT_PULL_DOWN_UP  2
97
+
98
+// Techno pour pin en sortie (OUTPUT)
99
+#define OUTPUT_PPULL    0
100
+#define OUTPUT_OPDRAIN  1
101
+#define ALT_PPULL       2
102
+#define ALT_OPDRAIN     3
103
+
104
+// La fonction initialise n'importe quelle broche de port (entrée, sortie, techno....)
105
+// Exemple :
106
+// Port_IO_Init(GPIOB, 8, OUTPUT, OUTPUT_PPULL);
107
+// Place le bit 8 du port B en sortie Push-pull
108
+// Renvoie 0 si tout est OK,  et 1 s'il y a un problème (plage d'entrée non respectée)
109
+char GPIO_Configure(GPIO_TypeDef * Port, int Broche, int Sens, int Techno);
110
+
111
+// Spécifier le numéro de broche (0 à 15)
112
+// exemple : Port_IO_Set(GPIOB,8);
113
+#define GPIO_Set(GPIO,Broche) GPIO->BSRR=(0x01<<Broche)
114
+
115
+#define GPIO_Clear(GPIO,Broche) GPIO->BRR=(0x01<<Broche)

BIN
Obj_1/Librairie/GASSP72/gassp72.lib View File


+ 344
- 0
Obj_1/Project.uvoptx View File

@@ -0,0 +1,344 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
+<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_optx.xsd">
3
+
4
+  <SchemaVersion>1.0</SchemaVersion>
5
+
6
+  <Header>### uVision Project, (C) Keil Software</Header>
7
+
8
+  <Extensions>
9
+    <cExt>*.c</cExt>
10
+    <aExt>*.s*; *.src; *.a*</aExt>
11
+    <oExt>*.obj; *.o</oExt>
12
+    <lExt>*.lib</lExt>
13
+    <tExt>*.txt; *.h; *.inc</tExt>
14
+    <pExt>*.plm</pExt>
15
+    <CppX>*.cpp</CppX>
16
+    <nMigrate>0</nMigrate>
17
+  </Extensions>
18
+
19
+  <DaveTm>
20
+    <dwLowDateTime>0</dwLowDateTime>
21
+    <dwHighDateTime>0</dwHighDateTime>
22
+  </DaveTm>
23
+
24
+  <Target>
25
+    <TargetName>Simu</TargetName>
26
+    <ToolsetNumber>0x4</ToolsetNumber>
27
+    <ToolsetName>ARM-ADS</ToolsetName>
28
+    <TargetOption>
29
+      <CLKADS>8000000</CLKADS>
30
+      <OPTTT>
31
+        <gFlags>1</gFlags>
32
+        <BeepAtEnd>1</BeepAtEnd>
33
+        <RunSim>0</RunSim>
34
+        <RunTarget>1</RunTarget>
35
+        <RunAbUc>0</RunAbUc>
36
+      </OPTTT>
37
+      <OPTHX>
38
+        <HexSelection>1</HexSelection>
39
+        <FlashByte>65535</FlashByte>
40
+        <HexRangeLowAddress>0</HexRangeLowAddress>
41
+        <HexRangeHighAddress>0</HexRangeHighAddress>
42
+        <HexOffset>0</HexOffset>
43
+      </OPTHX>
44
+      <OPTLEX>
45
+        <PageWidth>79</PageWidth>
46
+        <PageLength>66</PageLength>
47
+        <TabStop>8</TabStop>
48
+        <ListingPath></ListingPath>
49
+      </OPTLEX>
50
+      <ListingPage>
51
+        <CreateCListing>1</CreateCListing>
52
+        <CreateAListing>1</CreateAListing>
53
+        <CreateLListing>1</CreateLListing>
54
+        <CreateIListing>0</CreateIListing>
55
+        <AsmCond>1</AsmCond>
56
+        <AsmSymb>1</AsmSymb>
57
+        <AsmXref>0</AsmXref>
58
+        <CCond>1</CCond>
59
+        <CCode>0</CCode>
60
+        <CListInc>0</CListInc>
61
+        <CSymb>0</CSymb>
62
+        <LinkerCodeListing>0</LinkerCodeListing>
63
+      </ListingPage>
64
+      <OPTXL>
65
+        <LMap>1</LMap>
66
+        <LComments>1</LComments>
67
+        <LGenerateSymbols>1</LGenerateSymbols>
68
+        <LLibSym>1</LLibSym>
69
+        <LLines>1</LLines>
70
+        <LLocSym>1</LLocSym>
71
+        <LPubSym>1</LPubSym>
72
+        <LXref>0</LXref>
73
+        <LExpSel>0</LExpSel>
74
+      </OPTXL>
75
+      <OPTFL>
76
+        <tvExp>1</tvExp>
77
+        <tvExpOptDlg>0</tvExpOptDlg>
78
+        <IsCurrentTarget>1</IsCurrentTarget>
79
+      </OPTFL>
80
+      <CpuCode>18</CpuCode>
81
+      <DebugOpt>
82
+        <uSim>1</uSim>
83
+        <uTrg>0</uTrg>
84
+        <sLdApp>1</sLdApp>
85
+        <sGomain>1</sGomain>
86
+        <sRbreak>1</sRbreak>
87
+        <sRwatch>1</sRwatch>
88
+        <sRmem>1</sRmem>
89
+        <sRfunc>1</sRfunc>
90
+        <sRbox>1</sRbox>
91
+        <tLdApp>1</tLdApp>
92
+        <tGomain>1</tGomain>
93
+        <tRbreak>1</tRbreak>
94
+        <tRwatch>1</tRwatch>
95
+        <tRmem>1</tRmem>
96
+        <tRfunc>1</tRfunc>
97
+        <tRbox>1</tRbox>
98
+        <tRtrace>1</tRtrace>
99
+        <sRSysVw>1</sRSysVw>
100
+        <tRSysVw>1</tRSysVw>
101
+        <sRunDeb>0</sRunDeb>
102
+        <sLrtime>0</sLrtime>
103
+        <bEvRecOn>1</bEvRecOn>
104
+        <bSchkAxf>0</bSchkAxf>
105
+        <bTchkAxf>0</bTchkAxf>
106
+        <nTsel>5</nTsel>
107
+        <sDll></sDll>
108
+        <sDllPa></sDllPa>
109
+        <sDlgDll></sDlgDll>
110
+        <sDlgPa></sDlgPa>
111
+        <sIfile></sIfile>
112
+        <tDll></tDll>
113
+        <tDllPa></tDllPa>
114
+        <tDlgDll></tDlgDll>
115
+        <tDlgPa></tDlgPa>
116
+        <tIfile></tIfile>
117
+        <pMon>STLink\ST-LINKIII-KEIL_SWO.dll</pMon>
118
+      </DebugOpt>
119
+      <TargetDriverDllRegistry>
120
+        <SetRegEntry>
121
+          <Number>0</Number>
122
+          <Key>DLGDARM</Key>
123
+          <Name>(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=-1,-1,-1,-1,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=-1,-1,-1,-1,0)(121=771,154,1192,581,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)</Name>
124
+        </SetRegEntry>
125
+        <SetRegEntry>
126
+          <Number>0</Number>
127
+          <Key>ARMRTXEVENTFLAGS</Key>
128
+          <Name>-L70 -Z18 -C0 -M0 -T1</Name>
129
+        </SetRegEntry>
130
+        <SetRegEntry>
131
+          <Number>0</Number>
132
+          <Key>DLGTARM</Key>
133
+          <Name>(1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)</Name>
134
+        </SetRegEntry>
135
+        <SetRegEntry>
136
+          <Number>0</Number>
137
+          <Key>ARMDBGFLAGS</Key>
138
+          <Name>-T0</Name>
139
+        </SetRegEntry>
140
+        <SetRegEntry>
141
+          <Number>0</Number>
142
+          <Key>DLGUARM</Key>
143
+          <Name>(105=-1,-1,-1,-1,0)</Name>
144
+        </SetRegEntry>
145
+        <SetRegEntry>
146
+          <Number>0</Number>
147
+          <Key>UL2CM3</Key>
148
+          <Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_128 -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM))</Name>
149
+        </SetRegEntry>
150
+        <SetRegEntry>
151
+          <Number>0</Number>
152
+          <Key>ST-LINKIII-KEIL_SWO</Key>
153
+          <Name>-U066CFF574857847167074929 -O2254 -S0 -C0 -A0 -N00("ARM CoreSight SW-DP") -D00(1BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F10x_128.FLM -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM)</Name>
154
+        </SetRegEntry>
155
+      </TargetDriverDllRegistry>
156
+      <Breakpoint>
157
+        <Bp>
158
+          <Number>0</Number>
159
+          <Type>0</Type>
160
+          <LineNumber>11</LineNumber>
161
+          <EnabledFlag>1</EnabledFlag>
162
+          <Address>134218256</Address>
163
+          <ByteObject>0</ByteObject>
164
+          <HtxType>0</HtxType>
165
+          <ManyObjects>0</ManyObjects>
166
+          <SizeOfObject>0</SizeOfObject>
167
+          <BreakByAccess>0</BreakByAccess>
168
+          <BreakIfRCount>1</BreakIfRCount>
169
+          <Filename>.\Src\principal.c</Filename>
170
+          <ExecCommand></ExecCommand>
171
+          <Expression>\\CHTI\Src/principal.c\11</Expression>
172
+        </Bp>
173
+      </Breakpoint>
174
+      <WatchWindow1>
175
+        <Ww>
176
+          <count>0</count>
177
+          <WinNumber>1</WinNumber>
178
+          <ItemText>TabM</ItemText>
179
+        </Ww>
180
+      </WatchWindow1>
181
+      <Tracepoint>
182
+        <THDelay>0</THDelay>
183
+      </Tracepoint>
184
+      <DebugFlag>
185
+        <trace>0</trace>
186
+        <periodic>1</periodic>
187
+        <aLwin>1</aLwin>
188
+        <aCover>0</aCover>
189
+        <aSer1>0</aSer1>
190
+        <aSer2>0</aSer2>
191
+        <aPa>0</aPa>
192
+        <viewmode>1</viewmode>
193
+        <vrSel>0</vrSel>
194
+        <aSym>0</aSym>
195
+        <aTbox>0</aTbox>
196
+        <AscS1>0</AscS1>
197
+        <AscS2>0</AscS2>
198
+        <AscS3>0</AscS3>
199
+        <aSer3>0</aSer3>
200
+        <eProf>0</eProf>
201
+        <aLa>0</aLa>
202
+        <aPa1>0</aPa1>
203
+        <AscS4>0</AscS4>
204
+        <aSer4>0</aSer4>
205
+        <StkLoc>0</StkLoc>
206
+        <TrcWin>0</TrcWin>
207
+        <newCpu>0</newCpu>
208
+        <uProt>0</uProt>
209
+      </DebugFlag>
210
+      <LintExecutable></LintExecutable>
211
+      <LintConfigFile></LintConfigFile>
212
+      <bLintAuto>0</bLintAuto>
213
+      <bAutoGenD>0</bAutoGenD>
214
+      <LntExFlags>0</LntExFlags>
215
+      <pMisraName></pMisraName>
216
+      <pszMrule></pszMrule>
217
+      <pSingCmds></pSingCmds>
218
+      <pMultCmds></pMultCmds>
219
+      <pMisraNamep></pMisraNamep>
220
+      <pszMrulep></pszMrulep>
221
+      <pSingCmdsp></pSingCmdsp>
222
+      <pMultCmdsp></pMultCmdsp>
223
+      <DebugDescription>
224
+        <Enable>1</Enable>
225
+        <EnableLog>0</EnableLog>
226
+        <Protocol>2</Protocol>
227
+        <DbgClock>10000000</DbgClock>
228
+      </DebugDescription>
229
+    </TargetOption>
230
+  </Target>
231
+
232
+  <Group>
233
+    <GroupName>Sources</GroupName>
234
+    <tvExp>1</tvExp>
235
+    <tvExpOptDlg>0</tvExpOptDlg>
236
+    <cbSel>0</cbSel>
237
+    <RteFlg>0</RteFlg>
238
+    <File>
239
+      <GroupNumber>1</GroupNumber>
240
+      <FileNumber>1</FileNumber>
241
+      <FileType>1</FileType>
242
+      <tvExp>1</tvExp>
243
+      <tvExpOptDlg>0</tvExpOptDlg>
244
+      <bDave2>0</bDave2>
245
+      <PathWithFileName>.\Src\principal.c</PathWithFileName>
246
+      <FilenameWithoutPath>principal.c</FilenameWithoutPath>
247
+      <RteFlg>0</RteFlg>
248
+      <bShared>0</bShared>
249
+    </File>
250
+    <File>
251
+      <GroupNumber>1</GroupNumber>
252
+      <FileNumber>2</FileNumber>
253
+      <FileType>2</FileType>
254
+      <tvExp>0</tvExp>
255
+      <tvExpOptDlg>0</tvExpOptDlg>
256
+      <bDave2>0</bDave2>
257
+      <PathWithFileName>.\Src\DFT.s</PathWithFileName>
258
+      <FilenameWithoutPath>DFT.s</FilenameWithoutPath>
259
+      <RteFlg>0</RteFlg>
260
+      <bShared>0</bShared>
261
+    </File>
262
+  </Group>
263
+
264
+  <Group>
265
+    <GroupName>Drivers</GroupName>
266
+    <tvExp>1</tvExp>
267
+    <tvExpOptDlg>0</tvExpOptDlg>
268
+    <cbSel>0</cbSel>
269
+    <RteFlg>0</RteFlg>
270
+    <File>
271
+      <GroupNumber>2</GroupNumber>
272
+      <FileNumber>3</FileNumber>
273
+      <FileType>4</FileType>
274
+      <tvExp>0</tvExp>
275
+      <tvExpOptDlg>0</tvExpOptDlg>
276
+      <bDave2>0</bDave2>
277
+      <PathWithFileName>.\Librairie\GASSP72\gassp72.lib</PathWithFileName>
278
+      <FilenameWithoutPath>gassp72.lib</FilenameWithoutPath>
279
+      <RteFlg>0</RteFlg>
280
+      <bShared>0</bShared>
281
+    </File>
282
+  </Group>
283
+
284
+  <Group>
285
+    <GroupName>Sys</GroupName>
286
+    <tvExp>1</tvExp>
287
+    <tvExpOptDlg>0</tvExpOptDlg>
288
+    <cbSel>0</cbSel>
289
+    <RteFlg>0</RteFlg>
290
+    <File>
291
+      <GroupNumber>3</GroupNumber>
292
+      <FileNumber>4</FileNumber>
293
+      <FileType>2</FileType>
294
+      <tvExp>0</tvExp>
295
+      <tvExpOptDlg>0</tvExpOptDlg>
296
+      <bDave2>0</bDave2>
297
+      <PathWithFileName>.\Src\startup-rvds.s</PathWithFileName>
298
+      <FilenameWithoutPath>startup-rvds.s</FilenameWithoutPath>
299
+      <RteFlg>0</RteFlg>
300
+      <bShared>0</bShared>
301
+    </File>
302
+  </Group>
303
+
304
+  <Group>
305
+    <GroupName>Donnees</GroupName>
306
+    <tvExp>1</tvExp>
307
+    <tvExpOptDlg>0</tvExpOptDlg>
308
+    <cbSel>0</cbSel>
309
+    <RteFlg>0</RteFlg>
310
+    <File>
311
+      <GroupNumber>4</GroupNumber>
312
+      <FileNumber>5</FileNumber>
313
+      <FileType>2</FileType>
314
+      <tvExp>0</tvExp>
315
+      <tvExpOptDlg>0</tvExpOptDlg>
316
+      <bDave2>0</bDave2>
317
+      <PathWithFileName>.\Tests\f17p30_f18p135.asm</PathWithFileName>
318
+      <FilenameWithoutPath>f17p30_f18p135.asm</FilenameWithoutPath>
319
+      <RteFlg>0</RteFlg>
320
+      <bShared>0</bShared>
321
+    </File>
322
+    <File>
323
+      <GroupNumber>4</GroupNumber>
324
+      <FileNumber>6</FileNumber>
325
+      <FileType>2</FileType>
326
+      <tvExp>0</tvExp>
327
+      <tvExpOptDlg>0</tvExpOptDlg>
328
+      <bDave2>0</bDave2>
329
+      <PathWithFileName>.\Src\TabSinCos.asm</PathWithFileName>
330
+      <FilenameWithoutPath>TabSinCos.asm</FilenameWithoutPath>
331
+      <RteFlg>0</RteFlg>
332
+      <bShared>0</bShared>
333
+    </File>
334
+  </Group>
335
+
336
+  <Group>
337
+    <GroupName>::CMSIS</GroupName>
338
+    <tvExp>0</tvExp>
339
+    <tvExpOptDlg>0</tvExpOptDlg>
340
+    <cbSel>0</cbSel>
341
+    <RteFlg>1</RteFlg>
342
+  </Group>
343
+
344
+</ProjectOpt>

+ 451
- 0
Obj_1/Project.uvprojx View File

@@ -0,0 +1,451 @@
1
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
+<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_projx.xsd">
3
+
4
+  <SchemaVersion>2.1</SchemaVersion>
5
+
6
+  <Header>### uVision Project, (C) Keil Software</Header>
7
+
8
+  <Targets>
9
+    <Target>
10
+      <TargetName>Simu</TargetName>
11
+      <ToolsetNumber>0x4</ToolsetNumber>
12
+      <ToolsetName>ARM-ADS</ToolsetName>
13
+      <pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed>
14
+      <uAC6>0</uAC6>
15
+      <TargetOption>
16
+        <TargetCommonOption>
17
+          <Device>STM32F103RB</Device>
18
+          <Vendor>STMicroelectronics</Vendor>
19
+          <PackID>Keil.STM32F1xx_DFP.2.2.0</PackID>
20
+          <PackURL>http://www.keil.com/pack/</PackURL>
21
+          <Cpu>IRAM(0x20000000-0x20004FFF) IROM(0x8000000-0x801FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")</Cpu>
22
+          <FlashUtilSpec></FlashUtilSpec>
23
+          <StartupFile></StartupFile>
24
+          <FlashDriverDll></FlashDriverDll>
25
+          <DeviceId></DeviceId>
26
+          <RegisterFile></RegisterFile>
27
+          <MemoryEnv></MemoryEnv>
28
+          <Cmp></Cmp>
29
+          <Asm></Asm>
30
+          <Linker></Linker>
31
+          <OHString></OHString>
32
+          <InfinionOptionDll></InfinionOptionDll>
33
+          <SLE66CMisc></SLE66CMisc>
34
+          <SLE66AMisc></SLE66AMisc>
35
+          <SLE66LinkerMisc></SLE66LinkerMisc>
36
+          <SFDFile>$$Device:STM32F103RB$SVD\STM32F103xx.svd</SFDFile>
37
+          <bCustSvd>0</bCustSvd>
38
+          <UseEnv>0</UseEnv>
39
+          <BinPath></BinPath>
40
+          <IncludePath></IncludePath>
41
+          <LibPath></LibPath>
42
+          <RegisterFilePath></RegisterFilePath>
43
+          <DBRegisterFilePath></DBRegisterFilePath>
44
+          <TargetStatus>
45
+            <Error>0</Error>
46
+            <ExitCodeStop>0</ExitCodeStop>
47
+            <ButtonStop>0</ButtonStop>
48
+            <NotGenerated>0</NotGenerated>
49
+            <InvalidFlash>1</InvalidFlash>
50
+          </TargetStatus>
51
+          <OutputDirectory>.\Obj\</OutputDirectory>
52
+          <OutputName>CHTI</OutputName>
53
+          <CreateExecutable>1</CreateExecutable>
54
+          <CreateLib>0</CreateLib>
55
+          <CreateHexFile>1</CreateHexFile>
56
+          <DebugInformation>1</DebugInformation>
57
+          <BrowseInformation>1</BrowseInformation>
58
+          <ListingPath></ListingPath>
59
+          <HexFormatSelection>1</HexFormatSelection>
60
+          <Merge32K>0</Merge32K>
61
+          <CreateBatchFile>0</CreateBatchFile>
62
+          <BeforeCompile>
63
+            <RunUserProg1>0</RunUserProg1>
64
+            <RunUserProg2>0</RunUserProg2>
65
+            <UserProg1Name></UserProg1Name>
66
+            <UserProg2Name></UserProg2Name>
67
+            <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
68
+            <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
69
+            <nStopU1X>0</nStopU1X>
70
+            <nStopU2X>0</nStopU2X>
71
+          </BeforeCompile>
72
+          <BeforeMake>
73
+            <RunUserProg1>0</RunUserProg1>
74
+            <RunUserProg2>0</RunUserProg2>
75
+            <UserProg1Name></UserProg1Name>
76
+            <UserProg2Name></UserProg2Name>
77
+            <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
78
+            <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
79
+            <nStopB1X>0</nStopB1X>
80
+            <nStopB2X>0</nStopB2X>
81
+          </BeforeMake>
82
+          <AfterMake>
83
+            <RunUserProg1>0</RunUserProg1>
84
+            <RunUserProg2>0</RunUserProg2>
85
+            <UserProg1Name></UserProg1Name>
86
+            <UserProg2Name></UserProg2Name>
87
+            <UserProg1Dos16Mode>0</UserProg1Dos16Mode>
88
+            <UserProg2Dos16Mode>0</UserProg2Dos16Mode>
89
+            <nStopA1X>0</nStopA1X>
90
+            <nStopA2X>0</nStopA2X>
91
+          </AfterMake>
92
+          <SelectedForBatchBuild>0</SelectedForBatchBuild>
93
+          <SVCSIdString></SVCSIdString>
94
+        </TargetCommonOption>
95
+        <CommonProperty>
96
+          <UseCPPCompiler>0</UseCPPCompiler>
97
+          <RVCTCodeConst>0</RVCTCodeConst>
98
+          <RVCTZI>0</RVCTZI>
99
+          <RVCTOtherData>0</RVCTOtherData>
100
+          <ModuleSelection>0</ModuleSelection>
101
+          <IncludeInBuild>1</IncludeInBuild>
102
+          <AlwaysBuild>0</AlwaysBuild>
103
+          <GenerateAssemblyFile>0</GenerateAssemblyFile>
104
+          <AssembleAssemblyFile>0</AssembleAssemblyFile>
105
+          <PublicsOnly>0</PublicsOnly>
106
+          <StopOnExitCode>3</StopOnExitCode>
107
+          <CustomArgument></CustomArgument>
108
+          <IncludeLibraryModules></IncludeLibraryModules>
109
+          <ComprImg>0</ComprImg>
110
+        </CommonProperty>
111
+        <DllOption>
112
+          <SimDllName>SARMCM3.DLL</SimDllName>
113
+          <SimDllArguments>-REMAP</SimDllArguments>
114
+          <SimDlgDll>DARMSTM.DLL</SimDlgDll>
115
+          <SimDlgDllArguments>-pSTM32F103RB</SimDlgDllArguments>
116
+          <TargetDllName>SARMCM3.DLL</TargetDllName>
117
+          <TargetDllArguments></TargetDllArguments>
118
+          <TargetDlgDll>TCM.DLL</TargetDlgDll>
119
+          <TargetDlgDllArguments>-pCM3</TargetDlgDllArguments>
120
+        </DllOption>
121
+        <DebugOption>
122
+          <OPTHX>
123
+            <HexSelection>1</HexSelection>
124
+            <HexRangeLowAddress>0</HexRangeLowAddress>
125
+            <HexRangeHighAddress>0</HexRangeHighAddress>
126
+            <HexOffset>0</HexOffset>
127
+            <Oh166RecLen>16</Oh166RecLen>
128
+          </OPTHX>
129
+        </DebugOption>
130
+        <Utilities>
131
+          <Flash1>
132
+            <UseTargetDll>1</UseTargetDll>
133
+            <UseExternalTool>0</UseExternalTool>
134
+            <RunIndependent>0</RunIndependent>
135
+            <UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
136
+            <Capability>1</Capability>
137
+            <DriverSelection>4100</DriverSelection>
138
+          </Flash1>
139
+          <bUseTDR>1</bUseTDR>
140
+          <Flash2>STLink\ST-LINKIII-KEIL_SWO.dll</Flash2>
141
+          <Flash3>"" ()</Flash3>
142
+          <Flash4></Flash4>
143
+          <pFcarmOut></pFcarmOut>
144
+          <pFcarmGrp></pFcarmGrp>
145
+          <pFcArmRoot></pFcArmRoot>
146
+          <FcArmLst>0</FcArmLst>
147
+        </Utilities>
148
+        <TargetArmAds>
149
+          <ArmAdsMisc>
150
+            <GenerateListings>0</GenerateListings>
151
+            <asHll>1</asHll>
152
+            <asAsm>1</asAsm>
153
+            <asMacX>1</asMacX>
154
+            <asSyms>1</asSyms>
155
+            <asFals>1</asFals>
156
+            <asDbgD>1</asDbgD>
157
+            <asForm>1</asForm>
158
+            <ldLst>0</ldLst>
159
+            <ldmm>1</ldmm>
160
+            <ldXref>1</ldXref>
161
+            <BigEnd>0</BigEnd>
162
+            <AdsALst>1</AdsALst>
163
+            <AdsACrf>1</AdsACrf>
164
+            <AdsANop>0</AdsANop>
165
+            <AdsANot>0</AdsANot>
166
+            <AdsLLst>1</AdsLLst>
167
+            <AdsLmap>1</AdsLmap>
168
+            <AdsLcgr>1</AdsLcgr>
169
+            <AdsLsym>1</AdsLsym>
170
+            <AdsLszi>1</AdsLszi>
171
+            <AdsLtoi>1</AdsLtoi>
172
+            <AdsLsun>1</AdsLsun>
173
+            <AdsLven>1</AdsLven>
174
+            <AdsLsxf>1</AdsLsxf>
175
+            <RvctClst>0</RvctClst>
176
+            <GenPPlst>0</GenPPlst>
177
+            <AdsCpuType>"Cortex-M3"</AdsCpuType>
178
+            <RvctDeviceName></RvctDeviceName>
179
+            <mOS>0</mOS>
180
+            <uocRom>0</uocRom>
181
+            <uocRam>0</uocRam>
182
+            <hadIROM>1</hadIROM>
183
+            <hadIRAM>1</hadIRAM>
184
+            <hadXRAM>0</hadXRAM>
185
+            <uocXRam>0</uocXRam>
186
+            <RvdsVP>0</RvdsVP>
187
+            <hadIRAM2>0</hadIRAM2>
188
+            <hadIROM2>0</hadIROM2>
189
+            <StupSel>8</StupSel>
190
+            <useUlib>1</useUlib>
191
+            <EndSel>0</EndSel>
192
+            <uLtcg>0</uLtcg>
193
+            <nSecure>0</nSecure>
194
+            <RoSelD>3</RoSelD>
195
+            <RwSelD>3</RwSelD>
196
+            <CodeSel>0</CodeSel>
197
+            <OptFeed>0</OptFeed>
198
+            <NoZi1>0</NoZi1>
199
+            <NoZi2>0</NoZi2>
200
+            <NoZi3>0</NoZi3>
201
+            <NoZi4>0</NoZi4>
202
+            <NoZi5>0</NoZi5>
203
+            <Ro1Chk>0</Ro1Chk>
204
+            <Ro2Chk>0</Ro2Chk>
205
+            <Ro3Chk>0</Ro3Chk>
206
+            <Ir1Chk>1</Ir1Chk>
207
+            <Ir2Chk>0</Ir2Chk>
208
+            <Ra1Chk>0</Ra1Chk>
209
+            <Ra2Chk>0</Ra2Chk>
210
+            <Ra3Chk>0</Ra3Chk>
211
+            <Im1Chk>1</Im1Chk>
212
+            <Im2Chk>0</Im2Chk>
213
+            <OnChipMemories>
214
+              <Ocm1>
215
+                <Type>0</Type>
216
+                <StartAddress>0x0</StartAddress>
217
+                <Size>0x0</Size>
218
+              </Ocm1>
219
+              <Ocm2>
220
+                <Type>0</Type>
221
+                <StartAddress>0x0</StartAddress>
222
+                <Size>0x0</Size>
223
+              </Ocm2>
224
+              <Ocm3>
225
+                <Type>0</Type>
226
+                <StartAddress>0x0</StartAddress>
227
+                <Size>0x0</Size>
228
+              </Ocm3>
229
+              <Ocm4>
230
+                <Type>0</Type>
231
+                <StartAddress>0x0</StartAddress>
232
+                <Size>0x0</Size>
233
+              </Ocm4>
234
+              <Ocm5>
235
+                <Type>0</Type>
236
+                <StartAddress>0x0</StartAddress>
237
+                <Size>0x0</Size>
238
+              </Ocm5>
239
+              <Ocm6>
240
+                <Type>0</Type>
241
+                <StartAddress>0x0</StartAddress>
242
+                <Size>0x0</Size>
243
+              </Ocm6>
244
+              <IRAM>
245
+                <Type>0</Type>
246
+                <StartAddress>0x20000000</StartAddress>
247
+                <Size>0x5000</Size>
248
+              </IRAM>
249
+              <IROM>
250
+                <Type>1</Type>
251
+                <StartAddress>0x8000000</StartAddress>
252
+                <Size>0x20000</Size>
253
+              </IROM>
254
+              <XRAM>
255
+                <Type>0</Type>
256
+                <StartAddress>0x0</StartAddress>
257
+                <Size>0x0</Size>
258
+              </XRAM>
259
+              <OCR_RVCT1>
260
+                <Type>1</Type>
261
+                <StartAddress>0x0</StartAddress>
262
+                <Size>0x0</Size>
263
+              </OCR_RVCT1>
264
+              <OCR_RVCT2>
265
+                <Type>1</Type>
266
+                <StartAddress>0x0</StartAddress>
267
+                <Size>0x0</Size>
268
+              </OCR_RVCT2>
269
+              <OCR_RVCT3>
270
+                <Type>1</Type>
271
+                <StartAddress>0x0</StartAddress>
272
+                <Size>0x0</Size>
273
+              </OCR_RVCT3>
274
+              <OCR_RVCT4>
275
+                <Type>1</Type>
276
+                <StartAddress>0x8000000</StartAddress>
277
+                <Size>0x20000</Size>
278
+              </OCR_RVCT4>
279
+              <OCR_RVCT5>
280
+                <Type>1</Type>
281
+                <StartAddress>0x0</StartAddress>
282
+                <Size>0x0</Size>
283
+              </OCR_RVCT5>
284
+              <OCR_RVCT6>
285
+                <Type>0</Type>
286
+                <StartAddress>0x0</StartAddress>
287
+                <Size>0x0</Size>
288
+              </OCR_RVCT6>
289
+              <OCR_RVCT7>
290
+                <Type>0</Type>
291
+                <StartAddress>0x0</StartAddress>
292
+                <Size>0x0</Size>
293
+              </OCR_RVCT7>
294
+              <OCR_RVCT8>
295
+                <Type>0</Type>
296
+                <StartAddress>0x0</StartAddress>
297
+                <Size>0x0</Size>
298
+              </OCR_RVCT8>
299
+              <OCR_RVCT9>
300
+                <Type>0</Type>
301
+                <StartAddress>0x20000000</StartAddress>
302
+                <Size>0x5000</Size>
303
+              </OCR_RVCT9>
304
+              <OCR_RVCT10>
305
+                <Type>0</Type>
306
+                <StartAddress>0x0</StartAddress>
307
+                <Size>0x0</Size>
308
+              </OCR_RVCT10>
309
+            </OnChipMemories>
310
+            <RvctStartVector></RvctStartVector>
311
+          </ArmAdsMisc>
312
+          <Cads>
313
+            <interw>1</interw>
314
+            <Optim>1</Optim>
315
+            <oTime>0</oTime>
316
+            <SplitLS>0</SplitLS>
317
+            <OneElfS>1</OneElfS>
318
+            <Strict>0</Strict>
319
+            <EnumInt>0</EnumInt>
320
+            <PlainCh>0</PlainCh>
321
+            <Ropi>0</Ropi>
322
+            <Rwpi>0</Rwpi>
323
+            <wLevel>2</wLevel>
324
+            <uThumb>0</uThumb>
325
+            <uSurpInc>0</uSurpInc>
326
+            <uC99>0</uC99>
327
+            <uGnu>0</uGnu>
328
+            <useXO>0</useXO>
329
+            <v6Lang>1</v6Lang>
330
+            <v6LangP>1</v6LangP>
331
+            <vShortEn>1</vShortEn>
332
+            <vShortWch>1</vShortWch>
333
+            <v6Lto>0</v6Lto>
334
+            <v6WtE>0</v6WtE>
335
+            <v6Rtti>0</v6Rtti>
336
+            <VariousControls>
337
+              <MiscControls>--C99</MiscControls>
338
+              <Define>STM32F103xB,USE_FULL_LL_DRIVER</Define>
339
+              <Undefine></Undefine>
340
+              <IncludePath></IncludePath>
341
+            </VariousControls>
342
+          </Cads>
343
+          <Aads>
344
+            <interw>1</interw>
345
+            <Ropi>0</Ropi>
346
+            <Rwpi>0</Rwpi>
347
+            <thumb>0</thumb>
348
+            <SplitLS>0</SplitLS>
349
+            <SwStkChk>0</SwStkChk>
350
+            <NoWarn>0</NoWarn>
351
+            <uSurpInc>0</uSurpInc>
352
+            <useXO>0</useXO>
353
+            <uClangAs>0</uClangAs>
354
+            <VariousControls>
355
+              <MiscControls></MiscControls>
356
+              <Define></Define>
357
+              <Undefine></Undefine>
358
+              <IncludePath></IncludePath>
359
+            </VariousControls>
360
+          </Aads>
361
+          <LDads>
362
+            <umfTarg>1</umfTarg>
363
+            <Ropi>0</Ropi>
364
+            <Rwpi>0</Rwpi>
365
+            <noStLib>0</noStLib>
366
+            <RepFail>1</RepFail>
367
+            <useFile>0</useFile>
368
+            <TextAddressRange>0x08000000</TextAddressRange>
369
+            <DataAddressRange>0x20000000</DataAddressRange>
370
+            <pXoBase></pXoBase>
371
+            <ScatterFile></ScatterFile>
372
+            <IncludeLibs></IncludeLibs>
373
+            <IncludeLibsPath></IncludeLibsPath>
374
+            <Misc></Misc>
375
+            <LinkerInputFile></LinkerInputFile>
376
+            <DisabledWarnings></DisabledWarnings>
377
+          </LDads>
378
+        </TargetArmAds>
379
+      </TargetOption>
380
+      <Groups>
381
+        <Group>
382
+          <GroupName>Sources</GroupName>
383
+          <Files>
384
+            <File>
385
+              <FileName>principal.c</FileName>
386
+              <FileType>1</FileType>
387
+              <FilePath>.\Src\principal.c</FilePath>
388
+            </File>
389
+            <File>
390
+              <FileName>DFT.s</FileName>
391
+              <FileType>2</FileType>
392
+              <FilePath>.\Src\DFT.s</FilePath>
393
+            </File>
394
+          </Files>
395
+        </Group>
396
+        <Group>
397
+          <GroupName>Drivers</GroupName>
398
+          <Files>
399
+            <File>
400
+              <FileName>gassp72.lib</FileName>
401
+              <FileType>4</FileType>
402
+              <FilePath>.\Librairie\GASSP72\gassp72.lib</FilePath>
403
+            </File>
404
+          </Files>
405
+        </Group>
406
+        <Group>
407
+          <GroupName>Sys</GroupName>
408
+          <Files>
409
+            <File>
410
+              <FileName>startup-rvds.s</FileName>
411
+              <FileType>2</FileType>
412
+              <FilePath>.\Src\startup-rvds.s</FilePath>
413
+            </File>
414
+          </Files>
415
+        </Group>
416
+        <Group>
417
+          <GroupName>Donnees</GroupName>
418
+          <Files>
419
+            <File>
420
+              <FileName>f17p30_f18p135.asm</FileName>
421
+              <FileType>2</FileType>
422
+              <FilePath>.\Tests\f17p30_f18p135.asm</FilePath>
423
+            </File>
424
+            <File>
425
+              <FileName>TabSinCos.asm</FileName>
426
+              <FileType>2</FileType>
427
+              <FilePath>.\Src\TabSinCos.asm</FilePath>
428
+            </File>
429
+          </Files>
430
+        </Group>
431
+        <Group>
432
+          <GroupName>::CMSIS</GroupName>
433
+        </Group>
434
+      </Groups>
435
+    </Target>
436
+  </Targets>
437
+
438
+  <RTE>
439
+    <apis/>
440
+    <components>
441
+      <component Cclass="CMSIS" Cgroup="CORE" Cvendor="ARM" Cversion="4.3.0" condition="CMSIS Core">
442
+        <package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="4.5.0"/>
443
+        <targetInfos>
444
+          <targetInfo name="Simu"/>
445
+        </targetInfos>
446
+      </component>
447
+    </components>
448
+    <files/>
449
+  </RTE>
450
+
451
+</Project>

+ 61
- 0
Obj_1/Src/DFT.s View File

@@ -0,0 +1,61 @@
1
+; AFONSO Perrine LARTIGUE Auriane
2
+	thumb
3
+	area moncode, code, readwrite
4
+		
5
+	import TabSin
6
+    import TabCos
7
+			
8
+	export 	CalculM
9
+
10
+
11
+calculReouIm	proc ; procedure permettant de calculer imaginaire ou reel
12
+	; ro contient la valeur de k
13
+	; r1 contient adresse de TabSig
14
+	; r2 contient adresse de TabCos ou Tabsin
15
+	mov r3 , #0x00 ; r3 va nous servir de compteur i 
16
+	mov r12, #0x00 ; va contenir le resultat temporairement	
17
+comparaison	cmp r3, #64 ; on compare i a 64
18
+	bne loop
19
+	b fin	
20
+loop
21
+	push {r0} 
22
+	push{r12}; on garde l'ancienne contenu dans r12 
23
+	mul r0, r0 , r3 ;  i*k
24
+	and r0, #0x3F  ; contient i*k modulo 64
25
+	ldrsh r12 , [r2, r0 , LSL #0x01] ;  cos(i*k*2 pi / N)
26
+	mov r0 , r12
27
+	ldrsh r12 , [r1, r3 , LSL #0x01] ;  x(i)
28
+	mul r12 , r12 , r0 ; x(i)* cos(i*k*2 pi / N)
29
+	add r3 , #0x01 ; on incremente le compteur i
30
+	mov r0, r12
31
+	pop{r12}
32
+	add r12, r0
33
+	pop {r0}
34
+	b comparaison ; on reboucle
35
+fin
36
+	mov r0 , r12 ; on stocke le resultat final dans r0
37
+	bx lr 
38
+	endp
39
+
40
+
41
+CalculM	proc
42
+	; k dans r0
43
+	;adresse de TabSig dans le registre r1
44
+	ldr r2, =TabCos ; adresse de TabCos dans le registre r2
45
+	push{LR,r0}
46
+	bl calculReouIm
47
+	mov r3, r0; Re dan r3
48
+	pop{r0}
49
+	push {r3}
50
+	ldr r2, =TabSin ; adresse de TabSin dans le registre r2
51
+	bl calculReouIm
52
+	mov r12 , r0 ; Im dans r12
53
+	pop{r3}
54
+	smull r1, r2, r3 , r3 ; Re^2
55
+	smlal r1, r2, r12 , r12; Re^2 +Im^2
56
+	mov r0, r2 ; on stocke le resultat dans r2
57
+	pop{PC}
58
+	bx lr 
59
+	endp
60
+		
61
+	end

+ 136
- 0
Obj_1/Src/TabSinCos.asm View File

@@ -0,0 +1,136 @@
1
+	AREA Trigo, DATA, READWRITE
2
+	export TabSin
3
+	export TabCos
4
+
5
+TabCos
6
+	DCW	32767	;  0 0x7fff  0.99997
7
+	DCW	32610	;  1 0x7f62  0.99518
8
+	DCW	32138	;  2 0x7d8a  0.98077
9
+	DCW	31357	;  3 0x7a7d  0.95694
10
+	DCW	30274	;  4 0x7642  0.92389
11
+	DCW	28899	;  5 0x70e3  0.88193
12
+	DCW	27246	;  6 0x6a6e  0.83148
13
+	DCW	25330	;  7 0x62f2  0.77301
14
+	DCW	23170	;  8 0x5a82  0.70709
15
+	DCW	20788	;  9 0x5134  0.63440
16
+	DCW	18205	; 10 0x471d  0.55557
17
+	DCW	15447	; 11 0x3c57  0.47141
18
+	DCW	12540	; 12 0x30fc  0.38269
19
+	DCW	 9512	; 13 0x2528  0.29028
20
+	DCW	 6393	; 14 0x18f9  0.19510
21
+	DCW	 3212	; 15 0x0c8c  0.09802
22
+	DCW	    0	; 16 0x0000  0.00000
23
+	DCW	-3212	; 17 0xf374 -0.09802
24
+	DCW	-6393	; 18 0xe707 -0.19510
25
+	DCW	-9512	; 19 0xdad8 -0.29028
26
+	DCW	-12540	; 20 0xcf04 -0.38269
27
+	DCW	-15447	; 21 0xc3a9 -0.47141
28
+	DCW	-18205	; 22 0xb8e3 -0.55557
29
+	DCW	-20788	; 23 0xaecc -0.63440
30
+	DCW	-23170	; 24 0xa57e -0.70709
31
+	DCW	-25330	; 25 0x9d0e -0.77301
32
+	DCW	-27246	; 26 0x9592 -0.83148
33
+	DCW	-28899	; 27 0x8f1d -0.88193
34
+	DCW	-30274	; 28 0x89be -0.92389
35
+	DCW	-31357	; 29 0x8583 -0.95694
36
+	DCW	-32138	; 30 0x8276 -0.98077
37
+	DCW	-32610	; 31 0x809e -0.99518
38
+	DCW	-32768	; 32 0x8000 -1.00000
39
+	DCW	-32610	; 33 0x809e -0.99518
40
+	DCW	-32138	; 34 0x8276 -0.98077
41
+	DCW	-31357	; 35 0x8583 -0.95694
42
+	DCW	-30274	; 36 0x89be -0.92389
43
+	DCW	-28899	; 37 0x8f1d -0.88193
44
+	DCW	-27246	; 38 0x9592 -0.83148
45
+	DCW	-25330	; 39 0x9d0e -0.77301
46
+	DCW	-23170	; 40 0xa57e -0.70709
47
+	DCW	-20788	; 41 0xaecc -0.63440
48
+	DCW	-18205	; 42 0xb8e3 -0.55557
49
+	DCW	-15447	; 43 0xc3a9 -0.47141
50
+	DCW	-12540	; 44 0xcf04 -0.38269
51
+	DCW	-9512	; 45 0xdad8 -0.29028
52
+	DCW	-6393	; 46 0xe707 -0.19510
53
+	DCW	-3212	; 47 0xf374 -0.09802
54
+	DCW	    0	; 48 0x0000  0.00000
55
+	DCW	 3212	; 49 0x0c8c  0.09802
56
+	DCW	 6393	; 50 0x18f9  0.19510
57
+	DCW	 9512	; 51 0x2528  0.29028
58
+	DCW	12540	; 52 0x30fc  0.38269
59
+	DCW	15447	; 53 0x3c57  0.47141
60
+	DCW	18205	; 54 0x471d  0.55557
61
+	DCW	20788	; 55 0x5134  0.63440
62
+	DCW	23170	; 56 0x5a82  0.70709
63
+	DCW	25330	; 57 0x62f2  0.77301
64
+	DCW	27246	; 58 0x6a6e  0.83148
65
+	DCW	28899	; 59 0x70e3  0.88193
66
+	DCW	30274	; 60 0x7642  0.92389
67
+	DCW	31357	; 61 0x7a7d  0.95694
68
+	DCW	32138	; 62 0x7d8a  0.98077
69
+	DCW	32610	; 63 0x7f62  0.99518
70
+TabSin
71
+	DCW	    0	;  0 0x0000  0.00000
72
+	DCW	 3212	;  1 0x0c8c  0.09802
73
+	DCW	 6393	;  2 0x18f9  0.19510
74
+	DCW	 9512	;  3 0x2528  0.29028
75
+	DCW	12540	;  4 0x30fc  0.38269
76
+	DCW	15447	;  5 0x3c57  0.47141
77
+	DCW	18205	;  6 0x471d  0.55557
78
+	DCW	20788	;  7 0x5134  0.63440
79
+	DCW	23170	;  8 0x5a82  0.70709
80
+	DCW	25330	;  9 0x62f2  0.77301
81
+	DCW	27246	; 10 0x6a6e  0.83148
82
+	DCW	28899	; 11 0x70e3  0.88193
83
+	DCW	30274	; 12 0x7642  0.92389
84
+	DCW	31357	; 13 0x7a7d  0.95694
85
+	DCW	32138	; 14 0x7d8a  0.98077
86
+	DCW	32610	; 15 0x7f62  0.99518
87
+	DCW	32767	; 16 0x7fff  0.99997
88
+	DCW	32610	; 17 0x7f62  0.99518
89
+	DCW	32138	; 18 0x7d8a  0.98077
90
+	DCW	31357	; 19 0x7a7d  0.95694
91
+	DCW	30274	; 20 0x7642  0.92389
92
+	DCW	28899	; 21 0x70e3  0.88193
93
+	DCW	27246	; 22 0x6a6e  0.83148
94
+	DCW	25330	; 23 0x62f2  0.77301
95
+	DCW	23170	; 24 0x5a82  0.70709
96
+	DCW	20788	; 25 0x5134  0.63440
97
+	DCW	18205	; 26 0x471d  0.55557
98
+	DCW	15447	; 27 0x3c57  0.47141
99
+	DCW	12540	; 28 0x30fc  0.38269
100
+	DCW	 9512	; 29 0x2528  0.29028
101
+	DCW	 6393	; 30 0x18f9  0.19510
102
+	DCW	 3212	; 31 0x0c8c  0.09802
103
+	DCW	    0	; 32 0x0000  0.00000
104
+	DCW	-3212	; 33 0xf374 -0.09802
105
+	DCW	-6393	; 34 0xe707 -0.19510
106
+	DCW	-9512	; 35 0xdad8 -0.29028
107
+	DCW	-12540	; 36 0xcf04 -0.38269
108
+	DCW	-15447	; 37 0xc3a9 -0.47141
109
+	DCW	-18205	; 38 0xb8e3 -0.55557
110
+	DCW	-20788	; 39 0xaecc -0.63440
111
+	DCW	-23170	; 40 0xa57e -0.70709
112
+	DCW	-25330	; 41 0x9d0e -0.77301
113
+	DCW	-27246	; 42 0x9592 -0.83148
114
+	DCW	-28899	; 43 0x8f1d -0.88193
115
+	DCW	-30274	; 44 0x89be -0.92389
116
+	DCW	-31357	; 45 0x8583 -0.95694
117
+	DCW	-32138	; 46 0x8276 -0.98077
118
+	DCW	-32610	; 47 0x809e -0.99518
119
+	DCW	-32768	; 48 0x8000 -1.00000
120
+	DCW	-32610	; 49 0x809e -0.99518
121
+	DCW	-32138	; 50 0x8276 -0.98077
122
+	DCW	-31357	; 51 0x8583 -0.95694
123
+	DCW	-30274	; 52 0x89be -0.92389
124
+	DCW	-28899	; 53 0x8f1d -0.88193
125
+	DCW	-27246	; 54 0x9592 -0.83148
126
+	DCW	-25330	; 55 0x9d0e -0.77301
127
+	DCW	-23170	; 56 0xa57e -0.70709
128
+	DCW	-20788	; 57 0xaecc -0.63440
129
+	DCW	-18205	; 58 0xb8e3 -0.55557
130
+	DCW	-15447	; 59 0xc3a9 -0.47141
131
+	DCW	-12540	; 60 0xcf04 -0.38269
132
+	DCW	-9512	; 61 0xdad8 -0.29028
133
+	DCW	-6393	; 62 0xe707 -0.19510
134
+	DCW	-3212	; 63 0xf374 -0.09802
135
+
136
+	END

+ 12
- 0
Obj_1/Src/principal.c View File

@@ -0,0 +1,12 @@
1
+// AFONSO Perrine LARTIGUE Auriane
2
+int CalculM(int, unsigned short *);
3
+int TabM[64];
4
+extern unsigned short TabSig ;
5
+
6
+int main(void)
7
+{
8
+	for (int k=0; k<64; k++){
9
+			TabM[k]=CalculM(k, &TabSig);
10
+	}
11
+while(1){}
12
+}

+ 335
- 0
Obj_1/Src/startup-rvds.s View File

@@ -0,0 +1,335 @@
1
+;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
2
+;* File Name          : startup_stm32f10x_md.s
3
+;* Author             : MCD Application Team
4
+;* Version            : V3.5.0
5
+;* Date               : 11-March-2011
6
+;* Description        : STM32F10x Medium Density Devices vector table for MDK-ARM 
7
+;*                      toolchain.  
8
+;*                      This module performs:
9
+;*                      - Set the initial SP
10
+;*                      - Set the initial PC == Reset_Handler
11
+;*                      - Set the vector table entries with the exceptions ISR address
12
+;*                      - Configure the clock system
13
+;*                      - Branches to __main in the C library (which eventually
14
+;*                        calls main()).
15
+;*                      After Reset the CortexM3 processor is in Thread mode,
16
+;*                      priority is Privileged, and the Stack is set to Main.
17
+;* <<< Use Configuration Wizard in Context Menu >>>   
18
+;*******************************************************************************
19
+; THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
20
+; WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
21
+; AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
22
+; INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
23
+; CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
24
+; INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
25
+;*******************************************************************************
26
+
27
+; Amount of memory (in bytes) allocated for Stack
28
+; Tailor this value to your application needs
29
+; <h> Stack Configuration
30
+;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
31
+; </h>
32
+
33
+Stack_Size      EQU     0x00000400
34
+
35
+                AREA    STACK, NOINIT, READWRITE, ALIGN=3
36
+Stack_Mem       SPACE   Stack_Size
37
+__initial_sp
38
+
39
+
40
+; <h> Heap Configuration
41
+;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
42
+; </h>
43
+
44
+Heap_Size       EQU     0x00000200
45
+
46
+                AREA    HEAP, NOINIT, READWRITE, ALIGN=3
47
+__heap_base
48
+Heap_Mem        SPACE   Heap_Size
49
+__heap_limit
50
+
51
+                PRESERVE8
52
+                THUMB
53
+
54
+
55
+; Vector Table Mapped to Address 0 at Reset
56
+                AREA    RESET, DATA, READONLY
57
+                EXPORT  __Vectors
58
+                EXPORT  __Vectors_End
59
+                EXPORT  __Vectors_Size
60
+
61
+__Vectors       DCD     __initial_sp               ; Top of Stack
62
+                DCD     Reset_Handler              ; Reset Handler
63
+                DCD     NMI_Handler                ; NMI Handler
64
+                DCD     HardFault_Handler          ; Hard Fault Handler
65
+                DCD     MemManage_Handler          ; MPU Fault Handler
66
+                DCD     BusFault_Handler           ; Bus Fault Handler
67
+                DCD     UsageFault_Handler         ; Usage Fault Handler
68
+                DCD     0                          ; Reserved
69
+                DCD     0                          ; Reserved
70
+                DCD     0                          ; Reserved
71
+                DCD     0                          ; Reserved
72
+                DCD     SVC_Handler                ; SVCall Handler
73
+                DCD     DebugMon_Handler           ; Debug Monitor Handler
74
+                DCD     0                          ; Reserved
75
+                DCD     PendSV_Handler             ; PendSV Handler
76
+                DCD     SysTick_Handler            ; SysTick Handler
77
+
78
+                ; External Interrupts
79
+                DCD     WWDG_IRQHandler            ; Window Watchdog
80
+                DCD     PVD_IRQHandler             ; PVD through EXTI Line detect
81
+                DCD     TAMPER_IRQHandler          ; Tamper
82
+                DCD     RTC_IRQHandler             ; RTC
83
+                DCD     FLASH_IRQHandler           ; Flash
84
+                DCD     RCC_IRQHandler             ; RCC
85
+                DCD     EXTI0_IRQHandler           ; EXTI Line 0
86
+                DCD     EXTI1_IRQHandler           ; EXTI Line 1
87
+                DCD     EXTI2_IRQHandler           ; EXTI Line 2
88
+                DCD     EXTI3_IRQHandler           ; EXTI Line 3
89
+                DCD     EXTI4_IRQHandler           ; EXTI Line 4
90
+                DCD     DMA1_Channel1_IRQHandler   ; DMA1 Channel 1
91
+                DCD     DMA1_Channel2_IRQHandler   ; DMA1 Channel 2
92
+                DCD     DMA1_Channel3_IRQHandler   ; DMA1 Channel 3
93
+                DCD     DMA1_Channel4_IRQHandler   ; DMA1 Channel 4
94
+                DCD     DMA1_Channel5_IRQHandler   ; DMA1 Channel 5
95
+                DCD     DMA1_Channel6_IRQHandler   ; DMA1 Channel 6
96
+                DCD     DMA1_Channel7_IRQHandler   ; DMA1 Channel 7
97
+                DCD     ADC1_2_IRQHandler          ; ADC1_2
98
+                DCD     USB_HP_CAN1_TX_IRQHandler  ; USB High Priority or CAN1 TX
99
+                DCD     USB_LP_CAN1_RX0_IRQHandler ; USB Low  Priority or CAN1 RX0
100
+                DCD     CAN1_RX1_IRQHandler        ; CAN1 RX1
101
+                DCD     CAN1_SCE_IRQHandler        ; CAN1 SCE
102
+                DCD     EXTI9_5_IRQHandler         ; EXTI Line 9..5
103
+                DCD     TIM1_BRK_IRQHandler        ; TIM1 Break
104
+                DCD     TIM1_UP_IRQHandler         ; TIM1 Update
105
+                DCD     TIM1_TRG_COM_IRQHandler    ; TIM1 Trigger and Commutation
106
+                DCD     TIM1_CC_IRQHandler         ; TIM1 Capture Compare
107
+                DCD     TIM2_IRQHandler            ; TIM2
108
+                DCD     TIM3_IRQHandler            ; TIM3
109
+                DCD     TIM4_IRQHandler            ; TIM4
110
+                DCD     I2C1_EV_IRQHandler         ; I2C1 Event
111
+                DCD     I2C1_ER_IRQHandler         ; I2C1 Error
112
+                DCD     I2C2_EV_IRQHandler         ; I2C2 Event
113
+                DCD     I2C2_ER_IRQHandler         ; I2C2 Error
114
+                DCD     SPI1_IRQHandler            ; SPI1
115
+                DCD     SPI2_IRQHandler            ; SPI2
116
+                DCD     USART1_IRQHandler          ; USART1
117
+                DCD     USART2_IRQHandler          ; USART2
118
+                DCD     USART3_IRQHandler          ; USART3
119
+                DCD     EXTI15_10_IRQHandler       ; EXTI Line 15..10
120
+                DCD     RTCAlarm_IRQHandler        ; RTC Alarm through EXTI Line
121
+                DCD     USBWakeUp_IRQHandler       ; USB Wakeup from suspend
122
+__Vectors_End
123
+
124
+__Vectors_Size  EQU  __Vectors_End - __Vectors
125
+
126
+                AREA    |.text|, CODE, READONLY
127
+
128
+; Reset handler
129
+Reset_Handler    PROC
130
+                 EXPORT  Reset_Handler             [WEAK]
131
+     IMPORT  __main
132
+     
133
+                 LDR     R0, =SystemInit
134
+                 BLX     R0
135
+
136
+;
137
+; Enable UsageFault, MemFault and Busfault interrupts
138
+;
139
+_SHCSR			EQU     0xE000ED24		; SHCSR is located at address 0xE000ED24
140
+				LDR.W	R0, =_SHCSR				
141
+				LDR 	R1, [R0]				; Read CPACR
142
+				ORR 	R1, R1, #(0x7 << 16)	; Set bits 16,17,18 to enable usagefault, busfault, memfault interrupts
143
+				STR 	R1, [R0]				; Write back the modified value to the CPACR
144
+				DSB								; Wait for store to complete
145
+
146
+;
147
+; Set priority grouping (PRIGROUP) in AIRCR to 3 (16 levels for group priority and 0 for subpriority)
148
+;
149
+_AIRCR			EQU		0xE000ED0C
150
+_AIRCR_VAL		EQU		0x05FA0300
151
+				LDR.W	R0, =_AIRCR
152
+				LDR.W	R1, =_AIRCR_VAL
153
+				STR		R1,[R0]
154
+		
155
+;
156
+; Finaly, jump to main function (void main (void))
157
+;
158
+                LDR     R0, =__main
159
+                BX      R0
160
+                ENDP
161
+
162
+SystemInit		PROC				 
163
+				EXPORT  SystemInit                    [WEAK]    
164
+				BX		LR
165
+				ENDP
166
+
167
+; Dummy Exception Handlers (infinite loops which can be modified)
168
+
169
+NMI_Handler     PROC
170
+                EXPORT  NMI_Handler                [WEAK]
171
+                B       .
172
+                ENDP
173
+HardFault_Handler\
174
+                PROC
175
+                EXPORT  HardFault_Handler          [WEAK]
176
+                B       .
177
+                ENDP
178
+MemManage_Handler\
179
+                PROC
180
+                EXPORT  MemManage_Handler          [WEAK]
181
+                B       .
182
+                ENDP
183
+BusFault_Handler\
184
+                PROC
185
+                EXPORT  BusFault_Handler           [WEAK]
186
+                B       .
187
+                ENDP
188
+UsageFault_Handler\
189
+                PROC
190
+                EXPORT  UsageFault_Handler         [WEAK]
191
+                B       .
192
+                ENDP
193
+SVC_Handler     PROC
194
+                EXPORT  SVC_Handler                [WEAK]
195
+                B       .
196
+                ENDP
197
+DebugMon_Handler\
198
+                PROC
199
+                EXPORT  DebugMon_Handler           [WEAK]
200
+                B       .
201
+                ENDP
202
+PendSV_Handler  PROC
203
+                EXPORT  PendSV_Handler             [WEAK]
204
+                B       .
205
+                ENDP
206
+SysTick_Handler PROC
207
+                EXPORT  SysTick_Handler            [WEAK]
208
+                B       .
209
+                ENDP
210
+
211
+Default_Handler PROC
212
+
213
+                EXPORT  WWDG_IRQHandler            [WEAK]
214
+                EXPORT  PVD_IRQHandler             [WEAK]
215
+                EXPORT  TAMPER_IRQHandler          [WEAK]
216
+                EXPORT  RTC_IRQHandler             [WEAK]
217
+                EXPORT  FLASH_IRQHandler           [WEAK]
218
+                EXPORT  RCC_IRQHandler             [WEAK]
219
+                EXPORT  EXTI0_IRQHandler           [WEAK]
220
+                EXPORT  EXTI1_IRQHandler           [WEAK]
221
+                EXPORT  EXTI2_IRQHandler           [WEAK]
222
+                EXPORT  EXTI3_IRQHandler           [WEAK]
223
+                EXPORT  EXTI4_IRQHandler           [WEAK]
224
+                EXPORT  DMA1_Channel1_IRQHandler   [WEAK]
225
+                EXPORT  DMA1_Channel2_IRQHandler   [WEAK]
226
+                EXPORT  DMA1_Channel3_IRQHandler   [WEAK]
227
+                EXPORT  DMA1_Channel4_IRQHandler   [WEAK]
228
+                EXPORT  DMA1_Channel5_IRQHandler   [WEAK]
229
+                EXPORT  DMA1_Channel6_IRQHandler   [WEAK]
230
+                EXPORT  DMA1_Channel7_IRQHandler   [WEAK]
231
+                EXPORT  ADC1_2_IRQHandler          [WEAK]
232
+                EXPORT  USB_HP_CAN1_TX_IRQHandler  [WEAK]
233
+                EXPORT  USB_LP_CAN1_RX0_IRQHandler [WEAK]
234
+                EXPORT  CAN1_RX1_IRQHandler        [WEAK]
235
+                EXPORT  CAN1_SCE_IRQHandler        [WEAK]
236
+                EXPORT  EXTI9_5_IRQHandler         [WEAK]
237
+                EXPORT  TIM1_BRK_IRQHandler        [WEAK]
238
+                EXPORT  TIM1_UP_IRQHandler         [WEAK]
239
+                EXPORT  TIM1_TRG_COM_IRQHandler    [WEAK]
240
+                EXPORT  TIM1_CC_IRQHandler         [WEAK]
241
+                EXPORT  TIM2_IRQHandler            [WEAK]
242
+                EXPORT  TIM3_IRQHandler            [WEAK]
243
+                EXPORT  TIM4_IRQHandler            [WEAK]
244
+                EXPORT  I2C1_EV_IRQHandler         [WEAK]
245
+                EXPORT  I2C1_ER_IRQHandler         [WEAK]
246
+                EXPORT  I2C2_EV_IRQHandler         [WEAK]
247
+                EXPORT  I2C2_ER_IRQHandler         [WEAK]
248
+                EXPORT  SPI1_IRQHandler            [WEAK]
249
+                EXPORT  SPI2_IRQHandler            [WEAK]
250
+                EXPORT  USART1_IRQHandler          [WEAK]
251
+                EXPORT  USART2_IRQHandler          [WEAK]
252
+                EXPORT  USART3_IRQHandler          [WEAK]
253
+                EXPORT  EXTI15_10_IRQHandler       [WEAK]
254
+                EXPORT  RTCAlarm_IRQHandler        [WEAK]
255
+                EXPORT  USBWakeUp_IRQHandler       [WEAK]
256
+
257
+WWDG_IRQHandler
258
+PVD_IRQHandler
259
+TAMPER_IRQHandler
260
+RTC_IRQHandler
261
+FLASH_IRQHandler
262
+RCC_IRQHandler
263
+EXTI0_IRQHandler
264
+EXTI1_IRQHandler
265
+EXTI2_IRQHandler
266
+EXTI3_IRQHandler
267
+EXTI4_IRQHandler
268
+DMA1_Channel1_IRQHandler
269
+DMA1_Channel2_IRQHandler
270
+DMA1_Channel3_IRQHandler
271
+DMA1_Channel4_IRQHandler
272
+DMA1_Channel5_IRQHandler
273
+DMA1_Channel6_IRQHandler
274
+DMA1_Channel7_IRQHandler
275
+ADC1_2_IRQHandler
276
+USB_HP_CAN1_TX_IRQHandler
277
+USB_LP_CAN1_RX0_IRQHandler
278
+CAN1_RX1_IRQHandler
279
+CAN1_SCE_IRQHandler
280
+EXTI9_5_IRQHandler
281
+TIM1_BRK_IRQHandler
282
+TIM1_UP_IRQHandler
283
+TIM1_TRG_COM_IRQHandler
284
+TIM1_CC_IRQHandler
285
+TIM2_IRQHandler
286
+TIM3_IRQHandler
287
+TIM4_IRQHandler
288
+I2C1_EV_IRQHandler
289
+I2C1_ER_IRQHandler
290
+I2C2_EV_IRQHandler
291
+I2C2_ER_IRQHandler
292
+SPI1_IRQHandler
293
+SPI2_IRQHandler
294
+USART1_IRQHandler
295
+USART2_IRQHandler
296
+USART3_IRQHandler
297
+EXTI15_10_IRQHandler
298
+RTCAlarm_IRQHandler
299
+USBWakeUp_IRQHandler
300
+
301
+                B       .
302
+
303
+                ENDP
304
+
305
+                ALIGN
306
+
307
+;*******************************************************************************
308
+; User Stack and Heap initialization
309
+;*******************************************************************************
310
+                 IF      :DEF:__MICROLIB           
311
+                
312
+                 EXPORT  __initial_sp
313
+                 EXPORT  __heap_base
314
+                 EXPORT  __heap_limit
315
+                
316
+                 ELSE
317
+                
318
+                 IMPORT  __use_two_region_memory
319
+                 EXPORT  __user_initial_stackheap
320
+                 
321
+__user_initial_stackheap
322
+
323
+                 LDR     R0, =  Heap_Mem
324
+                 LDR     R1, =(Stack_Mem + Stack_Size)
325
+                 LDR     R2, = (Heap_Mem +  Heap_Size)
326
+                 LDR     R3, = Stack_Mem
327
+                 BX      LR
328
+
329
+                 ALIGN
330
+
331
+                 ENDIF
332
+
333
+                 END
334
+
335
+;******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE*****

+ 90
- 0
Obj_1/Tests/f17p30_f18p135.asm View File

@@ -0,0 +1,90 @@
1
+	AREA Signal, DATA, READONLY
2
+	export TabSig
3
+
4
+; Fnor1 = 17.000
5
+;   Ph1 = 30.000
6
+;    A1 = 1024.000
7
+; Fnor2 = 18.000
8
+;   Ph2 = 135.000
9
+;    A2 = 1024.000
10
+
11
+; valeurs attendues pour k = 17 :
12
+;	Re	0x376C909D	env 0.866 * 2^30
13
+;	Im	0xE000C6D7	env -0.5  * 2^30
14
+;	M2	0x0FFFA278	env 2^28
15
+;
16
+; valeurs attendues pour k = 18 :
17
+;	Re	0xD2BDF5FC	env -sqrt(0.5) * 2^30
18
+;	Im	0xD2BE8C7F	env -sqrt(0.5) * 2^30
19
+;	M2	0x10005BE5	env 2^28
20
+;
21
+; pour les autres valeurs de k sauf les alias de 17 et 18 :
22
+;	M2    < 0x0000000F
23
+
24
+TabSig
25
+	DCW	2211	;  0 0x08a3  0.53979
26
+	DCW	 883	;  1 0x0373  0.21558
27
+	DCW	2224	;  2 0x08b0  0.54297
28
+	DCW	2995	;  3 0x0bb3  0.73120
29
+	DCW	1647	;  4 0x066f  0.40210
30
+	DCW	1378	;  5 0x0562  0.33643
31
+	DCW	2541	;  6 0x09ed  0.62036
32
+	DCW	2437	;  7 0x0985  0.59497
33
+	DCW	1589	;  8 0x0635  0.38794
34
+	DCW	1889	;  9 0x0761  0.46118
35
+	DCW	2373	; 10 0x0945  0.57935
36
+	DCW	2067	; 11 0x0813  0.50464
37
+	DCW	1914	; 12 0x077a  0.46729
38
+	DCW	2055	; 13 0x0807  0.50171
39
+	DCW	1985	; 14 0x07c1  0.48462
40
+	DCW	2129	; 15 0x0851  0.51978
41
+	DCW	2260	; 16 0x08d4  0.55176
42
+	DCW	1785	; 17 0x06f9  0.43579
43
+	DCW	1777	; 18 0x06f1  0.43384
44
+	DCW	2548	; 19 0x09f4  0.62207
45
+	DCW	2260	; 20 0x08d4  0.55176
46
+	DCW	1307	; 21 0x051b  0.31909
47
+	DCW	2020	; 22 0x07e4  0.49316
48
+	DCW	2978	; 23 0x0ba2  0.72705
49
+	DCW	1783	; 24 0x06f7  0.43530
50
+	DCW	1030	; 25 0x0406  0.25146
51
+	DCW	2678	; 26 0x0a76  0.65381
52
+	DCW	3019	; 27 0x0bcb  0.73706
53
+	DCW	1033	; 28 0x0409  0.25220
54
+	DCW	1276	; 29 0x04fc  0.31152
55
+	DCW	3410	; 30 0x0d52  0.83252
56
+	DCW	2477	; 31 0x09ad  0.60474
57
+	DCW	 437	; 32 0x01b5  0.10669
58
+	DCW	2076	; 33 0x081c  0.50684
59
+	DCW	3764	; 34 0x0eb4  0.91895
60
+	DCW	1500	; 35 0x05dc  0.36621
61
+	DCW	 401	; 36 0x0191  0.09790
62
+	DCW	3117	; 37 0x0c2d  0.76099
63
+	DCW	3447	; 38 0x0d77  0.84155
64
+	DCW	 521	; 39 0x0209  0.12720
65
+	DCW	1059	; 40 0x0423  0.25854
66
+	DCW	3910	; 41 0x0f46  0.95459
67
+	DCW	2507	; 42 0x09cb  0.61206
68
+	DCW	  20	; 43 0x0014  0.00488
69
+	DCW	2182	; 44 0x0886  0.53271
70
+	DCW	4050	; 45 0x0fd2  0.98877
71
+	DCW	1327	; 46 0x052f  0.32397
72
+	DCW	 264	; 47 0x0108  0.06445
73
+	DCW	3284	; 48 0x0cd4  0.80176
74
+	DCW	3449	; 49 0x0d79  0.84204
75
+	DCW	 427	; 50 0x01ab  0.10425
76
+	DCW	1148	; 51 0x047c  0.28027
77
+	DCW	3884	; 52 0x0f2c  0.94824
78
+	DCW	2389	; 53 0x0955  0.58325
79
+	DCW	 184	; 54 0x00b8  0.04492
80
+	DCW	2256	; 55 0x08d0  0.55078
81
+	DCW	3761	; 56 0x0eb1  0.91821
82
+	DCW	1363	; 57 0x0553  0.33276
83
+	DCW	 634	; 58 0x027a  0.15479
84
+	DCW	3086	; 59 0x0c0e  0.75342
85
+	DCW	3063	; 60 0x0bf7  0.74780
86
+	DCW	 811	; 61 0x032b  0.19800
87
+	DCW	1470	; 62 0x05be  0.35889
88
+	DCW	3322	; 63 0x0cfa  0.81104
89
+
90
+	END

+ 76
- 0
Obj_1/Tests/f1p-45.asm View File

@@ -0,0 +1,76 @@
1
+	AREA Signal, DATA, READONLY
2
+	export TabSig
3
+; fonction cosinus, frequence relative 1, phase -45 degres, amplitude max
4
+; valeurs attendues pour k = 1 :
5
+;	Re	0x5A82562C	env +sqrt(0.5) * 2^31
6
+;	Im	0x5A82562C	env +sqrt(0.5) * 2^31
7
+;	M2	0x3FFFCDE5	env 2^30
8
+; pour 1 < k < 63
9
+;	M2    < 0x0000000F
10
+
11
+TabSig
12
+	dcw	0x0da8	;  0   3496  0.85352
13
+	dcw	0x0e2f	;  1   3631  0.88647
14
+	dcw	0x0ea7	;  2   3751  0.91577
15
+	dcw	0x0f0e	;  3   3854  0.94092
16
+	dcw	0x0f64	;  4   3940  0.96191
17
+	dcw	0x0fa8	;  5   4008  0.97852
18
+	dcw	0x0fd9	;  6   4057  0.99048
19
+	dcw	0x0ff6	;  7   4086  0.99756
20
+	dcw	0x0fff	;  8   4095  0.99976
21
+	dcw	0x0ff6	;  9   4086  0.99756
22
+	dcw	0x0fd9	; 10   4057  0.99048
23
+	dcw	0x0fa8	; 11   4008  0.97852
24
+	dcw	0x0f64	; 12   3940  0.96191
25
+	dcw	0x0f0e	; 13   3854  0.94092
26
+	dcw	0x0ea7	; 14   3751  0.91577
27
+	dcw	0x0e2f	; 15   3631  0.88647
28
+	dcw	0x0da8	; 16   3496  0.85352
29
+	dcw	0x0d13	; 17   3347  0.81714
30
+	dcw	0x0c72	; 18   3186  0.77783
31
+	dcw	0x0bc5	; 19   3013  0.73560
32
+	dcw	0x0b10	; 20   2832  0.69141
33
+	dcw	0x0a53	; 21   2643  0.64526
34
+	dcw	0x0990	; 22   2448  0.59766
35
+	dcw	0x08c9	; 23   2249  0.54907
36
+	dcw	0x0800	; 24   2048  0.50000
37
+	dcw	0x0737	; 25   1847  0.45093
38
+	dcw	0x0670	; 26   1648  0.40234
39
+	dcw	0x05ad	; 27   1453  0.35474
40
+	dcw	0x04f0	; 28   1264  0.30859
41
+	dcw	0x043b	; 29   1083  0.26440
42
+	dcw	0x038e	; 30    910  0.22217
43
+	dcw	0x02ed	; 31    749  0.18286
44
+	dcw	0x0258	; 32    600  0.14648
45
+	dcw	0x01d1	; 33    465  0.11353
46
+	dcw	0x0159	; 34    345  0.08423
47
+	dcw	0x00f2	; 35    242  0.05908
48
+	dcw	0x009c	; 36    156  0.03809
49
+	dcw	0x0058	; 37     88  0.02148
50
+	dcw	0x0027	; 38     39  0.00952
51
+	dcw	0x000a	; 39     10  0.00244
52
+	dcw	0x0000	; 40      0  0.00000
53
+	dcw	0x000a	; 41     10  0.00244
54
+	dcw	0x0027	; 42     39  0.00952
55
+	dcw	0x0058	; 43     88  0.02148
56
+	dcw	0x009c	; 44    156  0.03809
57
+	dcw	0x00f2	; 45    242  0.05908
58
+	dcw	0x0159	; 46    345  0.08423
59
+	dcw	0x01d1	; 47    465  0.11353
60
+	dcw	0x0258	; 48    600  0.14648
61
+	dcw	0x02ed	; 49    749  0.18286
62
+	dcw	0x038e	; 50    910  0.22217
63
+	dcw	0x043b	; 51   1083  0.26440
64
+	dcw	0x04f0	; 52   1264  0.30859
65
+	dcw	0x05ad	; 53   1453  0.35474
66
+	dcw	0x0670	; 54   1648  0.40234
67
+	dcw	0x0737	; 55   1847  0.45093
68
+	dcw	0x0800	; 56   2048  0.50000
69
+	dcw	0x08c9	; 57   2249  0.54907
70
+	dcw	0x0990	; 58   2448  0.59766
71
+	dcw	0x0a53	; 59   2643  0.64526
72
+	dcw	0x0b10	; 60   2832  0.69141
73
+	dcw	0x0bc5	; 61   3013  0.73560
74
+	dcw	0x0c72	; 62   3186  0.77783
75
+	dcw	0x0d13	; 63   3347  0.81714
76
+	end

+ 91
- 0
Obj_1/Tests/f23p-26_f24p-116.asm View File

@@ -0,0 +1,91 @@
1
+	AREA Signal, DATA, READONLY
2
+	export TabSig
3
+
4
+; Fnor1 = 23.000
5
+;   Ph1 = -26.565
6
+;    A1 = 62.000		env. 50mV/3300mV
7
+; Fnor2 = 24.000
8
+;   Ph2 = -116.565
9
+;    A2 = 1024.000
10
+
11
+; valeurs attendues pour k = 23 :
12
+;	Re	0x0378FDBD
13
+;	Im	0x01BAD0C5	env 0.5 * Re, car tan(26.565) ~= 0.5
14
+;	M2	0x000F0D16	986390
15
+;
16
+; valeurs attendues pour k = 24 :
17
+;	Re	0xE36136DD	env -0.447 * 2^30
18
+;	Im	0x393E61CA	env -2 * Re, car tan(116.565) ~= 2.0
19
+;	M2	0x0FFFF53C	env 2^28
20
+;
21
+; pour les autres valeurs de k sauf les alias de 23 et 24 :
22
+;	M2    < 0x0000000F
23
+
24
+TabSig
25
+	DCW	1646	;  0 0x066e  0.40186
26
+	DCW	3006	;  1 0x0bbe  0.73389
27
+	DCW	1094	;  2 0x0446  0.26709
28
+	DCW	2434	;  3 0x0982  0.59424
29
+	DCW	2465	;  4 0x09a1  0.60181
30
+	DCW	1066	;  5 0x042a  0.26025
31
+	DCW	3018	;  6 0x0bca  0.73682
32
+	DCW	1666	;  7 0x0682  0.40674
33
+	DCW	1610	;  8 0x064a  0.39307
34
+	DCW	3052	;  9 0x0bec  0.74512
35
+	DCW	1071	; 10 0x042f  0.26147
36
+	DCW	2417	; 11 0x0971  0.59009
37
+	DCW	2510	; 12 0x09ce  0.61279
38
+	DCW	1026	; 13 0x0402  0.25049
39
+	DCW	3024	; 14 0x0bd0  0.73828
40
+	DCW	1699	; 15 0x06a3  0.41479
41
+	DCW	1562	; 16 0x061a  0.38135
42
+	DCW	3080	; 17 0x0c08  0.75195
43
+	DCW	1083	; 18 0x043b  0.26440
44
+	DCW	2374	; 19 0x0946  0.57959
45
+	DCW	2553	; 20 0x09f9  0.62329
46
+	DCW	1015	; 21 0x03f7  0.24780
47
+	DCW	2995	; 22 0x0bb3  0.73120
48
+	DCW	1746	; 23 0x06d2  0.42627
49
+	DCW	1531	; 24 0x05fb  0.37378
50
+	DCW	3072	; 25 0x0c00  0.75000
51
+	DCW	1124	; 26 0x0464  0.27441
52
+	DCW	2329	; 27 0x0919  0.56860
53
+	DCW	2568	; 28 0x0a08  0.62695
54
+	DCW	1041	; 29 0x0411  0.25415
55
+	DCW	2948	; 30 0x0b84  0.71973
56
+	DCW	1781	; 31 0x06f5  0.43481
57
+	DCW	1535	; 32 0x05ff  0.37476
58
+	DCW	3033	; 33 0x0bd9  0.74048
59
+	DCW	1170	; 34 0x0492  0.28564
60
+	DCW	2310	; 35 0x0906  0.56396
61
+	DCW	2547	; 36 0x09f3  0.62183
62
+	DCW	1087	; 37 0x043f  0.26538
63
+	DCW	2910	; 38 0x0b5e  0.71045
64
+	DCW	1782	; 39 0x06f6  0.43506
65
+	DCW	1570	; 40 0x0622  0.38330
66
+	DCW	2986	; 41 0x0baa  0.72900
67
+	DCW	1194	; 42 0x04aa  0.29150
68
+	DCW	2327	; 43 0x0917  0.56812
69
+	DCW	2502	; 44 0x09c6  0.61084
70
+	DCW	1127	; 45 0x0467  0.27515
71
+	DCW	2904	; 46 0x0b58  0.70898
72
+	DCW	1749	; 47 0x06d5  0.42700
73
+	DCW	1618	; 48 0x0652  0.39502
74
+	DCW	2959	; 49 0x0b8f  0.72241
75
+	DCW	1181	; 50 0x049d  0.28833
76
+	DCW	2370	; 51 0x0942  0.57861
77
+	DCW	2459	; 52 0x099b  0.60034
78
+	DCW	1138	; 53 0x0472  0.27783
79
+	DCW	2933	; 54 0x0b75  0.71606
80
+	DCW	1702	; 55 0x06a6  0.41553
81
+	DCW	1649	; 56 0x0671  0.40259
82
+	DCW	2967	; 57 0x0b97  0.72437
83
+	DCW	1140	; 58 0x0474  0.27832
84
+	DCW	2414	; 59 0x096e  0.58936
85
+	DCW	2444	; 60 0x098c  0.59668
86
+	DCW	1112	; 61 0x0458  0.27148
87
+	DCW	2980	; 62 0x0ba4  0.72754
88
+	DCW	1668	; 63 0x0684  0.40723
89
+
90
+	END
91
+

+ 136
- 0
Obj_1/Tests/trigo.asm View File

@@ -0,0 +1,136 @@
1
+	AREA Trigo, DATA, READONLY
2
+	export TabSin
3
+	export TabCos
4
+
5
+TabCos
6
+	DCW	32767	;  0 0x7fff  0.99997
7
+	DCW	32610	;  1 0x7f62  0.99518
8
+	DCW	32138	;  2 0x7d8a  0.98077
9
+	DCW	31357	;  3 0x7a7d  0.95694
10
+	DCW	30274	;  4 0x7642  0.92389
11
+	DCW	28899	;  5 0x70e3  0.88193
12
+	DCW	27246	;  6 0x6a6e  0.83148
13
+	DCW	25330	;  7 0x62f2  0.77301
14
+	DCW	23170	;  8 0x5a82  0.70709
15
+	DCW	20788	;  9 0x5134  0.63440
16
+	DCW	18205	; 10 0x471d  0.55557
17
+	DCW	15447	; 11 0x3c57  0.47141
18
+	DCW	12540	; 12 0x30fc  0.38269
19
+	DCW	 9512	; 13 0x2528  0.29028
20
+	DCW	 6393	; 14 0x18f9  0.19510
21
+	DCW	 3212	; 15 0x0c8c  0.09802
22
+	DCW	    0	; 16 0x0000  0.00000
23
+	DCW	-3212	; 17 0xf374 -0.09802
24
+	DCW	-6393	; 18 0xe707 -0.19510
25
+	DCW	-9512	; 19 0xdad8 -0.29028
26
+	DCW	-12540	; 20 0xcf04 -0.38269
27
+	DCW	-15447	; 21 0xc3a9 -0.47141
28
+	DCW	-18205	; 22 0xb8e3 -0.55557
29
+	DCW	-20788	; 23 0xaecc -0.63440
30
+	DCW	-23170	; 24 0xa57e -0.70709
31
+	DCW	-25330	; 25 0x9d0e -0.77301
32
+	DCW	-27246	; 26 0x9592 -0.83148
33
+	DCW	-28899	; 27 0x8f1d -0.88193
34
+	DCW	-30274	; 28 0x89be -0.92389
35
+	DCW	-31357	; 29 0x8583 -0.95694
36
+	DCW	-32138	; 30 0x8276 -0.98077
37
+	DCW	-32610	; 31 0x809e -0.99518
38
+	DCW	-32768	; 32 0x8000 -1.00000
39
+	DCW	-32610	; 33 0x809e -0.99518
40
+	DCW	-32138	; 34 0x8276 -0.98077
41
+	DCW	-31357	; 35 0x8583 -0.95694
42
+	DCW	-30274	; 36 0x89be -0.92389
43
+	DCW	-28899	; 37 0x8f1d -0.88193
44
+	DCW	-27246	; 38 0x9592 -0.83148
45
+	DCW	-25330	; 39 0x9d0e -0.77301
46
+	DCW	-23170	; 40 0xa57e -0.70709
47
+	DCW	-20788	; 41 0xaecc -0.63440
48
+	DCW	-18205	; 42 0xb8e3 -0.55557
49
+	DCW	-15447	; 43 0xc3a9 -0.47141
50
+	DCW	-12540	; 44 0xcf04 -0.38269
51
+	DCW	-9512	; 45 0xdad8 -0.29028
52
+	DCW	-6393	; 46 0xe707 -0.19510
53
+	DCW	-3212	; 47 0xf374 -0.09802
54
+	DCW	    0	; 48 0x0000  0.00000
55
+	DCW	 3212	; 49 0x0c8c  0.09802
56
+	DCW	 6393	; 50 0x18f9  0.19510
57
+	DCW	 9512	; 51 0x2528  0.29028
58
+	DCW	12540	; 52 0x30fc  0.38269
59
+	DCW	15447	; 53 0x3c57  0.47141
60
+	DCW	18205	; 54 0x471d  0.55557
61
+	DCW	20788	; 55 0x5134  0.63440
62
+	DCW	23170	; 56 0x5a82  0.70709
63
+	DCW	25330	; 57 0x62f2  0.77301
64
+	DCW	27246	; 58 0x6a6e  0.83148
65
+	DCW	28899	; 59 0x70e3  0.88193
66
+	DCW	30274	; 60 0x7642  0.92389
67
+	DCW	31357	; 61 0x7a7d  0.95694
68
+	DCW	32138	; 62 0x7d8a  0.98077
69
+	DCW	32610	; 63 0x7f62  0.99518
70
+TabSin
71
+	DCW	    0	;  0 0x0000  0.00000
72
+	DCW	 3212	;  1 0x0c8c  0.09802
73
+	DCW	 6393	;  2 0x18f9  0.19510
74
+	DCW	 9512	;  3 0x2528  0.29028
75
+	DCW	12540	;  4 0x30fc  0.38269
76
+	DCW	15447	;  5 0x3c57  0.47141
77
+	DCW	18205	;  6 0x471d  0.55557
78
+	DCW	20788	;  7 0x5134  0.63440
79
+	DCW	23170	;  8 0x5a82  0.70709
80
+	DCW	25330	;  9 0x62f2  0.77301
81
+	DCW	27246	; 10 0x6a6e  0.83148
82
+	DCW	28899	; 11 0x70e3  0.88193
83
+	DCW	30274	; 12 0x7642  0.92389
84
+	DCW	31357	; 13 0x7a7d  0.95694
85
+	DCW	32138	; 14 0x7d8a  0.98077
86
+	DCW	32610	; 15 0x7f62  0.99518
87
+	DCW	32767	; 16 0x7fff  0.99997
88
+	DCW	32610	; 17 0x7f62  0.99518
89
+	DCW	32138	; 18 0x7d8a  0.98077
90
+	DCW	31357	; 19 0x7a7d  0.95694
91
+	DCW	30274	; 20 0x7642  0.92389
92
+	DCW	28899	; 21 0x70e3  0.88193
93
+	DCW	27246	; 22 0x6a6e  0.83148
94
+	DCW	25330	; 23 0x62f2  0.77301
95
+	DCW	23170	; 24 0x5a82  0.70709
96
+	DCW	20788	; 25 0x5134  0.63440
97
+	DCW	18205	; 26 0x471d  0.55557
98
+	DCW	15447	; 27 0x3c57  0.47141
99
+	DCW	12540	; 28 0x30fc  0.38269
100
+	DCW	 9512	; 29 0x2528  0.29028
101
+	DCW	 6393	; 30 0x18f9  0.19510
102
+	DCW	 3212	; 31 0x0c8c  0.09802
103
+	DCW	    0	; 32 0x0000  0.00000
104
+	DCW	-3212	; 33 0xf374 -0.09802
105
+	DCW	-6393	; 34 0xe707 -0.19510
106
+	DCW	-9512	; 35 0xdad8 -0.29028
107
+	DCW	-12540	; 36 0xcf04 -0.38269
108
+	DCW	-15447	; 37 0xc3a9 -0.47141
109
+	DCW	-18205	; 38 0xb8e3 -0.55557
110
+	DCW	-20788	; 39 0xaecc -0.63440
111
+	DCW	-23170	; 40 0xa57e -0.70709
112
+	DCW	-25330	; 41 0x9d0e -0.77301
113
+	DCW	-27246	; 42 0x9592 -0.83148
114
+	DCW	-28899	; 43 0x8f1d -0.88193
115
+	DCW	-30274	; 44 0x89be -0.92389
116
+	DCW	-31357	; 45 0x8583 -0.95694
117
+	DCW	-32138	; 46 0x8276 -0.98077
118
+	DCW	-32610	; 47 0x809e -0.99518
119
+	DCW	-32768	; 48 0x8000 -1.00000
120
+	DCW	-32610	; 49 0x809e -0.99518
121
+	DCW	-32138	; 50 0x8276 -0.98077
122
+	DCW	-31357	; 51 0x8583 -0.95694
123
+	DCW	-30274	; 52 0x89be -0.92389
124
+	DCW	-28899	; 53 0x8f1d -0.88193
125
+	DCW	-27246	; 54 0x9592 -0.83148
126
+	DCW	-25330	; 55 0x9d0e -0.77301
127
+	DCW	-23170	; 56 0xa57e -0.70709
128
+	DCW	-20788	; 57 0xaecc -0.63440
129
+	DCW	-18205	; 58 0xb8e3 -0.55557
130
+	DCW	-15447	; 59 0xc3a9 -0.47141
131
+	DCW	-12540	; 60 0xcf04 -0.38269
132
+	DCW	-9512	; 61 0xdad8 -0.29028
133
+	DCW	-6393	; 62 0xe707 -0.19510
134
+	DCW	-3212	; 63 0xf374 -0.09802
135
+
136
+	END

Loading…
Cancel
Save