-
Datei
SPWM.c
// Mode 10 TCCR1B |= (1<<WGM13); // Mode 10 TCCR1B |= (1<<CS10); // Prescaler set to 1 } /* SinusCalcluation calculates the timer (CTC mode) for the discrete sine wave as well as the current value for the sine wave Timer2 is used. It is an 8bit timer and requests ISR every 78.5us. OCR2 value is therefore
in „SPWM auf Atmega8, bitte um Feedback hinsichtlich Optimierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SPWM.c
(1<<WGM13); // Mode 10 TCCR1B |= (1<<CS10); // Prescaler set to 1 TIMSK |= (1<<TOIE1); } /* SinusCalcluation calculates the timer (CTC mode) for the discrete sine wave as well as the current value for the sine wave Timer2 is used. It is an 8bit timer and requests ISR every 78.5us. OCR2 value is therefore
in „SPWM auf Atmega8, bitte um Feedback hinsichtlich Optimierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
nonlinear_restoring_k_mems_var_Uac.m
============================= % Differentialgleichung mit nichtlinearer Rueckstellkraft und % Sinuserregung. % Die Rueckstellkraft F_restoring(x) wird aus dem Look-up-Table 'Frest' % durch lineare Interpolation an der Stelle x gewonnen. % ==============================================================
in „Probleme mit matlab, Attempted to access zahl(1); index out of bounds because numel(zahl)=0.“ · PC Hard- und Software ·
-
Datei
nonlinear_restoring_k_mems_var_Uac.m
============================= % Differentialgleichung mit nichtlinearer Rueckstellkraft und % Sinuserregung. % Die Rueckstellkraft F_restoring(x) wird aus dem Look-up-Table 'Frest' % durch lineare Interpolation an der Stelle x gewonnen. % ==============================================================
in „Probleme mit matlab, Attempted to access zahl(1); index out of bounds because numel(zahl)=0.“ · PC Hard- und Software ·
-
Bild
Oszilloskop-Screenshot einer Sinuswelle
WaveForms (new workspace) Workspace Control Settings Window Help Welcome Help Wavegen 1 Scope 1 Mode: Repeated Auto Source: Channel 1 Condition: Rising Level: 350 mV Hyst.: Auto Type: Edge Length: 0 s HoldOff: 0 s LCondition: Less C1 64 samples at 100 MHz | 2023-07-08 07:33:50.766 C1: 655.8 mV X1: 25.631 ns Time 0 s Position: Base: Average: Overs.: Samples: 64 Rate: 100 MHz Options Add Channel Channel 1 (1x) Offset: 0 V Range: 500 mV/div Channel 2 (2x) Discovery2 C SN:210321B3DE68 100 MHz Status: OK W3.20.1
in „Analog Discovery heute Freitag für 414“ · Mikrocontroller und Digitale Elektronik · · Oszi-Bilder
-
Datei
PWM-Sinus.asm
anliegende Spannung in einen ; 10-Bit-Wert um ; die 10 Bit des Wertes steuern die Frequenz eines Sinusses ; der mit einem DAC am PORTB ausgegeben wird ; ; Prozessortakt: 20 MHz ; Eingangsspannung: 0V ... 5V (Vss ... Vdd) ; ;******************************************************************************
in „Theorie Wechselrichter 12V DC -> 230V AC“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
Tiny_50Hz.c
*/ #define SPEED_CONTROLLER_MAX_INPUT 256 #define MIN_DEAD_TIME 8 //! Waveform status flag for sinusoidal driving. #define WAVEFORM_SINUSOIDAL 1 //! Waveform status flag used in transitions between different types of driving. #define WAVEFORM_UNDEFINED 3 // how often do we update the ADC values #define
in „Theorie Wechselrichter 12V DC -> 230V AC“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
main.c
timer1 64 for (;;) { //endlosschleife t_ein = (31*sin(2*M_PI*(1/1250)*t_akt))+94; //generieren von sinuswerten im bereich [63;125] // für 63*16µs=1ms und 125*16µs=2ms if (t_akt <= t_ein) PORTA = 0xff; //fuer t_ein <= t_akt porta high else PORTA = 0x00; //sonst low if (t_akt == 1250) //nach 20ms das ganze
in „sinusförmige bewegung an modelbauservo“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SINUS_COSINUS.asm
FUNKTION_SINUS_270_w brsh FUNKTION_SINUS_270_groesser FUNKTION_SINUS_270_w: cpi temp1, low(270) ; LOW brlo FUNKTION_SINUS_270_FERTIG breq FUNKTION_SINUS_270_FERTIG brsh FUNKTION_SINUS_270_groesser FUNKTION_SINUS_
in „SINUS - COSINUS / KOSINUS - BEISPIEL (Assembler) ATmega8“ · Projekte & Code ·
-
Datei
DG24128.asm
TEMP_A ;********************************************************************* load_p Y,TABELLE ; Sinuswerte ins Ram zum Testen load_p Z,(2*sinus) ldi TEMP_A,(SPALTEN*8)+1 init_loop_0: ldi TEMP_B,32 ; Anzahl Werte init_loop_1: dec TEMP_A breq init_loop_end push TEMP_A lpm TEMP_A,Z+ st Y+,TEMP_A pop TEMP_A
-
Datei
DG24128.asm
gezeichnet werden. Hor.Line und Vert. Line sind vor allem als Cursor gedacht. */ load_p Y,TABELLE ; Sinuswerte ins Ram zum Testen ldi TEMP_B,(SPALTEN*FONT_SIZE)+1 clr TEMP_A init_loop_0: load_p Z,(2*sinus) init_loop_1: dec TEMP_B breq init_loop_end adiw Z,1 ; nur jeden 2. Wert push TEMP_A lpm TEMP_A,Z+ lsr
-
Datei
main.c
Frequenzwerte*/ double fB[N], max; /*Betrag*/ int d[G], array; /*Feld für Dualzahlen*/ double si[N], co[N]; /*sinus/cosinus-Tabellen*/ double tr; int la,z,a,r,r_temp,ar,v; /*Hilfsvariablen*/ double z1,z2,z3,z4,xr,xi,yr,yi; /*Hilfsvariablen*/ int c,i,j,l,m,k; /*Laufindexe*/ tr = 2*PI/N; /*Sinus/Cosinus-Tabellen anlegen
in „Problem bei Cosinus Berechnung mit TMS320C5x“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
Sinussignal.c
#include <stdio.h> #include <C8051F300.h> unsigned int Nulldurchgang=0; //Variable for counting preset ADC position unsigned int Wartedauer=0; //Variable for the delay time int Timerinhalt=0, Ton=0; //Variable to read out the Timer1 and freq. loop unsigned int Alarmton[11]={2400, 1060, 1160, 1270, 1400, 1530, 1670, 1830, 2000, 2200, 2600}; float Frequenz[5]; //Variable for frequency of the first 5-tone-loop int Alarm[2]=0; //Alarm enable bit unsigned int Alarmfolge[2][5]={{2,7,1,10,7},{10,10,10,10,10}}; //Alarm 5-tone setup //Keine 2 gleichen Zahlen hintereinander => 2. Zahl wird zur 10, z.B. {2,10,2,10,2
in „Silabs 8051F300: Quellcodeproblem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sinus.c
potenzieren (zaehler)*/ double fak = 1.0; /*Die Fakultaet (Zaehler)*/ double sin = 0.0, sinold = 1.0; /*Sinus variable und sinus alt um schleife zu beenden*/ double vorzeichen = 1.0; /*variable fürs Vorzeichen (1 oder -1)*/ int z = 1, k = 1, v = 0; /*Zähler der Schleifen*/ sin=x; while(sin != sinold) { sinold
in „Sinus Rek“ · Softwareentwicklung ·
-
PDF
opa4348_1_.pdf
COMMON-MODE VOLTAGE RANGE +5V supply with a 100kΩ load connected to V /2. The input is 2 S a 5Vp-p sinusoid. Output voltage is approximately 4.98Vp-p. 1.5 Power-supply pins should be bypassed with 0.01µF ceramic V 1 capacitors. ( e 0.5 t o 0 t s –0.5 G = +1V/V, S = +5V O –1 Output (Inverted on Scope) V–
in „ADC im Messbereich kleiner 1V“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Herleitung.pdf
und folgt der Beziehung sinφ · sinφ Mit · und · ergibt sich · sinφ Das Schaubild ist damit die Sinusfunktion: Beschleunigung a in Abh. vom Auslenkwinkel T aT [g] 0,8 0,6 0,4 0,2 0 φ [°] ‐45 ‐40 ‐35 ‐30 ‐25 ‐20 ‐15 ‐10 ‐0,2 0 5 10 15 20 25 30 35 40 45 ‐0,4 ‐0,6 ‐0,8 Der Maximalwert wäre bei 90° genau 1g
in „Winkelsensor, Drehgeber etc“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
slau056e.pdf
benefit from using the DMA controller with the DAC12. For example, an application that produces a sinusoidal waveform may store the sinusoid values in a table. The DMA controller can continuously and automatically transfer the values to the DAC12 at specific intervals creating the sinusoid with zero CPU
in „MSP430 LCD Controller“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
slau056e.pdf
benefit from using the DMA controller with the DAC12. For example, an application that produces a sinusoidal waveform may store the sinusoid values in a table. The DMA controller can continuously and automatically transfer the values to the DAC12 at specific intervals creating the sinusoid with zero CPU
in „MSP430FG439 mit LCD“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
stoerbeeinfICEC1_d.pdf
dass es sich um Frequenzspektrum stark begrenzt (auf wenige 100Hz). eine fast reine, gedämpfte sinusförmige Schwingung mit Damit wird auch die Abstrahlung von Störimpulsen - einer Frequenz von ca.125Hz handelt. Das Relais fällt Leiter- als auch Nichtleiter gebunden - vermieden. S nach Standardabfallzeit
in „2P-Rails 230V Ausgabeeinheit“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
LMC6482.pdf
17 uses a single supply to half wave FIGURE 19. Large Compliance Range Current Source rectify a sinusoid centered about ground. R lImits current into the amplifier caused by the input voltage exceeding the supply voltage. Full wave rectification is provided by the cir- cuit in Figure 18. 16 Typical Single-Supply
in „Gleichrichteschaltung mittels op“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
LMC6482.pdf
17 uses a single supply to half wave FIGURE 19. Large Compliance Range Current Source rectify a sinusoid centered about ground. R lImits current into the amplifier caused by the input voltage exceeding the supply voltage. Full wave rectification is provided by the cir- cuit in Figure 18. 16 Typical Single-Supply
in „Leistungsaufnahme 220V erkennen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
D_CH23103.pdf
Spannungsspitzen Nichtlineare Lasten erzeugen zuneh- IEC 61000-4-4 (±2 kV): Kategorie B. mend nicht-sinusförmige Wellenformen, Festigkeit gegen leitungsgebundene Störungen IEC 61000-4-6 (10 V AM bei die Gleichstromanteile enthalten. Hier bietet die Serie LTSR eine gute Alternati- 1 kHz, 80 % (150 kHz-80 MHz
in „LTS25-NP Stromwandler am ATmega -> Spannungsverstärkung muss wohl her“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
datasheet.pdf
Non-repetitive surge peak on-state Fig. 7: Relative variation of gate trigger current, current for a sinusoidal pulse with width holding current and latching current versus tp < 10ms, and corresponding value of I²t. junction temperature (typical values). IGT,IH,IL[Tj] / IGT,IH,IL [Tj=25°C] ITSM (A), I²t (A²s
in „Kühlkörper für Triac auswählen“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
slod006b.pdf
generators, digital systems, and com- munication systems. Two general classes of oscillators exist: sinusoidal and relaxation. Sinusoidal oscillators consist of amplifiers with RC or LC circuits that have adjustable oscillation frequencies, or crystals that have a fixed oscillation frequency. Relaxation oscillators
in „Einfache Verstaerkerschaltung mit OP“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
cic.pdf
Virtex-II Platform FPGA Handbook, 2000. block memory is used to store one quarter of a cycle of a sinusoid. The dual-port memory enables both the in-phase [4] Peled and B. Liu, “A New Hardware Realization of Digi- and quadrature components of the local oscillator to be tal Filters”, IEEE Trans. on Acoust
in „Probleme mit CIC Filter“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
PDF
117MHz_sinus_mit_W2022a_Hayo_0.pdf
0 . e o r b g . u 0 ö a ul H r W d ! - g d z u e a e w Q e o n k 1 d e 1 i e e 8 / c b A V r n e 0 t l l d 1 e t z e a i w e l n n o e n d n n n 2 i n t i ( h r t l e s C d r s - i e g d O D S e r g d V H s e u e m M e ö e e n 1 l r M ft e i n V c a e m i t u i i i A o e d / m / 2 n : r n V n V 2 ag n k f 0 f 0 W nu l h r 2 r 2 l s ff i e b e e e u ) b ) b W M A 1 Ü 2 Ü
in „Wittig(welec) DSO W20xxA Hardware“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
aufgaben.pdf
80 pF 10k Gegeben sei eine Operationsverstärkerschaltung mit 3 Eingangsspannungsquellen: den Sinus-Spannungen U sin1 und U sin2 , sowie einer Gleichspannung von 10V. U sin1 100K 1.1. Berechnen Sie die obere und untere Grenzfrequenz für die Verstärkung der 1,6 µF 10K beiden Sinusspannungen. _ 1.2. Geben
in „Aufgaben zu OPV“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
aufgaben.pdf
80 pF 10k Gegeben sei eine Operationsverstärkerschaltung mit 3 Eingangsspannungsquellen: den Sinus-Spannungen U sin1 und U sin2 , sowie einer Gleichspannung von 10V. U sin1 100K 1.1. Berechnen Sie die obere und untere Grenzfrequenz für die Verstärkung der 1,6 µF 10K beiden Sinusspannungen. _ 1.2. Geben
in „Aufgaben zu OPV“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
Oszi-abtastrate.pdf
- sung für die jeweilige Anwendung optimieren e lässt. Gilt es beispielsweise, einextremstabiles, sinus- y förmigesSignalzuanalysieren,reichtunterUmstän- a denbereitseineSpeichertiefevon500Punkten.Sol- a len hingegen die Ursachen von Timing-Anoma- a lien in einem komplizierten digitalen Datenstrom k
in „Wittig(welec) DSO W20xxA Hardware“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Cordic_Lindlbauer2001.pdf
frequency domain. Figure 1.1: Time-domain additive synthesis In either case the sinusoids are additively accumulated to create the output [3]. Theoretically any sound can be reproduced by proper control of the sinusoids over time. However, all the control parameters plus the sinusoidal
in „Cordic-Algorithmus in AVR-Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
W20xxA_Spectrum_Analysis_de.pdf
Fourier-Transformation (DFT) erheblich zu reduzieren. Dazu werden die Symmetrieeigenschaften der Sinus- und Cosinus- funktion ausgenutzt. Die DFT läßt sich berechnen mit N−1 . -j(2 πmn /N) Fm = ∑ n e für m = 0,1,2,....,N-1 n=0 Der invariante Teil des Exponentialterms wird zur Vereinfachung durch W N
in „Wittig(welec) DSO W20xxA Open Source Firmware“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
KT_Objekterkennung_Kap10.pdf
Spannungsunterbrechungen Stoßspannungsfestigkeit EN 60947-5-2/IEC 60947-5-2 Umweltsimulation Schwingen, sinusförmig EN 60068-2-6/IEC 60068-2-6 Schocken EN 60068-2-27/IEC 60068-2-27 Dauerschocken EN 60068-2-29/IEC 60068-2-29 Ex-Bereich Elektrische Betriebsmittel für explosionsgefährdete EN 50014 Bereiche – allgemeine
in „Drehzahlmessung mit induktivem Näherungsschalter“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
161042-da-01-ml-GBI25B_SI_BRUECKENGLEICHR_de_en.pdf
forward surge current, 50/60 Hz half sine-wave TA= 25°C IFSM 300/340 A Stoßstrom für eine 50/60 Hz Sinus-Halbwelle Rating for fusing, t < 10 ms TA= 25°C i t 450 A s Grenzlastintegral, t < 10 ms Operating junction temperature – Sperrschichttemperatur T j -50...+150°C Storage temperature – Lagerungstemperatur
in „Gleichrichter parallel schalten“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
D_CH23103.pdf
Spannungsspitzen Nichtlineare Lasten erzeugen zuneh- IEC 61000-4-4 (±2 kV): Kategorie B. mend nicht-sinusförmige Wellenformen, Festigkeit gegen leitungsgebundene Störungen IEC 61000-4-6 (10 V AM bei die Gleichstromanteile enthalten. Hier bietet die Serie LTSR eine gute Alternati- 1 kHz, 80 % (150 kHz-80 MHz
in „Messung mit Stromwandler LTSR 15-NP“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
LM3404.pdf
Z assumes that the shape of the inductor C Δv SNS = ΔiFx R SNS ripple current is approximately sinusoidal. 13 www.national.com V H Small values of C that do not significantly reduce Δi can 4 O F 4 also be used to control EMI generated by the switching action ID= (1 – D) x IF 3 oftheLM3404/04HV.EMIreductionbecomesmoreimportant
in „Extreme Störungen LM3404“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bsp.c
PWM-lookuptable not nice but functional and lazy to programm */ for(index=0; index<1024; index++){ sinus[index]=(unsigned int)(fabs(sin((double)M_PI/1024*index))*65535); } initTimer(); //everything has been configured, set LED that indicates that everything has been configured GPIO_SetBits(B_LED_PORT,B_LED_PIN
in „Konfiguration eines Timers auf dem STM32F100RB6“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
index=0; initled(); initSysTickHandler(1); initbutton(); for(index=0; index<1024; index++){ sinus[index]=(unsigned int)(fabs(sin((double)M_PI/1024*index))*65535); } initTimer(); GPIO_SetBits(B_LED_PORT,B_LED_PIN); while(1); return -1; } void initbutton ( void ){ GPIO_InitTypeDef button_struct; EXTI_InitTypeDef
in „Konfiguration eines Timers auf dem STM32F100RB6“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
avr/io.h> #include <inttypes.h> #include "mmc_lib.h" #include "vs1001.h" #include "fat.h" void Sinustest(void); volatile unsigned char trknumber; int main(void) { uint32_t filehandle[4]; //SD Init if(mmc_init() == 0) {} else { while(1); } //Fat Init fat_init();//Fat Init //Mp3 Decoder init vs1001_init_io(); vs1001_init_chip(); //Sinustest(); //files öffnen filehandle[0] = fopen("TESTFIL1MP3"); //mini playlist ändern oder erweitern etc., max 4 files im moment filehandle[1] = fopen("TESTFIL2MP3"); filehandle[2] = fopen("TESTFIL3MP3"
in „mp3-Player mit Atmega8 und vs1011e spielt nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
vs1001.c
buf[2]; buf[0] = (((uint16_t)left) << 8) | (uint16_t)right; vs1001_write(11, 1, buf); } void Sinustest(void) { uint16_t buf[2]; delay(5000); buf[0] = 0x0820; //enable testmode vs1001_write(0,1,buf); delay(5000); vs1001_send_data(0x53); delay(5000); vs1001_send_data(0xEF); delay(5000); vs1001_send_data
in „mp3-Player mit Atmega8 und vs1011e spielt nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
normaler, konstanter String im Flash char noch_ein_Flash_String[] PROGMEM = "Iam Nr. two"; // Sinusfunktion; Eine volle Periode = 128 Punkte uint8_t sinus[128] PROGMEM = { 16, 17, 18, 18, 19, 20, 21, 21, 22, 23, 24, 24, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32
in „LCD 162D mit ATmega8535“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
display_t.cpp
case 12: // RMS -> BF new calculation #014 { // BF RMS calculation with 1.414 is valid only for sinusoid signals! Calculation must be: // sum squared values -> calculate the mean -> calculate the square root => result is the Root Mean Square int square=0, value=0, rms=0, n, i, lVirtualZero=0, sum=0;
in „Wittig(welec) DSO W20xxA Open Source Firmware (Teil4)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
44a_sinus_entchen_5.c
uint16_t dauer; }; struct notendauer entchen[3] = { {c,1200}, {d,1200}, {e,500} }; // einfache Sinuswelle in 256 diskreten Werten const uint8_t sinewave[1][256] PROGMEM= { { 0x80,0x83,0x86,0x89,0x8c,0x8f,0x92,0x95,0x98,0x9c,0x9f,0xa2,0xa5,0xa8,0xab,0xae, 0xb0,0xb3,0xb6,0xb9,0xbc,0xbf,0xc1,0xc4,0xc7,0xc9,0xcc
in „Sinus sehr seltsam“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Rechner.c
define SET_CURSOR_HOME 2 enum MathSign { keines, plus, minus, geteilt, mal, hoch, wurzel, fakultaet, sinus, cosinus, tangens, arcSinus, arcCosinus, arcTangens, hsinus, hcosinus, htangens, klammerAuf, klammerZu }; struct SignAndNumber { volatile enum MathSign sign; volatile double *number; }; const uint8
in „Routine, die Arrays von Structs kopiert funktioniert unerklärlicherweise nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Rechner.c
define SET_CURSOR_HOME 2 enum MathSign { keines, plus, minus, geteilt, mal, hoch, wurzel, fakultaet, sinus, cosinus, tangens, arcSinus, arcCosinus, arcTangens, hsinus, hcosinus, htangens, klammerAuf, klammerZu }; struct SignAndNumber { enum MathSign sign; double number; }; const uint8_t smallTwo[] PROGMEM
in „Routine, die Arrays von Structs kopiert funktioniert unerklärlicherweise nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Rechner.c
sizeof(x) / sizeof(*x)) enum MathSign { keines, plus, minus, geteilt, mal, hoch, wurzel, fakultaet, sinus, cosinus, tangens, arcSinus, arcCosinus, arcTangens, hsinus, hcosinus, htangens, klammerAuf, klammerZu }; struct SignAndNumber { enum MathSign sign; double number; }; const uint8_t smallTwo[] PROGMEM
in „Routine, die Arrays von Structs kopiert funktioniert unerklärlicherweise nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
normaler, konstanter String im Flash char noch_ein_Flash_String[] PROGMEM = "Iam Nr. two"; // Sinusfunktion; Eine volle Periode = 128 Punkte uint8_t sinus[128] PROGMEM = { 16, 17, 18, 18, 19, 20, 21, 21, 22, 23, 24, 24, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32
in „Display nach Tutorial Probleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
normaler, konstanter String im Flash char noch_ein_Flash_String[] PROGMEM = "Iam Nr. two"; // Sinusfunktion; Eine volle Periode = 128 Punkte uint8_t sinus[128] PROGMEM = { 16, 17, 18, 18, 19, 20, 21, 21, 22, 23, 24, 24, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 30, 30, 31, 31, 31, 32, 32, 32, 32, 32, 32
in „Display nach Tutorial Probleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
spi2in.vhd
-1 downto 0); -- Receive Data MISO_C : in STD_LOGIC; -- ADC Cosinus MISO_S : in STD_LOGIC; -- ADC Sinus SCLK : out STD_LOGIC; -- SPI Clock SS : out STD_LOGIC; -- Slave Select TX_Start : in STD_LOGIC; -- Transfer Init Flag TX_Done : out STD_LOGIC; -- Treansfer Finish Flag clk : in STD_LOGIC -- Oscillator
-
Datei
Versuch_Phasenverschiebung.txt
\interrupt.h> #include <math.h> #define F_CPU 8000000 uint8_t zaehler=0; uint8_t oi=0; double sinus_grad=0; double sinus_rad=0; uint8_t Phasenverschieber=0; uint16_t zeit=0; double sinus_rad_2=0; //-------------------eigene Defininitionen---- #define Schaltstufe_1 OCR0A #define Schaltstufe_2 OCR0B //
in „Sinus Phasenverschiebung mittels PWM (C)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sinus_pwm.c
#define FALSE 0 #define TRUE !FALSE #include <avr/io.h> #include <avr/interrupt.h> #include <math.h> // program made for a clock of 16MHz // define a vector for sine output! int main( void ) { float pi=3.141592653; int i, sine[91]; for(i=0;i<=90;i++) sine[i] = sin(pi/180 * i)*256; // this will show you the principles of usage of fast pwm on AVR Timers // OCR1A_value (pwm_value) = ((duty cycle in %)/100) *256 // the output frequency can be calculated as follows: // F_out = crystal frequency /(prescaler*256) // / This is referring to 8Bit pwm for 9Bit pwm use 512 and for 10Bit pwm use 1024 instead
in „kurze Frage zur AVR fast pwm sinus-ausgabe?!“ · Mikrocontroller und Digitale Elektronik ·