-
PDF
ATMEGA8_DATENBLATT.pdf
correct PWM mode, the compare units allow generation of PWM wave- forms on the OC1x pins. Setting the COM1x1:0 bits to 2 will produce a non-inverted PWM and an inverted PWM output can be generated by setting the
in „I2C/TWI TWBR > 10 warum?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Sinus.c
8MHz/500Hz = 16.000 Overflows/Periode // z.B. 128 Bit: 16.000 / 128 Bit = 125 Overflows / Bit } void pwm_init(void) { /* PWM-Output: OC0B */ /* OC0B -> ATmega88 PD5 */ /* OC0A -> ATmega88 PD6 */ TIMSK0 = (1<<OCIE0B); // Output Compare Interrupt 0B einschalten /* !! nur bei manueller PWM nötig !! */ TCCR0A = (1<<WGM00);// | (1<<COM0B1);//--> Manuell, siehe ISR // Phase Correct PWM-Mode (WGM) // Compare Match Output Mode: Timer 0: // Ausg. B enabled Clear on Comp. up-counting, set down-counting (COM0B) TCCR0B = (1<<CS00) | (1<<WGM02); // WGM02 =1 -> Phase Correct PWM aber: Max
in „Stabilitätsproblem oder Verständnisproblem bei Timer (PWM) ATmega88“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD.bas
swstack = 16 $framesize = 48 'Motoren anhalten 'PD4(OC1B)= Motor rechts und 'PD5(OC1A)= Motor links sind PWM-gesteuert Motor_r_pwm Alias Portd.4 : Config Motor_r_pwm = Output : Motor_r_pwm = 0 Motor_l_pwm Alias Portd.5 : Config Motor_l_pwm = Output : Motor_l_pwm = 0 'Schieberegister 74HC595 'aus Datenblatt
in „LCD DEM20485 in gerade Zeile springen (c't-Bot)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
on_off_25.c
void init_interrupts(void) { timer_flag = 0; TCCR0A = BIT(COM0A1) + BIT(WGM01) + BIT(WGM00); // Fast PWM OCR0A = 25; // mit 10% PWM, Einschaltrampe ca. 10ms TCCR0B = 0x02; // 8 Vorteiler TIFR = BIT(OCIE0A); // flag löschen TIMSK |= BIT(OCIE0A); // int freigeben starte_adc(); // bei Bedarf } void sperre_interrupts(void) { TIMSK = 0; // T0 abschalten ADCSRA = 0; // ADC abschalten DDRB &= ~BIT(PWM_OUT); // Ausgang auf '0' PORTB &= ~BIT(PWM_OUT); // Ausgang auf '0' PORTB |= BIT(EIN_AUS_SIGNAL); // Ausgang auf '1' = passiv ! } int16_t main(void) { CLKPR = 0x80; CLKPR = 0x0; // Vorteiler / 1 CPU-Takt
in „EIN-AUS mit Taster per Interrupt, ATtiny25 o.ä.“ · Projekte & Code ·
-
PDF
AS1130_Datasheet_EN_v5__1_.pdf
.. ..... Frames) On/Off Frame 34 0x23 0 0 1 0 0 0 1 1 On/Off Frame 35 0x24 0 0 1 0 0 1 0 0 Blink & PWM Set 0 0x40 0 1 0 0 0 0 0 0 Blink & PWM Set 1 0xFD 1 1 1 1 1 1 0 1 0x41 0 1 0 0 0 0 0 1 Blink & PWM Blink & PWM Set 2 0x42 0 1 0 0 0 0 1 0 Information Sets (up to Blink & PWM Set 3 0x43 0 1 0 0 0 0 1
-
PDF
SSD1963_1.1.pdf
the PWM configuration PWMF[7:0] : Set the PWM frequency in system clock (POR = 00000000) PWM signal frequency = PLL clock / (256 * PWMF[7:0]) / 256 PWM[7:0] : Set the PWM duty cycle (POR = 00000000) PWM duty cycle = PWM[7:0] / 256 for DBC disable (0xD0] A0 = 0 If DBC enable (0xD0] A0 = 1, these parameter will be ignored Note : PWM always 0 if PWM[7:0] = 00h Figure 9-19: PWM signal Period = 1/ PWM Freq PWM PWM[7:0]/
in „TFT- Ansteuerung ET0350G0DH6 (Glyn) mit HX8238 LCD Driver und Microchip Graphic Lib“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
philips_chassis_qfu2.1e_la.pdf
1% OUT1 G 23 PWM2-G2 23 PWM1-G2 24 PWM2-B2 3 1K5 1% OUT1 G 24 PWM1-B2 B 4 B 7 5 R PWM2-R1 6 9108 R 7 PWM1-R1 OUT2 G 8 PWM2-G1 7 1 OUT2 G 8 PWM1-G1 2 B 9 PWM2-B1 9 PWM1-B1 8 B 10 9 10 R 11 10 R OUT3 G 11 OUT3 G 11 B
in „Netzteil Philips LED TV reparieren??“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
db_atmega8.pdf
correct PWM mode, the compare units allow generation of PWM waveforms on the OC1x pins. Setting the COM1x1:0 bits to 2 will produce a non- inverted PWM and an inverted PWM output can be generated by setting the
in „ADC-Input und Auswahlverfahren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dds.c
// - Setzt die PWM-Pulsbreite entsprechend // --------------------------------------------------------------------- void isr_timer () interrupt 0x21 { set_analog_output(lut[lut_index>>11]); lut_index += (get_analog_input
in „DDS-Direct Digital Synthesis“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Phase.c
zero cross // PB7 is output for trigger pulses // Trigger delay is created using the Timer 0 in Fast PWM Mode 3, timer // is reset on each zero cross for synchronization with AC frequency // Timer clock < 2 * AC frequency * 256 (8 bit), so a pwm cycle is always // longer than a half wave // Low pwm threshold
in „AVR PWM-Timer zurücksetzen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVRootloader.asm
m8Adef.inc" ; ATmega8A ;.include "m8def.inc" ; ATmega8 ;.include "m8HVAdef.inc" ; ATmega8HVA ;.include "pwm216def.inc" ; AT90PWM216 ;.include "pwm2Bdef.inc" ; AT90PWM2B ;.include "pwm2def.inc" ; AT90PWM2 ;.include "pwm316def.inc" ; AT90PWM316 ;.include "pwm324def.inc" ; AT90PWM324 ;.include "pwm3Bdef.inc" ; AT90PWM3B ;.include "pwm3def.inc" ; AT90PWM3 ;.include "tn13Adef.inc" ; ATtiny13A ATTENTION! small FLASH space, not all feature can be used ;.include "tn13def.inc" ; ATtiny13 ATTENTION! small FLASH space, not
-
Datei
AVRootloader.asm
m8Adef.inc" ; ATmega8A ;.include "m8def.inc" ; ATmega8 ;.include "m8HVAdef.inc" ; ATmega8HVA ;.include "pwm216def.inc" ; AT90PWM216 ;.include "pwm2Bdef.inc" ; AT90PWM2B ;.include "pwm2def.inc" ; AT90PWM2 ;.include "pwm316def.inc" ; AT90PWM316 ;.include "pwm324def.inc" ; AT90PWM324 ;.include "pwm3Bdef.inc" ; AT90PWM3B ;.include "pwm3def.inc" ; AT90PWM3 ;.include "tn13Adef.inc" ; ATtiny13A ATTENTION! small FLASH space, not all feature can be used ;.include "tn13def.inc" ; ATtiny13 ATTENTION! small FLASH space, not
in „Bootloader von Hagen - Port toggeln während des Flashens“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVRootloader.asm
m88def.inc" ; ATmega88 ;.include "m88Pdef.inc" ; ATmega88P ;.include "m8def.inc" ; ATmega8 ;.include "pwm216def.inc" ; AT90PWM216 ;.include "pwm2Bdef.inc" ; AT90PWM2B ;.include "pwm2def.inc" ; AT90PWM2 ;.include "pwm316def.inc" ; AT90PWM316 ;.include "pwm324def.inc" ; AT90PWM324 ;.include "pwm3Bdef.inc" ; AT90PWM3B ;.include "pwm3def.inc" ; AT90PWM3 ;.include "tn13def.inc" ; ATtiny13 ;.include "tn167def.inc" ; ATtiny167 ;.include "tn2313def.inc" ; ATtiny2313 ;.include "tn24def.inc" ; ATtiny24 ;.include "tn25def.inc
-
PDF
AP3031.pdf
Control Using DC Voltage Second, using a filtered PWM signal can do it. The filtered PWM signal can be considered as a varying and adjustable DC voltage. Please refer to the Figure of Dimming Control Using Filtered PWM Voltage. AP3031 FB Effective Feedback Voltage PWM R3 R2 R4 C R1 Dimming Control Using Filtered PWM Voltage AP3031 9 of 13 December 2022 Document number: DS41442 Rev. 2 - 2 www.diodes.com © 2022 Copyright Diodes Incorporated. All Rights Reserved. AP3031
in „Verständnisfrage Datenblatt AP3031 PMIC“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
RF_Relay_Box_V1.3.pdf
rf_relay_box_v1.3.c SendtoProgrammer(USARTFlag); } else { configFlag = 0x00; } Received = 0x00; } } cli(); OC1A_B_PWM_Init(); OC2A_B_PWM_Init(); OC0A_Timer_Init(); Switchsensing_Init(); NRF24L01_CustomInit(RFChannel, RFSendPower, SendRetry, RelayAddress); NRF_SetRXState(); NRF_CE_Hi; sei(); while(!configFlag) { while
in „ATmega 164P USART funktioniert nur mit beschaltung auf PB7“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
LM3409__LM3409HV.pdf
Voltage V = 17V (5 LEDs); V = 24V O IN 300856c1 300856b2 www.national.com 6 L M 3 Internal EN Pin PWM Dimming External Parallel FET PWM Dimming 4 V = 17V (5 LEDs); V = 24V V = 17V (5 LEDs); V = 24V 0 O IN O IN / L M 4 0 9 H V 300856b0 300856b1 20kHz 50% EN pin PWM dimming 100kHz 50% External FET PWM
in „High Power LED Stroboskop“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TLC5940.pdf
constant-current sink LED driver. Each channel has an individually • 12 bit (4096 Steps) Grayscale PWM Control adjustable 4096-step grayscale PWM brightness • Dot Correction control and a 64-step, constant-current sink (dot – 6 bit (64 Steps) correction). The dot correction adjusts the brightness – Storable
in „Vorschläge für Led-Treiber?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TLC5940.pdf
constant-current sink LED driver. Each channel has an individually • 12 bit (4096 Steps) Grayscale PWM Control adjustable 4096-step grayscale PWM brightness • Dot Correction control and a 64-step, constant-current sink (dot – 6 bit (64 Steps) correction). The dot correction adjusts the brightness – Storable
in „Parallel Nutzung von Stromsenken“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
L6207_AN.pdf
is the duty-cycle of the PWM output of the µC. Assuming that the µC output impedance is lower than 1k , with R = 56k , R = 15k , C = 10nF and a LP DIV LP µC PWM switching from 0 to 5V at 100kHz, the low pass filter time constant
in „Schrittmotor mit L6207“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
en.CD00004482.pdf
is the duty-cycle of the PWM output of the µC. Assuming that the µC output impedance is lower than 1k , with R = 56k , R = 15k , C = 10nF and a LP DIV LP µC PWM switching from 0 to 5V at 100kHz, the low pass filter time constant
in „Treiberstufe fuer Faulhaber Schrittmotor“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
code.txt
// ******************************** PWM ********************************************************** DDRB = ( 1 << PB1 ); // Setzen des OC1A (PB1) als Ausgang // Auszug aus dem Datenblatt // COM1A1/COM1B1 COM1A0/COM1B0 Description // 0 0 Normal
in „PWM - Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Bios_Analog.c
///// /* Timer 0 für PWM-Nutzung initialisieren */ // TCCR0A = (1 << WGM00) // mode 3, fast pwm, update at top // | (1 << WGM01); // tov1 flag set on top, top=0xff // TCCR0B = (1 << CS01) // clock select clk/64 // | (1 << CS00); /* OC0A als PWM-Port setzen DDRD |= (1 << PD6); TCCR0A |= (1 << COM0A1); OCR0A = 128; /* OC0B als PWM-Port setzen DDRD |= (1 << PD5); TCCR0A |= (1 << COM0B1); OCR0B = 128; */ }
in „Atmega644 PWM Timer0 OCROB / A -Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname1.bas
Zaehler = 5 Then Led1 = 0 Led2 = 0 Led3 = 0 Led4 = 0 End If If Zaehler > 5 Then Zaehler = 1 End If Decr Pwm_counter If Led_1_value <= Pwm_counter Then Led1 = 0 Else Led1 = 1 End If If Led_2_value <= Pwm_counter Then Led2 = 0 Else Led2 = 1 End If If Led_3_value <= Pwm_counter Then Led3 = 0 Else Led3 = 1 End If If Led_4_value <= Pwm_counter Then Led4 = 0 Else Led4 = 1 End If Loop Changenext: Incr Zaehler Return Sub Helligkeit() Led_1_value = Led_1_value + 51 Led_2_value = Led_2_value + 51 Led_3_value = Led_3_value + 51 Led_4_value
in „Problem mit Programm (BASCOM)!“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
klassed_facharbeit.pdf
vorliegen. Mithilfe eines DSP (Digital Signal Processor) wird hier das vorliegende PCM-Signal in ein PWM-Signal umgesetzt, welches verstärkt werden kann. Bei analog modulierenden Verstärkern liegt am Eingang ein Spannungs- oder Stromsignal an. Aus diesem kann mit verschiedenen Methoden ein PWM-Signal generiert
in „Suche Schaltplan für PWM Endstufe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
IR_Buttons_v0.13_post.c
pin change on PB3 // Pin change ISR _delay_ms(100); TCCR0A |= (1 << COM0B1); // connect white LED to PWM again } //+++++++++++++++++++++++++++++++++++++// // Timer/Counter initialization void counter_init(void){ // Timer 0 is used for PWM that produces the modulation frequency for the IR signal // also
in „Attiny 13 mit Pin Chnage aufwecken. Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sysctl.asm
r16 ; temporaer genutzes Register .def tmp2 = r17 ; temporaer genutzes Register .def pwmcnt = r18 ; PWM Zaehler .equ TIM0_TOP = 100 ; Endwert Timer .equ PWM_MAX = 100 ; Anzahl Schritte fuer PWM .equ RAMSTART = 0x0060 ; Startadresse des SRAM .equ PORTBLOCK = 0x0060 ; Startadresse PWM Schwellwerte .equ
in „ATmega32, Timer0, Soft-PWM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
=1; // Timer2 is on CCP1CONbits.CCP1M=0b1100; // PWM mode: P1Aactive-high; P1B active-high CCP1CONbits.P1M=0b10; // Half-Bridge output; P1A, P1B modulated with dead-band control PWM1CONbits.P1DC=4; // 4*125ns = 500ns Dead Time @ 32MHz while(1); } void interrupt ISR() { INTCONbits.T0IF=0; // Clear T0IF TMR0=99; // Interrupt every 80µs PWM_Set_DC(sin_tab[tab_counter]); tab_counter++; if(tab_counter>249) //250*80µs=20ms tab_counter=0; } PWM_Set_DC(unsigned int dc) { CCP1CONbits.DC1B=dc; CCPR1L=dc>>2; }
in „PWM zu Sinus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
<<CS01); //Prescaler = 8 --> 10 kHz für Motoren OCR0A=0; //Motor1 aus OCR0B=0; //Motor2 aus } void PWM_Timer2_init (void) { TCCR2A = (1<<COM2A1)|(1<<COM2A0)|(1<<COM2B1)|(1<<COM2B0)|(1<<WGM21)|(1<<WGM20); //Clear OC0A/OC0B on Compare Match, set OC0A/OC0B at BOTTOM (inverting mode) Fast PWM, Top=0xFF TCCR2A
in „Servo-Pulssignalläge messen mit Atmega328p“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.cpp
10 #define NO_INPUT 0 #define DIGITAL_INPUT 1 #define ANALOG_INPUT 2 #define PWMFreq 720 // output PWM frequency (Hz) uint16_t ICR16Val; void setup() { int i; ICR16Val = 16000000/PWMFreq/2; // set Phase PWM //////////////////////////////////////////////////////////////////////////////////////////////
in „Arduino Mega R3 PWM funktioniert nicht für Timer 5 (A), Pin 44“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
via_datasheet.pdf
PWM_CLK_SEL3 The register is meaningful when AUXFANOUT be programmed as PWM output. Bit 7: AUXFANOUT PWM Input Clock Source Select. This bit selects the clock source of PWM output frequency. Set to 0, select
-
PDF
DoppelMagnetruehrer.PDF
PCPP1 PIU302 GND DIRP 4 U 5 0 5 PIU503 A B P I U 5 0 4 GND 3 12 SN74LVC1T45DBVR R3535 I3 B C1616 Fan_PWM_Signal_a Fa _PWM_Signal_aa PIR350PIR3502 PIQ11011111 B 10100 nF 12C 17C 1 7 4k7 BC817-25LT3G R36 R 3 6 10100 nF I2 PI0R60PIR3602 +3V3 GND +Fan_Power_B GND 02 R37 R 3 7 GND 4k7 01 Ta o_Signal_b0b D5O
in „Platine für Doppelmagnetrüher“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
LT3465.pdf
Control Using a Filtered PWMSignal averageFBvoltageincreaseslinearlywiththePWMduty cycle. As the PWM frequency increases, the capacitor Dimming Using Direct PWM(LT3465A) charging/discharginghasalargereffectonthelinearityof Unlike the LT3465, the LT3465A does not have internal thePWMcontrol.Waveformsfora1kHzand10kHzPWM
in „s65 display stromversorgung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
io.h
/io76c711.h> #elif defined (__AVR_AT86RF401__) # include <avr/io86r401.h> #elif defined (__AVR_AT90PWM1__) # include <avr/io90pwm1.h> #elif defined (__AVR_AT90PWM2__) # include <avr/io90pwmx.h> #elif defined (__AVR_AT90PWM2B__) # include <avr/io90pwm2b.h> #elif defined (__AVR_AT90PWM3__) # include <avr/io90pwmx.h> #elif defined (__AVR_AT90PWM3B__) # include <avr/io90pwm3b.h> #elif defined (__AVR_AT90PWM216__) # include <avr/io90pwm216.h> #elif defined (__AVR_AT90PWM316__) # include <avr/io90pwm316.h> #elif defined (__AVR_AT90PWM161__) #
in „direkt in ein Register des Tiny5 schreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include <avr/io.h> #include <avr/iom8.h> int main(void) { // ******************************** PWM ********************************************************** DDRB = ( 1 << PB1 ); // Setzen des OC1A (PB1) als Ausgang // Auszug aus dem Datenblatt // COM1A1/COM1B1 COM1A0/COM1B0 Description // 0 0 Normal
in „PWM - Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
pinout.txt
Partially Connected to unpopulated circuit part. Possibly be to control LEDS on left side 14 P2.2 PWM0 NC? Not connected? 15 P2.3 PWM1 NC? Not connected? 16 P2.4 PWM2 Partially Connected to Motor 1 ctrl 17 P2.5 PWM3 Partially Connected to Motor 2 ctrl 18 P2.6 PWM4, CPO1 Partially Connected to Motor
in „Hackbarer(?) 21 EUR Quadcopter“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
takt.c
OCR1A #elif defined(__AVR_ATmega8__) # define OC1 PB1 # define DDROC DDRB # define OCR OCR1A # define PWM10 WGM10 # define PWM11 WGM11 #elif defined(__AVR_ATmega32__) # define OC1 PD5 # define DDROC DDRD # define OCR OCR1A # define PWM10 WGM10 # define PWM11 WGM11 #elif defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__) # define OC1 PB5 # define DDROC DDRB # define OCR OCR1A # define PWM10 WGM10 # define PWM11 WGM11 #else # error "Don't know what kind of MCU you are compiling for" #endif SIGNAL (SIG_OUTPUT_COMPARE1A) { TCCR1A = 0x00; //Register löschen TCCR1B = 0x00; //Register löschen
in „16 Bit Zähler 8535“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
LF2407_EZDSP_INC.pdf
group A pins */ /* bit 15 0: 0=IOPB7, 1=TCLKINA bit 14 0: 0=IOPB6, 1=TDIRA bit 13 0: 0=IOPB5, 1=T2PWM/T2CMP bit 12 0: 0=IOPB4, 1=T1PWM/T1CMP bit 11 0: 0=IOPB3, 1=PWM6 bit 10 0: 0=IOPB2, 1=PWM5 bit 9 0: 0=IOPB1, 1=PWM4 bit 8 0: 0=IOPB0, 1=PWM3 bit 7 0: 0=IOPA7, 1=PWM2 bit 6 1: 0=IOPA6, 1=PWM1 bit 5 0
in „TMS320LF2407 ???“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
PDF
MKS_GEN_V14.PDF
PIC2701 +12/24VIJ?01 F2F +V D?D C0C L0L LV1V +5V P9U?(T3/INT6) PE6 K K2 3 4 5 6 7 PJ5 (PCINT67)068 D3 (PWM) CJ1 PIJ102 PIF201 PID201 PID?02 PIDPIC2802PIC502ILV102 PIC502 C101IC102 PIU?VCCKO/ICP3/INT7) PE7 P PP P P P P P PJ3 (PCINT12)066 D2 (PWM)D14/TXDD15/RXD3 +12/24PIJ101 COD C01 I0 ?n82 ?nC P1 ?n ?n PIC10D17
in „Hilfe zu Optokoppler (6N137)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ATtiny261A_Complete.pdf
Disconnected Disconnected 0 1 Disconnected OC1x 1 0 Disconnected OC1x 1 1 Disconnected OC1x 12.8.2 Fast PWM Mode The fast Pulse Width Modulation or fast PWM mode (PWM1A/PWM1B = 1 and WGM1[1:0] = 00) provides a high frequency PWM waveform generation option. The fast PWM differs from the other PWM option by
in „USI Interface als SPI Schnittstelle beim ATtiny261A“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
pin 5) TCNT1 = 0; // reset the timers so they are aligned TIFR = 0; // clean out the timer flags if(PWM_code) { // 99% of codes are PWM codes, they are pulses of a carrier frequecy // Usually the carrier is around 38KHz, and we generate that with PWM // timer 0 TCCR1A =_BV(COM1A0) | _BV(WGM11); // set
in „Problem mit TV-B-Gone (PWM funktioniert nicht)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
pin 5) TCNT0 = 0; // reset the timers so they are aligned TIFR = 0; // clean out the timer flags if(PWM_code) { // 99% of codes are PWM codes, they are pulses of a carrier frequecy // Usually the carrier is around 38KHz, and we generate that with PWM // timer 0 TCCR0A =_BV(COM0A0) | _BV(WGM01); // set
in „Problem mit TV-B-Gone (PWM funktioniert nicht)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Timer_Erklaerung_Netz.pdf
wir einen grösseren geometrischen Mittelwert Wiederholen wir den Vorgang fortlaufend, haben wir ein PWM an einem Pin anliegen. Mit den AVR's können wir direkt PWM-Signale erzeugen. Dazu dient der 16-Bit Zähler, wel- cher im sogenannten PWM-Modus betrieben werden kann. Dabei gibt es noch verschiedene Arten der PWM: - Fast PWM - Phasen-korrekte PWM - Phasen- und frequenzkorrekte PWM Die genaue Funktionsweise und Werte bitte den entsprechenden Datenblättern entnehmen. Das alles zum PWM ist aber ein ganz anderes
in „Berechnung Zeit/Frequenz beim Prescaler/Timer“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Timer_Erklaerung_Netz.pdf
wir einen grösseren geometrischen Mittelwert Wiederholen wir den Vorgang fortlaufend, haben wir ein PWM an einem Pin anliegen. Mit den AVR's können wir direkt PWM-Signale erzeugen. Dazu dient der 16-Bit Zähler, wel- cher im sogenannten PWM-Modus betrieben werden kann. Dabei gibt es noch verschiedene Arten der PWM: - Fast PWM - Phasen-korrekte PWM - Phasen- und frequenzkorrekte PWM Die genaue Funktionsweise und Werte bitte den entsprechenden Datenblättern entnehmen. Das alles zum PWM ist aber ein ganz anderes
in „Berechnung Zeit/Frequenz beim Prescaler/Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ui_heater.c
Verstärkungsfaktor P-anteil static int Ta = 1; // Abtastzeit (1s) int RegDiv; // Temperaturabweichung int PWM; u8 SollTemp; SollTemp = (eeprom_read_byte(&eeTempSollTest)); if (SollTemp >= MAXTEMP){ SollTemp = MAXTEMP; } RegDiv = (SollTemp-Ist); SumRegDiv = SumRegDiv + RegDiv; if (SumRegDiv < 0) { SumRegDiv = 0; } if (SumRegDiv > 100){ SumRegDiv = 100; } PWM = (Kp*RegDiv)+((Ki*Ta*SumRegDiv)/2); if (PWM < 0) { PWM = 0; } if (PWM > 255) { PWM = 255; } OCR0 = PWM; } // ------------------------------------------------------------------------- // // Function
in „ATMEGA - EEPROM bechreiben/lesen macht Probleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
but_look2.asm
PCINT3) ; sts PCMSK0, temp ; ldi temp, 1<<ISC00 ; sts EICRA, temp ; initializing registers clr ACount ; PWM / SINE rate (L) Counter clr BCount ; Adjustable speed (H) Counter ; X/Y ?? clr state ; State machine q1-q2-q3-q4- clr PCount ; bookkeeper for table qsin clr pow ; PWM - duty cycle ldi speed, $ff ; Adjustable
in „Hilfe bei Assembler (Timer0/1/2 interrupt)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Programm.c
Definitionen-------------------------------------------------------- #define ON 512 //Motor ein für PWM #define OFF 0 //Motor aus für PWM #define UART_BAUD_RATE 9600 //UART Baudrate #define BufferMAX 100 //Buffer für Stringumwandlungen und Typumwandlungen #define Ta 1 //Parameter für PID Algorithmus #
in „PIN einlesen, in variable laden, maskieren und anschließend abfragen-PROB“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM_PA0_Uvergleich-239ms-14.2.12-1.asm
;ausgangsspannungsregelung nach stepdown ;pwm an atmega16 für 3,906 khz ;bei 4mhz taktfrequenz ;mit timer0 im fast pwm mode, 8 bit aufloesung ;pwm-signal liegt auf pb3 oc0 ;adc takt mittels OVF1addr ;14.2.12 .include "m16def.inc" .def v_panel =
in „Hilfe Ladereglung Atmega16 Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM_PA0_Uvergleich-239ms-14.2.12-1.asm
;ausgangsspannungsregelung nach stepdown ;pwm an atmega16 für 3,906 khz ;bei 4mhz taktfrequenz ;mit timer0 im fast pwm mode, 8 bit aufloesung ;pwm-signal liegt auf pb3 oc0 ;adc takt mittels OVF1addr ;14.2.12 .include "m16def.inc" .def v_panel =
in „Hilfe Ladereglung Atmega16 Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Lastenheft_Wohnzimmerbeleuchtung.pdf
aufwendig und muss nicht extra entwickelt werden. Die einzelnen Farben der Lichtmodule müssen über PWM (mit 100hz) gesteuert werden. Controller platine Jede Controllerplatine besitzt einen Microcontroller, 6 Leistungstransistoren für die PWM Steuerung, eine Dipschalter Adresskonfiguration (mindestens
in „[SUCHE] Biete bezahltes Projekt von Privat (USB - Microcontroller LED Steuerung)“ · Ausbildung, Studium & Beruf ·
-
Datei
source.c
sei(); //Interrupts aktivieren usart_int(); UCSRB |= (1 << RXCIE); //twi_int(); //ds1621_int(0); //PWM pwm_init(); set_pwm_load(leistung_fan1); //Drezahl Counter am ext. Interrupt MCUCR |= ((1<<ISC00)|(1<<ISC01)|(1<<ISC11)|(1<<ISC10)); GICR |= ((1<<INT0)|(1<<INT1)); //Sekundentimer einstellen/aktivieren
in „Frequenzcounter per ext. Interrupt - merkwürdiges Verhalten“ · Mikrocontroller und Digitale Elektronik ·