-
Datei
Timer_Lichtschranke.c
FIOPIN (default)*/ FIO4DIR |= (1<<9)|(1<<11) ; /* Pin P4.9(91) and P4.11(101) are Motor output */ // PWM IMPLEMENTATION PWM1PR = 23; /* prescaler :Fpclk/12/(23+1) Mhz*/ PWM1CTCR = 0x00; /* selects the signal and edge(s) for counting */ PWM1MCR =(1 << 1); /* Bit 1: reset on PWMMR0R*/ PWM1MR0 = cycle; /* set PWM cycle-rate */ PWM1MR2 = PWM1MR0 * 1/2; PWM1LER = (1 << 0)|(1 << 2); /* PWM1.2 latch enabled */ break; default: break; } // EXTINT EINT0 IMPLEMENTATION VICVectAddr14 = (unsigned long)EINT0_ISR; VICVectPriority14
in „Gabellichtschranke Signal bewertung(DC-Motor)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Noctua_PWM_specifications_white_paper.pdf
Noctua PWM specifications white paper Scope of this paper ThescopeofthiswhitepaperistoprovideadetailedtechnicaldocumentationofthePWM (Pulse Width Modulation) speed control features of Noctua’s 4-pin PWM fans.
in „Lüfter + Ansteuerung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Noctua_PWM_specifications_white_paper.pdf
Noctua PWM specifications white paper Scope of this paper ThescopeofthiswhitepaperistoprovideadetailedtechnicaldocumentationofthePWM (Pulse Width Modulation) speed control features of Noctua’s 4-pin PWM fans.
in „4Pin luefter Spezifikation“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Uno_PWM_poti_ta_v_R_E_A___-_Mon.ino
5; if (pwm > 255) pwm = 255; delay(50); } // ------------------------- // Minus-Taster // ------------------------- if (digitalRead(minusTaster) == LOW) { potiModus = false; pwm -= 5; if (pwm < 0) pwm = 0; delay(50); } // PWM nur bei Änderung ausgeben if (pwm != letzterPWM) { letzterPWM = pwm; statusAusgeben(); } // ------------------------- // PWM ausgeben // ------------------------- if (motorEin) analogWrite(pwmPin, pwm
-
Datei
helimixer.h
256 // PWM-Schritte pro Zyklus(1..256) #define PWM_PORT PORTD // Port für PWM #define PWM_DDR DDRD // Datenrichtungsregister für PWM #define PWM_CHANNELS 2 // Anzahl der PWM-Kanäle #define T_PWM (F_CPU/(PWM_PRESCALER*F_PWM*PWM_STEPS)) // Systemtakte pro PWM-Takt //#define T_PWM 1 //TEST #if ((T_PWM*PWM_PRESCALER)<(111+5)) #error T_PWM zu klein, F_CPU muss vergrösst werden oder F_PWM oder PWM_STEPS verkleinert werden #
in „Helikopter Mischer Board für analoge Fernsteuerungen.“ · Platinen ·
-
Datei
RGB_Dimmer_V1.asm
def zauto = r19 ; Zähler für Autorepeat .def marke = r9 ; Marke für Startbildschirm ; Definition der PWM Ausgaenge .equ pwm_r_ddr = DDRB ; .equ pwm_g_ddr = DDRD ; .equ pwm_b_ddr = DDRD ; ; .equ pwm_r_port = PORTB ; PWM Ausgang ROT(OCR0) .equ pwm_g_port = PORTD ; PWM Ausgang GRUEN(OCR1A) .equ pwm_b_port
in „[ASM] Mega16 - Programm spinnt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Menu.c
*/ PWM_SetFrequencyTimer(2,s_u16_value); if (u8_PWM_Polarity_2 == 1){ PWM_InitTimer2Channel(2,u16_PWM_DutyCycle_2,PWM_MODE_IC_PWM_HT); }else{ PWM_InitTimer2Channel(2,u16_PWM_DutyCycle_2,PWM_MODE_IC_PWM_LT)
in „Gibt es listen in C wie in C++“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
0); if (pwm_setting[1] > pwm_cnt) tmp |= (1<<1); if (pwm_setting[2] > pwm_cnt) tmp |= (1<<2); if (pwm_setting[3] > pwm_cnt) tmp |= (1<<3); if (pwm_setting[4] > pwm_cnt) tmp |= (1<<4); if (pwm_setting[5] > pwm_cnt) tmp |= (1<<5); if (pwm_setting[6] > pwm_cnt) tmp |= (1<<6); if (pwm_setting[7] > pwm_cnt) tmp |= (1<<7); PWM_PORT = (tmp<<1); // PWMs aktualisieren if (pwm_cnt==(uint8_t)(PWM_STEPS-1)) pwm_cnt=0; else pwm_cnt++; } **/ ISR
in „Master und 3 Slaves, Kommunikation läuft nicht rund Bitte um Hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
void Pulswobbel (void) #pragma vector = TIMER0_B1_VECTOR __interrupt void TIMER0_B1_ISR (void) { if (PWM_Aktuell < PWM_Max && PWM_Dir == 1) { PWM_Aktuell += PWM_Step; } else if(PWM_Aktuell > PWM_Max && PWM_Dir == 1) { PWM_Aktuell -= PWM_Step; PWM_Dir = 0; } if (PWM_Aktuell > PWM_Min && PWM_Dir == 0) { PWM_Aktuell -= PWM_Step; } else if(PWM_Aktuell < PWM_Min && PWM_Dir == 0) { PWM_Aktuell += PWM_Step; PWM_Dir = 0; } } // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // +
in „MSP430 F5529 Wobbel-Generator“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
GccApplication1.c
c * * Created: 02.01.2014 16:52:28 * Author: Höppener Adrian */ #define F_CPU 16000000UL #define F_PWM 100 #define PWM_STEPS 255 #define PWM_PORT PORTD #define PWM_DDR DDRD #include <avr/io.h> #include <avr/interrupt.h> #include <stdint.h> #include <string.h> #define T_PWM (F_CPU/(F_PWM*PWM_STEPS)) /
in „PWM LED dimmern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Beispiel.txt
void motor(){ if((PWM_data > 128) && (PWM_value <= (PWM_data - 7)) && (PWM_value >= 120)) //Beschleunigung Vorwärts bei Vowärtslauf oder Stillstand { if(PWM_value <= 248) PWM_value = (PWM_value += 7); } else if((PWM_data < 128) && (PWM_value >= (PWM_data + 7)) && (PWM_value <= 136)) //Beschleunigung Rückwärts bei Rückwärtslauf oder Stillstand { if(PWM_value >= 7) PWM_value = (PWM_value -= 7); } else if((PWM_data > 128) && (PWM_value
in „&& Verküpfungen vereinfachen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
+++ //void Pulswobbel (void) #pragma vector = Timer0_TA1_ISR () __interrupt void TB0_0_ISR() { if (PWM_Aktuell < PWM_Max && PWM_Dir == 1) { PWM_Aktuell += PWM_Step; } else if(PWM_Aktuell > PWM_Max && PWM_Dir == 1) { PWM_Aktuell -= PWM_Step; PWM_Dir = 0; } if (PWM_Aktuell > PWM_Min && PWM_Dir == 0) { PWM_Aktuell -= PWM_Step; } else if(PWM_Aktuell < PWM_Min && PWM_Dir == 0) { PWM_Aktuell += PWM_Step; PWM_Dir = 0; } } // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // +
in „MSP430 F5529 Wobbel-Generator“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
determine if is 0 or 1 } // End of CCP1 Interrupt (DCC signal change detection) if (T0IF==1) { // PWM Timer Interrupt Service T0IF =0; TMR0 = PWM_CLICK_TIMER; PWM_Timer++; if (PWM_RealTOn != 0) { // Is real speed diferent from zero? if (PWM_Timer >= PWM_Period) { PWM_Timer=0; if (LocoData.Flags.bits.RealDirBit==1){ PWM_Port2 = 0; PWM_Port1 = 1; } else { PWM_Port1 = 0; PWM_Port2 = 1; } } if (PWM_Timer > PWM_RealTOn){ // Duty Cycle is over? (if yes, clears the PWM Output) PWM_Port1=0; PWM_Port2=0; } } } // End of TMR0
in „DCC Lokdecoder PIC16F628“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
weichen_Test.ino
============================================== // CONRAD WEICHEN-PRUEFGERAET // ARDUINO NANO // // PWM-WECHSELSPANNUNG UEBER DIE VORHANDENE BRUECKE // // Pin 3 = PWM // Pin 2 = Richtung / Polaritaet // // Die vorhandene Hardware erzeugt daraus: // // PWM + LOW // PWM + HIGH // // und damit eine Wechselspannung
-
PDF
3901090614.pdf
period absolute value deviations. The address PWMCTRL consists of control bits for configuring the PWM/SDA pin as follows: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PWM control bit meaning 0 - PWM extended mode 1 - PWM single mode 0 - PWM mode disabled (EN_PWM) 1 - PWM mode enabled (EN_PWM) 0 - SDA pin configured
in „Erste Schritte mit TWI“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Example_2802xEPwmDeadBand.c
//! - Count up/down //! - Deadband //! //! 3 Examples are included: //! - ePWM1: Active low PWMs //! - ePWM2: Active low complementary PWMs //! - ePWM3: Active high complementary PWMs //! //! Each ePWM is configured to interrupt on the 3rd zero event/ //! When this happens, the
in „DDS, 50Hz Sinus, Schaltfrequenz 16 - 48kHz“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
alf.c
int *pToPTV2 = pwmTimerValues2; unsigned int *pToPTV3 = pwmTimerValues3; unsigned char *pToPBM0 = pwmTimerBitmaskPort0; unsigned char *pToPBM1 = pwmTimerBitmaskPort1; unsigned char *pToPBMT0 = pwmTimerBitmaskPort0Tmp;
in „12bit, 9-Kanal Soft-PWM für LEDs auf Mega16“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
boards.c
); } if (RGBW_EXIST[RGBW5] == 1) { run_pwm_mode(5, modenumber); } if (RGBW_EXIST[RGBW6] == 1) { run_pwm_mode(6, modenumber); } if (RGBW_EXIST[RGBW7] == 1) { run_pwm_mode(7, modenumber); } if (RGBW_EXIST[RGBW8] == 1) { run_pwm_mode(8, modenumber
in „Timerberechnung die hunderste“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test_m88_pwm.asm
, damit PWM stattfindet ldi temp,0x0 out OCR0b,temp ; Setze einen Anfangswert in OCR1A ldi pwm,255 ; Setze erstmal "pwm" auf 0 out OCr0a,pwm ;gib momentanen Pwm-Wert an aus ; PWM timer 2 lds temp,0b10000001 ; sts
in „Mega88 Timer1 & 0“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
PWM_control_backlight_manual.pdf
backlight gpio -g pwm 18 1024 gpio -g mode 18 pwm #set the pin as PWM gpio pwmc 1000 gpio -g pwm 18 X #change the brightness, X ranges 0~1024 https://www.waveshare.com 5inch HDMI LCD (B) Remove the 0Ω resister and wire the
in „Touch Display verliert Helligkeit“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Example_2802xEPwmDeadBand.c
//! - Count up/down //! - Deadband //! //! 3 Examples are included: //! - ePWM1: Active low PWMs //! - ePWM2: Active low complementary PWMs //! - ePWM3: Active high complementary PWMs //! //! Each ePWM is configured to interrupt on the 3rd zero event/ //! When this happens, the
in „Sinus PWM mit 25 kHz lässt sich nicht kompilieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Pwm8_8.asm
.nolist .include "1200def.inc" .list .def PWM0 = r1 .def PWM1 = r2 .def PWM2 = r3 .def PWM3 = r4 .def PWM4 = r5 .def PWM5 = r6 .def PWM6 = r7 .def PWM7 = r8 .def PWM_Counter = r9 .def Save_SREG = r10 .def int_acc = r16 .org OVF0addr rjmp int_t0
in „I²C nach PWM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
pwm8ch.asm
byte 1 pwm_data4: .byte 1 pwm_data8: .byte 1 pwm_data16: .byte 1 pwm_data32: .byte 1 pwm_data64: .byte 1 pwm_data128: .byte 1 .cseg .list .listmac ;-------------------------------------------------------------
in „AVR Assembler-Frage“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DC_Motor_control.txt
; PWM MODE ;******************************************************** MODE_PWM_UP: PUSH AC MOVE A,PWM CJNE A,#60H,PW1 SJMP PW2 PW1:INC PWM MOV A,PWM ADD A,#00 DA A MOV PWM,A PW2:MOV R4,A LCALL SCAN_WAIT LCALL WRITE_EEPROM POP ACC RET MODE_PWM_DOWN:PUSH ACC MOV A,PWM CJNE A,#00H,PW3 SJMP PW6 PW3:DEC PWM MOV A,PWM ANL A,#0FH CJNE A,#0FH,PW4 PW4:MOV A,PWM JC PW5 ADD A,#10H SUBB A,#10H PW5:MOV PWM,A PW6:MOV R4,A LCALL SCAN-WAIT LCALL WRITE_EEPROM
in „Brauche Hilfe für MCS-51 compiler 2051“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DC_Motor_control.txt
; PWM MODE ;******************************************************** MODE_PWM_UP: PUSH AC MOVE A,PWM CJNE A,#60H,PW1 SJMP PW2 PW1:INC PWM MOV A,PWM ADD A,#00 DA A MOV PWM,A PW2:MOV R4,A LCALL SCAN_WAIT LCALL WRITE_EEPROM POP ACC RET MODE_PWM_DOWN:PUSH ACC MOV A,PWM CJNE A,#00H,PW3 SJMP PW6 PW3:DEC PWM MOV A,PWM ANL A,#0FH CJNE A,#0FH,PW4 PW4:MOV A,PWM JC PW5 ADD A,#10H SUBB A,#10H PW5:MOV PWM,A PW6:MOV R4,A LCALL SCAN-WAIT LCALL WRITE_EEPROM
in „hilfe at89c2051“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Pwm8_8.asm
.nolist .include "f:\avr\inc\1200def.inc" .list .def PWM0 = r1 .def PWM1 = r2 .def PWM2 = r3 .def PWM3 = r4 .def PWM4 = r5 .def PWM5 = r6 .def PWM6 = r7 .def PWM7 = r8 .def PWM_Counter = r9 .def Save_SREG = r10 .def int_acc = r16 .org OVF0addr rjmp int_t0
in „Software PWM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Example_2802xEPwmDeadBand.c
//! - Count up/down //! - Deadband //! //! 3 Examples are included: //! - ePWM1: Active low PWMs //! - ePWM2: Active low complementary PWMs //! - ePWM3: Active high complementary PWMs //! //! Each ePWM is configured to interrupt on the 3rd zero event/ //! When this happens, the
in „Sine-Lookup Tabelle. Wie macht man es richtig?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
4-Wire_PWM_Controlled_Fans.pdf
PWM Duty Cycle In a Type B implementation the fan will run at minimum RPM for all non-zero PWM duty cycle values less than minimum duty cycle and turn off the motor at 0% PWM duty cycle. See Figure 4. 13 Fan Speed Control Figure 4 Type B Operation, Stay On at Minimum RPM, Off at 0% RPM Speed vs. PWM Duty cycle %of full speed 35 The fan stays on at minimum speed for 30 PWM duty cycle values below the 25 minimum PWM Example Min. duty cycle, and PWM shuts off at 0% 20 PWM duty cycle Example Min. 15
in „Wie funktioniert die Ansteuerung von PWM (4-Pin) PC-Lüftern?“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
Training_TC1796_2007-04-23_PWM.pdf
n f i n e o n . c o m / m i c r o c o n t r o l l e r M I C R O C O N T R O L L E R S Exercise 7: PWM PWM In this exercise you will develop an application that generates a sinusodial complemen- tary 3-phase PWM (Puls Width Modulation) signal with an update frequency of 20KHz using the General Purpose
in „Raumzeigermodulation auf Tricore“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AFMotorcpp.txt
bridges pinMode(5, OUTPUT); pinMode(6, OUTPUT); digitalWrite(5, HIGH); digitalWrite(6, HIGH); // use PWM for microstepping support // use PWM for microstepping support initPWM3(1); initPWM4(1); setPWM3(255); setPWM4(255); } } void AF_Stepper::setSpeed(uint16_t rpm) { usperstep = 60000000 / ((uint32_t)revsteps
in „Arduino 2560 PWM Frequenz ändern auf 100Hz“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TM56M152A-tenxtechnology.pdf
80 PWM0DL (95h) Function related to: PWM0 PWM0 Duty bit 7~0 PWM0DL 95.7~0 R/W 00 PWM1DH (96h) Function related to: PWM1 PWM1 Duty bit 15~8 PWM1DH 96.7~0 R/W 80 PWM1DL (97h) Function related to: PWM1 PWM1 Duty
in „MCU identifikation/Datenblatt - MC9989A0ZQ“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
blcd2.asm
ZL lpm mov pwm1, table ldi temp,0 mov pwm3,temp rjmp level q2: subi pointer, 64 lsl pointer add ZL, pointer lpm mov pwm3,table inc ZL lpm mov pwm1,table ldi temp,0 mov pwm2,temp rjmp level ; 1st quadrant, forward,
in „Signalgenerierung feiner abstufen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
projekt_mega.cpp
enum Zustand {TUE_NICHTS, TRIGGERE_ROTE_LED_MIT_WERT,EMPFANGE_BEFEHL,PRUEFE_COMMAND,ZWISCHENZUSTAND_PWM_1,ZWISCHENZUSTAND_PWM_3,ZWISCHENZUSTAND_PWM_2,UEBERSETZE_BEFEHL,SENDE_IDENT,SENDE_AKTUELLEN_ADC_WERT,SENDE_AKTUELLEN_PWM_WERT_AN_PC,SENDE_FALSCHMELDUNG}; //Zustände festlegen //*********************
in „USART Zahl einlesen, auf uint8_t speichern und in phase- correct-pwm, ATmega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Vollfarbsteuerung_C.c
if(farbe_S > 100) s = 255; v = (farbe_V * 255) / 100; if(farbe_V > 100) v = 255; if(farbe_S == 0){ pwm_R = pgm_read_word(&logtable256[v]); pwm_G = pwm_R; pwm_B = pwm_R; //pwm_R = v; //pwm_G = v; //pwm_B = v; return; } intervall = h / 60; //wert = (h - (intervall * 60)) * 6; wert = ((h - (intervall *
in „UART-Interrupt wird nicht ausgelöst“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
2313s-bahn.asm
and 0 ; 0 0 0 Stop, the Timer/Counter1 is stopped. ; 0 0 1 CK PWM 32kHz ; 0 1 0 CK/8 PWM 4kHz ; 0 1 1 CK/64 PWM 500Hz ; 1 0 0 CK/256 PWM 125Hz ; 1 0 1 CK/1024 PWM 30Hz ; 1 1 0 External Pin T1, falling edge ; 1 1 1 External Pin T1, rising edge ; Bit 3 CTC1: Clear Timer
in „DCC Decoder“ · Projekte & Code ·
-
Datei
2ter_versuch.c
); else return((c-1)%2*16+ (c-1)/2);}; Macro(ch_1_14_off) M_For(a,ch(1),TO,ch(14))// first: all on PWM_CH_IS[M_(a)]=PWM_STEPS; //pwm[M_(a)].is =PWM_STEPS; pwm[M_(a)][0] = PWM_STEPS; //pwm[M_(a)].to = PWM_STEPS; M_Next M_For(a,ch(14),DOWN_TO,ch(1)) pwm[M_(a)][0] = 0; //pwm[M_(a)].to = 0; M_Wait(PWM_CH_IS
in „Wie macht man solche Lichtmodes? Lauflicht, PWM und Co“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
isl78225.pdf
signals, then the PWM output can be at the 2.5V tri-level condition. 13,14,16, PWM1, PWM3, PWM2, Pulse width modulation outputs. Connect these pins to the PWM input pins of the external driver ICs. The number 17 PWM4 of
in „Verdammtes Kompensationsnetzwerk“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
motor.c
} //****************************************************************************** // Regelung für PWM void regelung(int soll) { pwm_schaltwert = pwm_count; // pwm_schaltwert, 8 Bit if (pwm_schaltwert > 100) // Begrenzung auf 100%, wenn über 100 { pwm_schaltwert = 100; } if (pwm_schaltwert<soll) { pwm_schaltwert
in „12V Motorsteuerung mit PIC12f675“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
wiring_analog.c
= val; // set pwm duty break; #endif #if defined(TCCR0A) && defined(COM0B1) case TIMER0B: // connect pwm to pin on timer 0, channel B sbi(TCCR0A, COM0B1); OCR0B = val; // set pwm duty break; #endif #if defined(TCCR1A
in „Arduino IDE mit Atmega32 - AD Wandler sind nicht benutzbar“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#define PWM_DDR DDRB // #define PWM_PIN PINB // #define PWM_0 1 // PB 1 #define PWM_1 2 // PB 2 #define PWM_a PB1 // PB 1 für DDRB #define PWM_b PB2 // PB 2 für DDRB #define feld_1 20 * 4 // Array #define SDA 4
in „PWM steuert Helligkeit & Farbe bei LED-Module“ · Projekte & Code ·
-
Datei
STATEMACHINE_AIRHOCKEY_LINKS.C
= ~gruen; //PWM einstellen CCAP2H = ~blau; //PWM einstellen } if ( rot == 0 & blau == 255 ) { //blau ein /* EasyCODE - */ gruen++; //grün plus 1 CCAP0H = ~rot; //PWM einstellen CCAP1H = ~gruen; //PWM einstellen CCAP2H = ~blau; //PWM einstellen } if ( gruen ==255 & rot == 0 ) { //grün ein /* EasyCODE - */ blau--; //blau minus 1 CCAP0H = ~rot; //PWM einstellen CCAP1H = ~gruen; //PWM einstellen CCAP2H = ~blau; //PWM einstellen } if
in „wegen Uart geht nichts mehr“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
drehzahl.c
; unsigned int anz=DSP_HALLO; #if PWM == TRUE //Kommt alle 256-Takte macht PWM INTERRUPT(SIG_OVERFLOW0) { pwm_t++; if((pwm>=pwm_t)&&(pwm!=0)) PORTB|=BIT3_POS; else PORTB&=BIT3_NEG; } #endif //Sorgt für die Fehleranzeige //Wenn der Timer
in „Vergleich C Compiler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TEST.c
= 1; //PWM1 hat Kontrolle über h-pin IOCON1bits.PENL = 1; //PWM-Mode IOCON1bits.PMOD = 0; //PWM1 im complementary Mode PWMCON1bits.DTC = 2; //keine totzeit PWMCON1bits.ITB = 0; //primary timebase PDC1 = 5000;
in „suche Code-Beispiel für Poti PIC30F2020“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
F2_messung_pwm.c
F2_ueberlauf; volatile uint32_t F2_end_ereignis; // Impulse am Ende der Messung volatile uint32_t pwm_sample_sum, // Variablen zur PWM-Messung pwm_sample_positiv; uint32_t pwm_summe, pwm_summe_alt, // für Berechnung der Differenzen neu-alt pwm_positiv, pwm_positiv_alt; double pwm_ergebnis; // Bereich
-
Datei
ZweitesLauflicht.asm
: cp PWMCount, PWM1 brlt out4 andi temp, 0b00001000 out4: out PORTB, temp ret LED5: ldi temp, 0b00011100 cp PWMCount, PWM0 brlt LED51 andi temp, 0b00011000 LED51: cp PWMCount, PWM1 brlt out5 andi temp, 0b00010000 out5
in „Simulation funktioniert, µC aber nicht!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ZweitesLauflicht.asm
: cp PWMCount, PWM1 brlt out4 andi temp, 0b00001000 out4: out PORTB, temp reti LED5: ldi temp, 0b00011100 cp PWMCount, PWM0 brlt LED51 andi temp, 0b00011000 LED51: cp PWMCount, PWM1 brlt out5 andi temp, 0b00010000 out5
in „Simulation funktioniert, µC aber nicht!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Tiny25_fast_PWM.c
Input 1 #define IN_2 PB3 // Input 2 #define IN_3 PB4 // Input 3 #define PWM_OUT PB0 // PWM-Out int main(void) { // PWM = 255 / 100 x %, gerundet unsigned char PWM_10 = 25; // 8-bit PWM value 10% unsigned char PWM_30 = 80; // 8-bit PWM value 30% unsigned char PWM_100 = 255;
in „Fast-PWM Frequenz mit 100Hz“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Counter.vhd
(clk_in)) then if(pwm0 < to_unsigned(31,n_Bit)) then pwm0 <= (pwm0 + 1); pwm_control <= '1'; else if(pwm0 > to_unsigned(0,n_Bit))then pwm0 <= (pwm0 - 1); pwm_control <='0'; end if;--pwm0 fall end if; -- pwm0 rise end if; -- rising_edge end if; -- reset end process count; pwm_logic:process(clk_in) begin if(rising_edge(clk_in)) then if(pwm0 => Upwm0) then pwm <= '1'; else pwm <= '0'; end if; end if; end process pwm_logic; output: Upwm0_out <= std_logic(pwm); end architecture
-
PDF
Schematic_PCB.pdf
1 2 3 4 5 A A GND U3 TEENSY4.1 2 VUSB 49 H 1 48 1 S 3 GND GND (3.6v to 5.VIN ST GND GND 2 0_PWM_RX1_CRX2_CS1 GND 47 GND 3 1_PWM_TX1_CTX2_MISO1 (250mA max3V3 46 4 2_PWM_OUT2 23_PWM_A9_CRX1_MCLK1 45 U5 5 3_PWM_LRCLK2 22_PWM_A8_CTX1 44 9VBuchseStrom 6 43 7 4_PWM_BCLK2 21_A7_RX5_BCLK1 42 8 5_PWM_IN2 20_A6_TX5_LRCLK1 41 6_PWM_OUT1D 19_PWM_A5_SCL0 9 7_PWM_RX2_OUT1A 18_PWM_A4_SDA0 40 10 8_PWM_TX2_IN1 17_A3_TX4_SDA1 39 11 9_PWM_OUT1C 16_A2_RX4_SCL1 38 12 10_PWM_CS_MQSR 15_PWM_A1_RX3_SPDIF< 37 LED1 13 36 B T676RGLED 14 11_PWM_MOSI_CTX114
in „RJ45 Magnetics Teensy 4.1“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
WX_Station.pdf
1 2 3 4 5 6 A A MCU and peripherals User Interface High side switches PWM0 PWM0 ENC_A ENC_A PWM1 ENC_B HEATER_0_0 5V0 5V0 PWM1 ENC_B HEATER_0_0 3V3 PWM2 PWM2 ENC_SW ENC_SW HEATER_0_1 HEATER_0_1 3V3 PWM3 PWM3 HEATER_1_0 HEATER_1_0 GND GND PWM4 3V3 GND HEATER_1_1 PWM4 3V3 GND
in „Weller WX/WSM/WHS Serie Kabel Reverse Engineering“ · Mikrocontroller und Digitale Elektronik ·