-
Datei
120402__leuchte_software.txt
(PINB &(1<<PINB1)){ PORTB = 0b00000010; PORTC = 0b00111100; //dritte Zeile C2,3,4,5 PORTD = 0b00000100; } else{ PORTC &=~(1<<PC2); PORTC &=~(1<<PC3); PORTC &=~(1<<PC4); PORTC &=~(1<<PC5); } } //-------------------------------------------------
in „Programmierung für Kunstobjekt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd16x2.c
inkrementieren und Displayinhalt nicht verschieben byte lcd_read_byte() { byte low,high; set_tris_c(LCD_READ); portc.rw = 1; nop(); portc.enable = 1; nop(); high = portc.lcddata; portc.enable = 0; nop(); portc.enable = 1; delay_us(2); low = portc.lcddata; portc.enable = 0; set_tris_c(LCD_WRITE); return( (high<<4) | low); } void lcd_send_nibble( byte n ) { portc.lcddata = n; nop(); portc.enable = 1; delay_us(4); portc.enable = 0; } void lcd_send_byte( byte address, byte n ) { portc.rs = 0; while ( bit_test(lcd_read_byte(),7) ) ; portc.rs = address; nop();
in „Fehlermdelung (CCS-Compiler)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TIMERCTC.c
int x[8]; while(count<8) { x[count] = (T1 &(1<<count)); count++; } /*Testweise ausgabe auf PORT C PORTC=0x00; if (x[0]!=0) PORTC |= (1 << PINC0); if (x[1]!=0) PORTC |= (1 << PINC1); if (x[2]!=0) PORTC |= (1 << PINC2); if (x[3]!=0) PORTC |= (1 << PINC3); if (x[4]!=0) PORTC |= (1 << PINC4); if (x[5]!=0) PORTC |= (1 << PINC5); if (x[6]!=0) PORTC |= (1 << PINC6); if (x[7]!=0) PORTC |= (1 << PINC7); */ count=0; while(count<8) { if (x[count]==0) //wenn bit=0 { ontime_null(); } if (x[count]!=0) //wenn bit=1
in „Probleme bei Timer gesteuertem Pin ein-und ausschalten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
ehigh(); _delay_us(1); //reicht eine Mikrosekunde? elow(); } uint8_t read(uint8_t RS){ if (RS) { PORTC |= (1<<PC3); //RS auf High DDRC |= (1<<DDC3); //PortC3 (RS) als Ausgang. Geht instantan auf High //RS muss High sein, damit Daten gelesen werden } else { PORTC &= ~(1<<PC3); //RS auf Low DDRC |= (1<<DDC3); //PortC3 (RS) als Ausgang. Geht instantan auf Low //RS muss Low sein, damit Busy-Flag abgefragt wird } PORTC |= (1<<PC2); //R/W auf High (Lese-Modus) DDRC |= (1<<DDC2); //PortC2 (R/W) als Ausgang. Geht instantan auf High //R/W muss
in „Eigene Library für PLED-LCD-Ansteuerung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
RN-Mega_Board.pdf
.4 = 1 Porte.3 = 1 Porte.2 = 1 Porte.1 = 1 Porte.0 = 1 Do 'Blöcke einzeln Portg.0 = 0 Portg.1 = 0 Portc.0 = 0 Portc.1 = 0 Portc.2 = 0 Portc.3 = 0 Portc.4 = 0 Portc.5 = 0 Portc.6 = 0 Portc.7 = 0 Waitms 500 Portg.0 = 1 Portg.1 = 1 Portc.0 = 1 Portc.1 = 1 Portc.2 = 1 Portc.3 = 1 Portc.4 = 1 Portc.5 = 1
in „ATmega2560 spinnt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
**********/ void ausgang_switcher_an() /******************************************************/ { PORTC=LATC | (1<<3); return; } /******************************************************/ void ausgang_switcher_aus() /******************************************************/ { PORTC=LATC &(~(1<<3)); return
in „PIC Port I/O mit HiTech C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ausschalt.c
Interrupts enablen OCR0 = 0; while(1) //Hauptschleife { if ((PINA&0x01)==0x00) //Taste gedrückt { PORTC |= 0x01; //LED1 einschalten (Debugg) count = 0; //zähler für Zeit zurücksetzen OCR0 = 255; //PWM - Ausgang einschalten // PORTC &= ~0x04; //LEDs debugg // PORTC |= 0x08; //LEDs debugg } else //Taste nicht gedrückt { start = 0x01; // Hilfsvariable für Zähler // PORTC |= 0x04; //LEDs debugg // PORTC &= ~0x08; //LEDs debugg } if((count >= adc_wert) && (start == 0x01)) { count = 0; PORTC = 0x00; // PORTC auf 0 (Debugg) start = 0x00; // Hilfsvariable auch auf 0 OCR0
in „ATMEGA16 Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Interrupt_programmation_des_Lesers.bas
'Variable zum reseten Dim A As Byte ' Dim X As Byte A = 0 ' X = Inkey() Ddrd = &HFE Config Sda = Portc.1 '' I2C Bus konfigurieren Config Scl = Portc.0 Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.3 , Rs = Portc.2 Config Lcd = 16 * 2 Cursor Off Noblink
in „RXC Interrupt Problem ( Bascom)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
empfangsmodul.c
TC=0; cbi(PORTC,2); cbi(PORTC,3); // Ensure that no Voltage is applied to the clock outp(0, TCNT1H); // reset TCNT1 outp(0, TCNT1L); /// reset TCNT1 ucRecive_Hour=0; ucRecive_Minute=0; usRecive_Time=0; Buffer=usTime
-
Datei
GPSSystem2.bas
portb.6|------>--------|RW | | | + '+ | portb.7|------>--------|ID | | | + '+ | | | | | | + '+ | portc.0|------<>-------|DAT0 | | | + '+ | portc.1|------<>-------|DAT1 | | | + '+ | portc.2|------<>-------|DAT2 | | | + '+ | portc.3|------<>-------|DAT3 | | | + '+ | portc.4|------<>-------|DAT4 | | | + '+ | portc.5|------<>-------|DAT5 | | | + '+ | portc.6|------<>-------|DAT6 |________________| | + '+ | portc.7|------<>-------|DAT7 | + '+ |________________| |________________________| + '+ + '+ Display + '+
in „KS0108B Displaytech 64128A“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ForumsPost.txt
PortA SW5 für "fahre 1cm auf" * PortA SW6 für "fahre 10cm ab" * PortA SW7 für "fahre 10cm auf" * * PortC P0 für Signal an den Motor "auf" * PortC P1 für Signal an den Motor "ab" * PortB P0 Eingang für das TaktSignal des HallSensor1 (20Pulse/3mm; 0,15mm/Puls) * möglich wären 40Pulse/3mm; 0,075mm/Puls wenn
in „Probleme bei der Usart initialisierung mit dem ATmega8515“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stoppuhr.c
uhr stoppen */ flag = 0; } else{ flag = 1; } PORTD = display_number[display]; switch(s1){ case 0: PORTC = display_decode[h2]; break; case 1: PORTC = display_decode[h1]; break; case 2: PORTC = display_decode[m2]; break; case 3: PORTC = display_decode[m1]; break; case 4: PORTC = display_decode[s2]; break; case 5: PORTC = display_decode[s1]; break; default: PORTC = 0x00; } } return 0; } SIGNAL(SIG_OVERFLOW1){/*timer interrupt*/ if(display <= 6){ display++; } else display = 0; if(flag == 1){ temp++; } if(temp == 1000
in „timer interrupt problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
6_Funkfernbedienung_V1.1.bas
Config Pinb.7 = Input Portb.7 = 1 ' Pullup aktivieren ' Config Portb.1 = Output ' für LED Config Portc.5 = Output ' für Sender Config Portc.4 = Output Config Portc.3 = Output ' Aliase zur Vereinfachung setzen ' ====================================================================================== ' Led Alias Portb.1 Sender_daten Alias Portc.5 Sender_strom1 Alias Portc.4 Sender_strom2 Alias Portc.3 ' Aliase für die Dip-Schalter Schalter_1 Alias Pind.0 Schalter_2 Alias Pind.1 Schalter_3 Alias Pind.2 Schalter_4 Alias Pind.3 Schalter_5 Alias
in „Sender für Funkfernsteuerung für Dorma-Torantriebe, z.B. Modell HS43“ · Projekte & Code ·
-
Datei
test.c
PORTA=0b00000000; // kein Pull-Up für A/D, Displayleitungen auf 0. DDRC= 0xFF; // alles Ausgänge PORTC=0x00; // und alle auf Null } void init_display(void) { _delay_ms(15); // Display muß nach dem Einschalten erst bereit sein PORTC=0b00111000; // Displayparameter (8bit, 2x8(!), 5x7); PORTA&=0b00011111
in „LCD will nicht funktionieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
komplette_Beschreibung.txt
& (1 << PB1)||(PINC & (1 << PC3))) //wenn PB1 oder PC3 High ist... { PORTC |= (1 << PC1); //PC1 High } if (PINB & (1 << PB0)||(PINC & (1 << PC2))) //wenn PB0 oder PC2 High ist... { PORTC |= (1 << PC0); //PC1 High } if (!(PINB & (1 << PB0))||!(PINC & (1 << PC2))) //wenn PB0 Low ist... { PORTC &= ~(1 << PC0); //PC0 Low } if (!(PINB & (1 << PB1))||!(PINC & (1 << PC3))) //wenn PB1 Low ist... { PORTC &= ~(1 << PC1); //PC1 Low } } return 0; }
in „ATMEGA8 Ausgang mit Timer schalten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
IRAtmega8.bas
'Mittlerer und gleich danebenliegender Kontakt: 'Mittlerer An Lo(0v) , Äußerer An Hi(+5v) 'Led An Portc.0 'Testleds An Portc.1 Und Portc.2 'Speichert 16 Fb-Tasten 'Beliebige Ir-Fernbedienung moderner Bauart, egal ob RC5 oder anderer Code '1) Starten '2) Tasten 1 -9 / 0 / * # ABCD auf FB auswählen '3)
in „Atmega - Jede beliebige IR-Fernbedienung erkennen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
IRAtmega8.bas
'Mittlerer und gleich danebenliegender Kontakt: 'Mittlerer An Lo(0v) , Äußerer An Hi(+5v) 'Led An Portc.0 'Testleds An Portc.1 Und Portc.2 'Speichert 16 Fb-Tasten 'Beliebige Ir-Fernbedienung moderner Bauart, egal ob RC5 oder anderer Code '1) Starten '2) Tasten 1 -9 / 0 / * # ABCD auf FB auswählen '3)
in „Atmega - Jede beliebige IR-Fernbedienung erkennen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_8x24.inc
angeschlossen. ;---------------------------------------------------------------------------- .equ c1port=portc ;Port, an dem I/OC1 angeschlossen ist .equ c1=3 ;Pin, an dem I/OC1 angeschlossen ist ;---------------------------------------------------------------------------- .equ c2port=portc ;Port, an dem I/
in „Display Menü LCD 4x20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_8x24.inc
angeschlossen. ;---------------------------------------------------------------------------- .equ c1port=portc ;Port, an dem I/OC1 angeschlossen ist .equ c1=3 ;Pin, an dem I/OC1 angeschlossen ist ;---------------------------------------------------------------------------- .equ c2port=portc ;Port, an dem I/
in „init 8x24 LCD von Samsung mit 50530 Controller und PIC16F628“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
code.txt
auswählen 'LCD Konfigurieren Config Lcd = 16 * 2 ' 16*2 LCD auswählen Config Lcdpin = Pin , Db4 = Portc.3 , Db5 = Portc.2 , Db6 = Portc.1 , Db7 = Portc.0 , E = Portb.4 , Rs = Portd.7 ' LCD Pins initialisieren Config Porta.3 = Input 'Tastatur Reihen auf Eingang stellen Config Porta.2 = Input ' "" Config
in „Bascom Avr Alternative“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AT32TastenAbfrageundAnzeige1.bas
= 3686400 $hwstack = 100 $swstack = 100 $framesize = 100 $baud = 9600 Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.3 , Rs = Portc.2 Config Lcd = 16 * 2 Cursor Off Noblink Cls Config Kbd = Porta , Debounce = 70 , Delay = 10 Config Portd.7 = Output Dim
in „Passwort per Tastendruck um ein Zeichen minimieren,Getkbg“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
UDR = 'T'; } void run_stepper(int direction,int steps) { //Richtung festlegen if (direction==1) { PORTC |= (1<<PC0); // High = Linksdrehung } else { PORTC &=~(1<<PC0); // Low = Rechtsdrehung } //Motor um "n" Schritte drehen lassen for(int i=0;i<=steps;i++) { PORTC ^=(1<<PC0); _delay_ms(2); // 2 ms warten
in „Frage zum UART (ISR Vector)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVRTel21.c
|= 134; /* Port LC=C7=128 Ausgang! ( und PORTD 2) */ DDRC &= 191; /* Port RVLC=C6=64 Eingang! */ PORTC |= 64; /* RVLC an */ errorpcf(); /*als Test */ pause(); pause(); PORTC &= 191; /* RVLC aus */ wartezeit(); PORTC &= 127; /* LC low = abgehoben */ PORTD |= 4; /* PORTD2 high - zur Kontrolle */ if ( !(PINB &= 64)) /* wenn es klingelt, dann Impulse an RVLC; */ /* mit LC = low wird abgehoben */ { PORTC &= 127; /* LC low = abgehoben */ PORTD |= 4; /* PORTD2 high - zur Kontrolle */ wartezeit(); wartezeit(); wartezeit(); PORTC |=128; /* LC high = aufgelegt */ PORTD &=251; /* PORTD2 low - zur Kontrolle
in „neues WinAVR macht Probleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AT32TastenAbfrageundAnzeige1.bas
= 3686400 $hwstack = 100 $swstack = 100 $framesize = 100 $baud = 9600 Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.3 , Rs = Portc.2 Config Lcd = 16 * 2 Cursor Off Noblink Cls Config Kbd = Porta , Debounce = 70 , Delay = 10 Config Portd.7 = Output Dim
in „Passwort per Tastendruck um ein Zeichen minimieren,Getkbg“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_tools.c
delay_ms(1); } /** @brief Enable Leitung togglen @param none @return none */ void lcd_flash_e () { PORTC = PORTC | ( 1<<DDC5 ) ; // Enable = HIGH delay(100); // kurz warten, damit Flanke entsteht PORTC = PORTC & ~( 1<<DDC5 ) ; // Enable = LOW delay(100); // Warten, bis der durch Enable angelegte Befehl
in „LCD EAP204-4NLED funktioniert an Atmega16 W204B-NLW nicht??“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_tools.c
delay_ms(1); } /** @brief Enable Leitung togglen @param none @return none */ void lcd_flash_e () { PORTC = PORTC | ( 1<<DDC5 ) ; // Enable = HIGH delay(100); // kurz warten, damit Flanke entsteht PORTC = PORTC & ~( 1<<DDC5 ) ; // Enable = LOW delay(100); // Warten, bis der durch Enable angelegte Befehl
in „LCD zeigt nichts an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ATm48_Displaytest.asm
oberste KEY-Reihe (123) ; PB2 O E (Display) ; PB1 O RS (Display) ; Display .macro disp_d7_an sbi PORTC, 3 .endmacro .macro disp_d6_an sbi PORTC, 2 .endmacro .macro disp_d5_an sbi PORTC, 1 .endmacro .macro disp_d4_an sbi PORTC, 0 .endmacro .macro disp_d7_aus cbi PORTC, 3 .endmacro .macro disp_d6_aus cbi PORTC, 2 .endmacro .macro disp_d5_aus cbi PORTC, 1 .endmacro .macro disp_d4_aus cbi PORTC, 0 .endmacro .macro disp_en_an sbi PORTB, 2 .endmacro .macro disp_rs_an sbi PORTB, 1 .endmacro .macro disp_en_aus
in „Verzweifelt keine Anzeige am LCD“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
CD32test.asm
r16, 0x00 out DDRD, r16 ; Port D ist Eingang loop: sbic PIND, 0 cbi PORTC, 3 ; PL (PC3) auf OFF setzen, sbis PIND, 0 ; wenn Button 1 (PD1) gedrückt sbi PORTC, 3 sbic PIND, 1 ; CLK (PC5) auf ON setzen, sbi PORTC, 5 ; wenn Button 0 (PD0) gedrückt sbis PIND, 1 cbi PORTC, 5 sbic PINC, 4 ; LED 1 (PB1) einschalten, sbi PORTB, 1 ; wenn DIn (PC4) auf LOW geht sbis PINC, 4 cbi PORTB, 1 rjmp loop
in „ATMega8 - Tutorial-Fragen & CD32-Pad :-)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Akkulader4.bas
Chipselect 'SCK --> Portd.4 'Serial Clock 'SDI --> Portd.3 'Serial Data Input 'A/D-Wandler LTC2400 'CS --> Portc.2 'Chipselect 'SCK --> Portc.4 'Serial Clock 'SDO --> Portc.3 'Serial Data Output 'Temperatursensor DS1821 'DQ --> Portb.1 'Datenleitung '############################### Konstanten ################
in „AVR resettet auf mysteriöse Art“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Timer.c
********************************************* Notes: JTAGEN = 1 , notwendig für die Benutzung von PORTC! ****************************************************************************/ #include <io.h> // Wir brauchen Zugriff auf die I/O's des Controllers #include <avr/interrupt.h> #include <avr/signal.h
in „Mega32, Problem mit Counter und Compareregister“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Temp_Host.c
int8_t Nummer); void Segment(); void DispAus(); void Berechne(); void LM75(int8_t ID); // Und los gehts int main() { // Ausgänge konfigurieren PORTD=0x00; PORTB=0xFF & ~(1<<0 | 1<<1); PORTC=0xFF; DDRD=0xFF; DDRC=0x00; DDRB= 1<<0 | 1<<1; //Timer 0 zum weiterschalten der Anzeige //TCCR0= 0<<CS02 | 1<<CS01
in „C, Variable 0xFF wird als !=0xFF erkannt?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_tools_dog.c
delay_ms(1); } /** @brief Enable Leitung togglen @param none @return none */ void lcd_flash_e (void) { PORTC = PORTC | ( 1<<DDC5 ) ; // Enable = HIGH delay(100); // kurz warten, damit Flanke entsteht PORTC = PORTC & ~( 1<<DDC5 ) ; // Enable = LOW delay(100); // Warten, bis der durch Enable angelegte Befehl
in „Kontrast EA DOG 162“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
temperatur.c
unsigned int wert) { int i, code = 0; for (i=0; i<8; i++) { code = (wert & codes[i]); if (code) { PORTC = zahl[1]; } else { PORTC = zahl[0]; } _delay_ms(500); PORTC = 0x00; _delay_ms(100); } } int main (void) { DDRD = 0xFF; DDRC = 0xFF; PORTD = seg[2]; int ergebnis = wire_reset(); if (ergebnis == 1)
in „Kleines Timingproblem beim DS1820“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
temperatur.c
unsigned int wert) { int i, code = 0; for (i=0; i<8; i++) { code = (wert & codes[i]); if (code) { PORTC = zahl[1]; } else { PORTC = zahl[0]; } _delay_ms(500); PORTC = 0x00; _delay_ms(100); } } int main (void) { DDRD = 0xFF; DDRC = 0xFF; PORTD = seg[2]; int ergebnis = wire_reset(); if (ergebnis == 1)
in „Code gibt immer den gleichen Binärcode aus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
6_Funkfernbedienung.bas
Input Portb.6 = 1 ' Pullup aktivieren Config Pinb.7 = Input Portb.7 = 1 ' Pullup aktivieren Config Portc.5 = Output ' für Sender Config Portc.4 = Output Config Portc.3 = Output ' Aliase zur Vereinfachung setzen ' ====================================================================================== Sender_daten Alias Portc.5 Sender_strom1 Alias Portc.4 Sender_strom2 Alias Portc.3 ' Aliase für die Dip-Schalter Schalter_1 Alias Pind.0 Schalter_2 Alias Pind.1 Schalter_3 Alias Pind.2 Schalter_4 Alias Pind.3 Schalter_5 Alias
in „Sender für Funkfernsteuerung für Dorma-Torantriebe, z.B. Modell HS43“ · Projekte & Code ·
-
Datei
test_uart.c
receiving a sign via serial Interface { uint8_t data; data = UDR; switch (data) { case 'a': {ToggleBit(PORTC,PC0); break;} case 'b': {ToggleBit(PORTC,PC1); break;} case 'c': {ToggleBit(PORTC,PC2); break;} case 'd': {ToggleBit(PORTC,PC3); break;} } } int main(void) { uint8_t i; //Initialization UART UBRRH=
in „!!dringend!! Datenübertagung mit UART - AT89S8252 !?!?!?!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Akkulader5.bas
Chipselect 'SCK --> Portd.4 'Serial Clock 'SDI --> Portd.3 'Serial Data Input 'A/D-Wandler LTC2400 'CS --> Portc.2 'Chipselect 'SCK --> Portc.4 'Serial Clock 'SDO --> Portc.3 'Serial Data Output 'Temperatursensor DS1821 'DQ --> Portb.1 'Datenleitung '############################### Konstanten ################
in „DS1821 Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Beleuchtung_vorlaeufig.txt
Treppenbeleuchtung '* Funktion 1 : Sensor unten/S1 (Beleuchtung startet von unten nach oben/Beleuchtung geht von der Mitte nach oben und unten aus) '* Funktion 2 : Sensor oben /S2 (Beleuchtung startet von oben nach unten/Beleuchtung geht von der Mitte nach oben und unten aus) '* Hinweis 1 : LED1 = LED der
in „Atmega 8 / Abfrage einer bestimmten Reihenfolge“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
programm.txt
" // Notwendig für Assembler Befehle #define LCD_D6 PORTA.4 #define LCD_D7 PORTA.5 #define LCD_D5 PORTC.2 #define LCD_RS PORTC.3 #define LCD_E PORTC.4 #define LCD_D4 PORTC.5 unsigned char x; // unsigned char z; // unsigned char z2; // unsigned char LCD_DATA; // void AUSGABE(void); void LCD_INIT(void)
in „LCD-Display ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dmx_empfangTester.asm
ohne RS zu setzen cli push temp2 push temp1 mov temp2, temp1 swap temp1 andi temp1, 0b00001111 out PORTC, temp1 rcall lcd_enable andi temp2, 0b00001111 out PORTC, temp2 rcall lcd_enable rcall delay50us pop temp1 pop temp2 sei ret ;***** erzeugt den Enable-Puls ************************ lcd_enable: sbi PORTC, 5 ;Enable high nop ;3 Taktzyklen warten nop nop cbi PORTC, 5 ;Enable wieder low ret ;Und wieder zurück ;***** Pause nach jeder Übertragung ******************* delay50us: ;50us Pause push temp1 ldi
in „ATMEGA128: Resetsignal zwischen UART-Übertragung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.c
Befehl */ else set_rs(1); /* RS=1 => Zeichen */ wait_ms(waitcycles * 2); set_e(1); /* Hi byte */ PORTC &= 0x0F; PORTC |= (value & 0xf0); set_e(0); set_e(1); /* Lo byte */ PORTC &= 0x0F; PORTC |= ((value & 0x0F) * 0x10); set_e(0); } /* Wartezeit in Millisekunden bei fck = 8.000 MHz */ void wait_ms(int
in „Komisches Verhalten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
fahrwerk.c
/ Neuen Spannungswert ausgeben } else { OCR0 = 0; // kleiner geht nicht } } } if ((volt_machine[x] >= 535) && (control > 0)) // Rückwärts --> 2,61V bis 5V { offset[x] = setpoint - (1023 - volt_machine[x]); // Regeldifferenz berechnen PORTC = 0; if (offset[x] < 0)
in „mmh wer findet den Fehler?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVRTelx093.c
. * ISD-Probleme: * Das Weitertakten dauert ziemlich lange, * ohne die Verzögerung durch errorpcf geht es nicht; * Für die Sprachausgabe muß CE so lange low sein, wie die * Ausgabe dauert (vgl. Sound 1, dort genügt manchmal (!!!) * ein kurzes Antippen. * Es gab elektrische (Kontakt-)Probleme mit CE-Puls
in „beginnt Ablauf nict mehr bei main?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
digiuhr.c
PORTD |= BV(7); else PORTD &= ~BV(7); // 5. Spalte (S5) if (PRG_RDB(&zahlen[zeile][startidx + 4])) PORTC |= BV(0); else PORTC &= ~BV(0); } //------------------------------------------------------------------------------------------------------------------------------- //-------------------------------
in „DCF-Uhr mit DotMatrix-Anzeige für avr-gcc“ · Projekte & Code ·
-
Datei
Test3.c
Count_Servo2 = 0; } ISR(TIMER2_COMPA_vect) { if(Count_Servo1 <= 17 ){ if(NrOverflow_Servo1 % 2 == 0) PORTC &= ~(1 << PC0); else {PORTC |= (1 << PC0);} NrOverflow_Servo1++; if( NrOverflow_Servo1 == sizeof(Array_Servo1) / sizeof(unsigned char) ) NrOverflow_Servo1 = 0; OCR2A = Array_Servo1[ NrOverflow_Servo1
in „Timer stören sich gegenseitig“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
BT_AVR_Studio_6_1.pdf
Die Auswahl erfolgt durch ver- schieben des Reiters und anschliessend mit Set bestätigen. Weiter geht es mit einem Klick auf Memories. BT – AVR Studio 6 / Teil 1 8 AVR – Studio 6 / Teil 1 Es kommt das nächste Bild. Hier kann ich die Datei aus- wählen, die ich übertragen Auswahl der Datei möchte. Dabei
in „Programm auf µC laden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test.asm
OutLcdControl BTFSS PORTD, 6 call OUT24 BTFSS PORTD, 5 call OUT23 BTFSS PORTD, 4 call OUT22 BTFSS PORTC, 7 call OUT21 BTFSS PORTC, 6 call OUT20 BTFSS PORTC, 5 call OUT19 BTFSS PORTC, 4 call OUT18 BTFSS PORTD, 3 call OUT17 BTFSS PORTD, 2 call OUT16 BTFSS PORTD, 1 call OUT15 BTFSS PORTD, 0 call OUT14 BTFSS PORTC, 3 call OUT13 BTFSS PORTC, 2 call OUT12 BTFSS PORTC, 1 call OUT11 BTFSS PORTC, 0 call OUT10 BTFSS PORTE, 2 call OUT9 BTFSS PORTE, 1 call OUT8 BTFSS PORTE, 0 call OUT7 BTFSS PORTA, 5 call OUT6 BTFSS
in „PIC - Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mega8.txt
Initialisierung out SPH,R16 ldi R16,lo8(RAMEND) out SPL,R16 ; Ports B2-5 werden durch SPI-Init festgelegt ; PORTC0 für ADC sbi DDRC,1 ; PORTC1 als Ausgang (SS1) sbi PORTC,1 ; Pegel high sbi DDRC,2 ; PORTC2 als Ausgang (SS2) sbi PORTC,2 ; Pegel high cbi DDRC,3 ; PORTC3 als Eingang (Slave-Rückmeldung) sbi PORTC,
in „SPI Kopplung von ATmega8 und ATtiny 2313“ · Projekte & Code ·
-
Datei
temp_zum_pc.asm
res2: .byte 1 count_re: .byte 1 count_pc: .byte 1 crc: .byte 1 id_rom: .byte 1 .cseg .org 0 ; hier geht das Programm los ; Interrupt-Vektoren ; reset: rjmp start ;Programm-Start intr0: reti ;External Interrupt Request 0 intr1: reti ;External Interrupt Request 1 t2comp: reti ;Timer/Counter2 Compare Match
in „Temperatur DS1820 ausgabe auf lcd“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AT32MENU_Int_anzeige_Abfrage_Passwort.bas
Erweiterte Einstellungen Config Portb.2 = Output Config Portb.3 = Input ' Einstellungen zum LCD Config Portc = Output Config Portd.7 = Output Config Portd.6 = Output Config Portd.5 = Output Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.3 , Rs = Portc.2 Config
in „Variabeln ändern in ISR“ · Mikrocontroller und Digitale Elektronik ·