TP Son fini

This commit is contained in:
Boyu Fu 2023-04-12 10:57:42 +02:00
parent 88d7cf7a03
commit 441e87624d
2 changed files with 7 additions and 41 deletions

View file

@ -10,7 +10,6 @@
;Section RAM (read write):
area maram,data,readwrite
Offset equ 32768
SortieSon equ 0
Index equ 0
@ -29,7 +28,7 @@ Index equ 0
; écrire le code ici
CallBackSon proc
CallBackSon proc
ldr r0, =Index
ldr r1, [r0]
@ -45,17 +44,17 @@ CallBackSon proc
ldr r3, =Son
ldrsh r3, [r3,r1,LSL #1]
add r3, #Offset
mov r0, #360
add r3, #0x8000
mov r0, #0x2CF
mul r3,r0
ldr r0,=Offset
udiv r3, r0
mov r0,#0xFFFF
udiv r3,r0
ldr r0, =SortieSon
str r3, [r0]
mov r0, r3
bl PWM_Set_Value_TIM3_Ch3
FIN_Son

View file

@ -153,40 +153,7 @@
<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>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>53</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\Src\GestionSon.s</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
<Bp>
<Number>1</Number>
<Type>0</Type>
<LineNumber>52</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>134220476</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>1</BreakIfRCount>
<Filename>.\Src\GestionSon.s</Filename>
<ExecCommand></ExecCommand>
<Expression>\\StepSon\Src/GestionSon.s\52</Expression>
</Bp>
</Breakpoint>
<Breakpoint/>
<MemoryWindow1>
<Mm>
<WinNumber>1</WinNumber>