forked from acco/chti23
copie moodle 11 Avril
This commit is contained in:
parent
da46bbc126
commit
0d64629a88
10 changed files with 38 additions and 20 deletions
BIN
MoodleDocs/FondamentauxASM.pdf
Normal file
BIN
MoodleDocs/FondamentauxASM.pdf
Normal file
Binary file not shown.
BIN
MoodleDocs/PM0056.pdf
Normal file
BIN
MoodleDocs/PM0056.pdf
Normal file
Binary file not shown.
BIN
MoodleDocs/PjtKEIL_StepSon.zip
Normal file
BIN
MoodleDocs/PjtKEIL_StepSon.zip
Normal file
Binary file not shown.
38
MoodleDocs/Signal.m
Normal file
38
MoodleDocs/Signal.m
Normal file
|
@ -0,0 +1,38 @@
|
|||
clc
|
||||
clear
|
||||
|
||||
N = input('Nombre d''échantilllons pour ce signal : ');
|
||||
Frel = input('Fréquence normalisée (nombre de périodes dans la durée totale) : ');
|
||||
Ph0 = input('Phase a l''origine (en degrés) : ');
|
||||
Ph0 = Ph0 * pi / 180.0; % a present en radian
|
||||
|
||||
Ampl = 2048;
|
||||
Offset = 2048;
|
||||
%% Création du fichier .asm
|
||||
|
||||
fileID = fopen(['Signal.asm'], 'w');
|
||||
fprintf(fileID,'\tAREA Signal, DATA, READONLY\n');
|
||||
fprintf(fileID,'\texport LeSignal\n');
|
||||
|
||||
fprintf(fileID,'LeSignal\n');
|
||||
|
||||
for i = 1: N
|
||||
% fonction a modifier en fonction des besoins
|
||||
Sig(i) = Offset + Ampl * cos( 2*pi*Frel*(i-1)/N + Ph0 );
|
||||
% arrondi
|
||||
iSig = int16(Sig(i));
|
||||
% bornage du signal similaire a la sortie brute de l'ADC 12 bits
|
||||
if ( iSig < 0 )
|
||||
iSig = 0;
|
||||
end
|
||||
if ( iSig > 4095 )
|
||||
iSig = 4095;
|
||||
end
|
||||
|
||||
fprintf(fileID,'\tDCW\t0x%04x\t; %2d %4d %7.5f\n',iSig, i-1, iSig, double(iSig) / 4096.0 );
|
||||
|
||||
end
|
||||
|
||||
fprintf(fileID,'\tEND\n');
|
||||
fclose(fileID);
|
||||
plot(Sig);
|
BIN
MoodleDocs/StepDebute_1.pdf
Normal file
BIN
MoodleDocs/StepDebute_1.pdf
Normal file
Binary file not shown.
BIN
MoodleDocs/StepDebute_2.pdf
Normal file
BIN
MoodleDocs/StepDebute_2.pdf
Normal file
Binary file not shown.
BIN
MoodleDocs/Step_DFT.pdf
Normal file
BIN
MoodleDocs/Step_DFT.pdf
Normal file
Binary file not shown.
BIN
MoodleDocs/Step_Jeu_Son.pdf
Normal file
BIN
MoodleDocs/Step_Jeu_Son.pdf
Normal file
Binary file not shown.
0
MoodleDocs/liensUtiles.txt
Normal file
0
MoodleDocs/liensUtiles.txt
Normal file
20
rapport.md
20
rapport.md
|
@ -1,20 +0,0 @@
|
|||
# Rapport CHTI de NOM1 et NOM2 grpX
|
||||
|
||||
|
||||
Si vous éditez ce rapport avec visual code studio faites CTRL+K V pour visualiser.
|
||||
|
||||
> TODO Changez vos nomsdans le titres
|
||||
|
||||
Un exemple de [lien interne vers README](README)
|
||||
|
||||
D'équation latex $\hat{S}[n] = \sum s[k] e^{i.\omega.k T_e. n \frac{F_e}{M}}$
|
||||
|
||||
Ce lien externe [vers une doc de markdown](https://www.markdownguide.org)
|
||||
|
||||
|
||||
# Signal
|
||||
|
||||
|
||||
# Elec
|
||||
|
||||
# Logiciel
|
Loading…
Reference in a new issue