-
Datei
PORTC.c
1; cli(); MCUCSR |= 0x80; // 1 in JTD Bit festnageln. MCUCSR |= 0x80; // 1 in JTD Bit festnageln. PORTC = 0; while(1) { z = 1; } }
in „ATmega16 Probleme bei der PORTC Nutzung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PORTC.c
MCUCSR |= 0x80; // 1 in JTD Bit festnageln. MCUCSR |= 0x80; // 1 in JTD Bit festnageln. DDRC = 0xff; PORTC = 0; while(1) { z = 1; } }
in „ATmega16 Probleme bei der PORTC Nutzung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Kino.bas
B00100000 Gosub Warten Portb = &B01000000 Gosub Warten Portb = &B10000000 Gosub Warten Portb = &B00000000 Portc = &B00000001 Gosub Warten Portc = &B00000010 Gosub Warten Portc = &B00000100 Gosub Warten Portc = &B00001000 Gosub Warten Portc = &B00010000 Gosub Warten Portc = &B00100000 Gosub Warten Portc = &B01000000
in „32-Kanal Lauflicht mit ATMega16“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
(100); PORTC = 0b11110110; _delay_ms(100); PORTC = 0b11101101; _delay_ms(100); PORTC = 0b11011011; _delay_ms(100); PORTC = 0b11110110; _delay_ms(100); PORTC = 0b11101101; _delay_ms(100); PORTC = 0b11011011; _delay_ms(100); PORTC = 0b11110110; _delay_ms(100); PORTC = 0b11101101; _delay_ms(100); PORTC = 0b11011011; _delay_ms(100); PORTC = 0b11110110; _delay_ms(100); PORTC = 0b11101101; _delay_ms(100); PORTC = 0b11011011; _delay_ms
in „Mein erstes Programm Code kürzen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LED_CUBE.c
); // HIGH setzen PORTC |= (1<<PORTC4); // HIGH setzen PORTC |= (1<<PORTC3); // HIGH setzen PORTC |= (1<<PORTC2); // HIGH setzen PORTC |= (1<<PORTC1); // HIGH setzen //alle Säulen High jetzt Ebenen von unten nach oben high
in „ATmega8 kleiner LED-Cube“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NAND.c
PORTC &= ~(1<<WE); PORTA = 0x00; PORTC |= (1<<WE); PORTC &= ~(1<<WE); PORTA = 0x00; PORTC |= (1<<WE); PORTC &= ~(1<<WE); PORTA = 0x00; PORTC |= (1<<WE); PORTC &= ~(1<<ALE); PORTA = 0x00; //!WEnn das nicht
in „Problem beim NAND-Flash ansteuern mit Mega32“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
clocktest.c
} void LCDoff() { // ---- On/off control 00001dcb ---- cbi(PORTB, RS); //RS=Instruction cbi(PORTC, DB4); // cbi(PORTC, DB5); // cbi(PORTC, DB6); // cbi(PORTC, DB7); // sbi(PORTB, EN); // Delay625us(); cbi(PORTB, EN); // cbi(PORTC, DB4); // cbi(PORTC, DB5); // cbi(PORTC, DB6); // sbi(PORTC, DB7)
in „For-Endlosschleife in Main funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname3.bas
Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Portc = &B00000000 Waitms 100 Portd.5 = 1 End If If Pind.3 = 1 Then A = A - 250 Portd.5 = 1 Do
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
pasta.c
=0b00000000; PORTC=0b00000000; PORTD=0b00000000; _delay_us(3); } if (g==5) { PORTB=0b00000000; PORTC=0b00000000; PORTD=0b00000000; _delay_ms(1); } if (g==6) { g=0; } else if (g==0) { PORTB=0b00000000; PORTC=0b00000010
in „If Else geht nicht“ · Mikrocontroller und Digitale Elektronik ·
-
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
ltc1257macro.asm
.macro DACOUT ;Ausgabe Registerpaar auf LTC1257 Bit 15 - 4 ;Ruhezustand PORTC,5 = L PORTC,7 = H sbrc @1,7 ;if Bit 7 MSB (Bit 11 DAC) = 1 then sbi PORTC,6 ; LTC1257 Din = H sbrs @1,7 ;else cbi PORTC,6 ; LTC1257 Din = L sbi PORTC,5 ;LTC1257 Clock = H nop cbi PORTC,5 ;LTC1257 Clock
in „LTC1257 - Problem mit Ansteuerung (SPI)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test2.c
(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC&=0x00; //Portc =0 sbi(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC|=0x80; //D7=1 sbi(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC&=0x00; sbi(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC|=0x10; sbi(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC&=0x00; sbi(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC|=0x60; //D6=1 i/D=1 und s=0 sbi(PORTC,2); zeit_ms(2); cbi(PORTC,2); PORTC=0x00; /
in „Probleme mit Funktionen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
eight_pre.txt
|= (1<<5); PORTC |= (1<<0); PORTC &= ~(1<<1); PORTC &= ~(1<<2); PORTC |= (1<<3); PORTC |= (1<<4);} // 4 if ( i == 5 ) { PORTB |= (1<<4); PORTB &= ~(1<<5); PORTC |= (1<<0); PORTC |= (1<<1); PORTC &= ~(1<<2); PORTC |
in „myAVR PORT Expander“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD.asm
PORTC,3 ; E nop bcf PORTC,3 ; E movlw 0x0F andwf PORTC,f ;Höherwertiges Nibble löschen swapf TEMP1,w andlw 0xF0 ;Niederwert. Nibble ausmaskieren iorwf PORTC,f ;Low-Nibble an LCD übergeben BSF PORTC,3 ; durch
in „LCD mit pic16F690“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LED.txt.txt
(Bypass offen) Loop Warten: Set Portc.1 Waitms 400 Reset Portc.1 Set Portc.2 Waitms 400 Reset Portc.2 Set Portc.3 Waitms 400 Reset Portc.3 Set Portc.1 Set Portc.2 Waitms 400 Reset Portc.1 Reset Portc.2 Set Portc.3 Set Portc.1 Waitms 400 Reset Portc.3 Reset Portc.1 Set Portc.2 Set Portc.3 Waitms 400 Reset Portc.2 Reset Portc.3 Set Portc.1 Set Portc.2 Set Portc.3 Waitms 400 Reset Portc.1 Reset Portc.2 Reset Portc.3 Return Flash: Set Portc.1 Set
in „Was mach ich nur falsch :-(“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Tic-Tac-Touch.c
&= ~(1 << PC3); } if(player==1) { PORTC |= (1 << PC3); //Zeile 1 PORTC &= ~(1 << PC3); } break; case 3: if(player==0) { PORTC |= (1 << PC3); //Zeile 1 PORTC |= (1 << PC0); // Spalte 7 //_delay_ms(1); PORTC &= ~(1 << PC3); PORTC &= ~(1 <<
in „RGB Matrix 3x3“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_Belichter_mit_min_sek..bas
Belichten " Locate 2 , 2 Lcd "abgeschlossen!" 'Relais aus Waitms 500 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Wait 2 Cls Return
in „Timer für Belichtungsgerät (Wie und Woher) bitte um Mithilfe“ · Platinen ·
-
Datei
LCD_Belichter_mit_min_sek..bas
Belichten " Locate 2 , 2 Lcd "abgeschlossen!" 'Relais aus Waitms 500 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Sound Portc.4 , 300 , 200 Sound Portc.4 , 300 , 400 Wait 2 Cls Return
in „Timer für Belichtungsgerät (Wie und Woher) bitte um Mithilfe“ · Platinen ·
-
Datei
noname3.bas
= 0 S = H E = A End If Next X Portc = &B00000000 Shiftout Portc.2 , Portc.0 , E , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , E , 0 , 16 Portc = &B00000000 Shiftout Portc.2 , Portc.0 , E , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , E , 0 , 16 Portc = &B00000000 Shiftout Portc.2 , Portc.0 , E , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , E , 0 , 16 Portc = &B00000000 Portd.6 = 1 Waitms 200 Portd.6 = 0
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Nim.txt
.6 = 0 Portc.6 = 1 Portc.4 = 1 portc.3 = 1 Case &B0010 : Porta.0 = 1 Porta.1 = 1 Porta.3 = 0 Porta.6 = 1 Portc.6 = 0 Portc.4 = 1 portc.3 = 1 Case &B0011 : Porta.0 = 1 Porta.1 = 1 Porta.3 = 0 Porta.6 = 0 Portc.6 = 0 Portc.4 = 1 portc.3 = 1 Case &B0100 : Porta.0 = 1 Porta.1 = 1 Porta.3 = 1 Porta.6 = 0 Portc.6 = 0 Portc.4 = 0 Portc.3 = 0 Case &B0101 : Porta.0 = 1 Porta.1 = 0 Porta.3 = 0 Porta.6 = 0 Portc.6 = 0 Portc.4
-
Datei
noname5.bas
= 1 Then A = A + 10 Else A = A -10 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 20 S = Getadc(2) S = Getadc(2) D = S / 1024 D = D * 5 If A = &B1111111111111111 Then A
in „PLL per Software“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname5.bas
1 Then A = A + 10 Else A = A -10 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 20 S = Getadc(2) S = Getadc(2) D = S / 1024 D = D * 5 If A = &B1111111111111111 Then A
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Quellcode_Sand_funktioniert.txt
zwar erreicht waitMs(250); // aber nochmals den Zylinder drucklos machen PORTC=0; waitMs(100); PORTC=1; // Ausgang 1 Ventil Scharnier zu waitMs(2000); PORTC=0; waitMs(10); PORTC=16; // Ausgang 16 Freigabe Absaugung ein } // Ende 1 Klappe ist normal zugegangen else { do { PORTC
in „Brauche Hilfe AT Mega 8 im Raum Bremen evlt. vor Ort“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
steppercontroller.c
==2&&xstepin==1) { PORTC|=(1<<PC2); _delay_ms(50);//Pause xstep++; xstepin=0; PORTC&=~(1<<PC2); } else if(xstep==3&&xstepin==1) { PORTC|=(1<<PC3); PORTC|=(1<<PC4);// StatusLED stepperdriverboard X _delay_ms(50);//Pause PORTC
in „Schrittmotor Steuerung Atmega16 Interrupt Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mech_Stoppuhr.cc
= 0xA0; PORTC = 0x68; break; case 6: PORTA = 0xA0; PORTC = 0x78; break; case 7: PORTA = 0x08; PORTC = 0x28; break; case 8: PORTA = 0xA8; PORTC = 0x78; break; case 9: PORTA = 0xA8; PORTC = 0x38; break; } } void Ausgabe
in „Tasterabfrage_Stoppuhr_funktioniert_nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCDm8.c
= PORTC & 0xfb; //enable abfallende Flanke erzeugen PORTC = PORTC | 0x04; //enable flanke vorbereiten PORTB = 0x0f; //Display ON/OFF: Display ein, Cursoer ein, Cursor blinken warte(40); PORTC = PORTC & 0xfb
in „4*20 zeilen lcd an mega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Endprogramm.bas
Ac = 1 To 8 Step 1 Fc = Ac / 5 Runter Gc = Cos(fc) Gc = Gc * 10 Bc = Gc Do Ledaus Portc.3 = 0 Waitms 2 Portc.3 = 1 Ledein Waitms 2 Bc = Bc - 1 Loop Until Bc < 1 Rechts Hc = Sin(fc) Hc = Hc * 10 Dc = Hc Do Ledaus Portc.2 = 0 Waitms 2 Portc.2 = 1 Ledein Waitms 2 Dc = Dc - 1 Loop Until Dc
in „Programmierung mit Bascom“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
robotter.c
{ dir_x= 0; PORTC.0 = 0; PORTC.1 = 1; } else if (count_x >= x_soll) { dir_x= 1; PORTC.0 = 1; PORTC.1 = 0; } return 0; } else // Stop - Position Erreicht { PORTC.0 = 0; PORTC.1 = 0; return 1; } } } // ####### Funktion
in „suche programmierbarer 8 bit counter“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Quellcode_SAND.txt
|=(1<<3); // Ausgang 3 Ventil Klappe zu waitMs(500); PORTC &= ~(1<<3); waitMs(200); PORTC |=(1<<3); waitMs(50); PORTC &= ~(1<<3); waitMs(50); PORTC |=(1<<3); waitMs(50); PORTC &= ~(1<<3); waitMs(50); PORTC |=(1<<0); // Ausgang 0 Ventil Scharnier zu waitMs(
in „Brauche Hilfe AT Mega 8 im Raum Bremen evlt. vor Ort“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname3.bas
= 1 Then A = A + 10 Else A = A -10 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 20 S = Getadc(2) D = S * 5 D = D \ 1024 If A = &B1111111111111111 Then A = 0 Loop Until
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname31.txt
= 1 Then A = A + 10 Else A = A -10 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 20 S = Getadc(2) D = S * 5 D = D \ 1024 If A = &B1111111111111111 Then A = 0 Loop Until
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname32.txt
Do N = 0 If M = 1 Then A = A + 20 Else A = A -20 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 15 S = Getadc(2) D = S * 5 D = D \ 1024 Loop Until D < 3.1 Startfm: Portd.5 = 1 Do If M
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
noname31.txt
= 1 Then A = A + 10 Else A = A -10 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 20 S = Getadc(2) D = S * 5 D = D \ 1024 If A = &B1111111111111111 Then A = 0 Loop Until
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
radio1.bas
= 1 Then A = A + 10 Else A = A -10 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000010 Shiftout Portc.2 , Portc.0 , A , 0 , 16 Portc = &B00000000 Waitms 20 S = Getadc(2) D = S * 5 D = D \ 1024 If A = &B1111111111111111 Then A = 0 Loop Until
in „Einfaches Radio basteln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lc7981.c
PORTD=0b00000100; PORTD=0b00110000; lcd_strobe_enable(); //INSTRUCTION PORTC&=~(1<<PC2); PORTC|=(1<<PC1); PORTD=0b00000001; lcd_strobe_enable(); //DATA PORTC&=~(1<<PC2); PORTC&=~(1<<PC1); PORTD=0b00010011; lcd_strobe_enable(); //INSTRUCTION PORTC&=~(1<<PC2); PORTC|=(1<<PC1); PORTD=0b00000011; lcd_strobe_enable(); //DATA PORTC&=~(1<<PC2); PORTC&=~(1<<PC1); PORTD=0b01111111; lcd_strobe_enable(); //INSTRUCTION PORTC&=~(1<<PC2); PORTC|=(1<<PC1); PORTD=0b00001000; lcd_strobe_enable(); //DATA PORTC&=~(1<<PC2); PORTC&=~(1<<PC1
in „Problem Display Init MEGA 128“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Billard_Counter.bas
= 1 Portc.7 = 1 Case 4 : Portc.4 = 0 Portc.5 = 1 Portc.6 = 0 Portc.7 = 0 Case 5 : Portc.4 = 0 Portc.5 = 1 Portc.6 = 0 Portc.7 = 1 Case 6 : Portc.4 = 0 Portc.5 = 1 Portc.6 = 1 Portc.7 = 0 Case 7 : Portc.4 = 0 Portc.5 = 1 Portc.6 = 1 Portc.7 = 1 Case 8 : Portc.4 = 1 Portc.5 = 0 Portc.6 = 0 Portc.7 = 0 Case 9 : Portc.4 = 1 Portc.5 = 0 Portc.6 = 0 Portc.7 = 1 End Select Waitms 500 Loop '############### Hoch / Runter
in „15x 7-Segmentanzeigen (5x 3er) mit Bascom“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
d_mmerungsschalter.c
<<PORTC0); PORTC &= ~(1<<PORTC0); //PORTC.1 auf Ausgang und High schalten DDRC |= (1<<PORTC1); PORTC |= (1<<PORTC1); } //------------------------------------------------------------------------------ // PORTC
in „Dämmerungsschalter mit 3mm LED als Lichtsensor und Anzeige“ · Projekte & Code ·
-
Datei
Endprogramm.bas
Ac = 1 To 8 Step 1 Fc = Ac / 5 Runter Gc = Cos(fc) Gc = Gc * 10 Bc = Gc Do Ledaus Portc.3 = 0 Waitms 2 Portc.3 = 1 Ledein Waitms 2 Bc = Bc - 1 Loop Until Bc < 1 Rechts Hc = Sin(fc) Hc = Hc * 10 Dc = Hc Do Ledaus Portc.2 = 0 Waitms 2 Portc.2 = 1 Ledein Waitms 2 Dc = Dc - 1 Loop Until Dc
in „Programmierung mit Bascom“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
port80.c
#ifndef USART_C #define USART_C #define BAUD 51 //(500000/9600)-1 #endif */ #define BIT_LED_RD_ON PORTC &= ~(1<<PORTC7) #define BIT_LED_GN_ON PORTC &= ~(1<<PORTC6) #define HEAT_RED_ON PORTC &= ~(1<<PORTC5) #define HEAT_GREEN_ON PORTC &= ~(1<<PORTC4) #define BIT_LED_RD_OFF PORTC |= (1<<PORTC7) #define
in „16 Bit Timer läuft nicht an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
port80.c
#ifndef USART_C #define USART_C #define BAUD 51 //(500000/9600)-1 #endif */ #define BIT_LED_RD_ON PORTC &= ~(1<<PORTC7) #define BIT_LED_GN_ON PORTC &= ~(1<<PORTC6) #define HEAT_RED_ON PORTC &= ~(1<<PORTC5) #define HEAT_GREEN_ON PORTC &= ~(1<<PORTC4) #define BIT_LED_RD_OFF PORTC |= (1<<PORTC7) #define
in „16 Bit Timer läuft nicht an“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
port80.c
#ifndef USART_C #define USART_C #define BAUD 51 //(500000/9600)-1 #endif */ #define BIT_LED_RD_ON PORTC &= ~(1<<PORTC7) #define BIT_LED_GN_ON PORTC &= ~(1<<PORTC6) #define HEAT_RED_ON PORTC &= ~(1<<PORTC5) #define HEAT_GREEN_ON PORTC &= ~(1<<PORTC4) #define BIT_LED_RD_OFF PORTC |= (1<<PORTC7) #define
in „LM75 auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
read_cf_as.asm
hi_byte0 NOP BSF PORTC,OE ;Leseimpuls wieder High NOP NOP nop BCF PORTC,OE ;Leseimpuls NOP NOP NOP movf PORTD,W ;PortD speichern movwf lo_byte1 NOP BSF PORTC,OE ;Leseimpuls wieder High NOP NOP nop BCF PORTC,OE ;Leseimpuls NOP NOP NOP movf PORTD,W ;PortD speichern movwf hi_byte1 NOP BSF PORTC,OE ;Leseimpuls wieder High NOP NOP nop BCF PORTC,OE ;Leseimpuls NOP NOP NOP movf PORTD,W ;PortD speichern movwf lo_byte2 NOP BSF PORTC,OE ;Leseimpuls wieder High NOP NOP nop BCF PORTC,OE ;Leseimpuls
in „CompactFlasch-Karte im Memory Mode ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SIMPLE_STEPP.txt
SYSTEM STARTS UP ..." S = "" Wait 3 Cls Lcd "ONLINE..." Print "ONLINE..." Do If Pina.7 = 1 Then S = "" Portc.0 = 0 Portc.1 = 0 Portc.2 = 1 Portc.3 = 0 Portc.4 = 0 Print "NOTAUS" Locate 2 , 1 Lcd "+++++NOTAUS+++++" End If If S = "l" Then ' kleines L Portc.0 = 0 Portc.2 = 0 Toggle Portc.1 'TOGGLE BEFEHL SCHALTET DEN PORT AUTOMATISCH ZWISCHEN 0 und 1 um Elseif S = "r" Then Portc.0 = 1 Portc.2 = 0 Toggle Portc.1 Elseif S = "v" Then Portc.3 = 0 Portc.2 = 0 Toggle Portc.4 Elseif S = "b" Then Portc.3 = 1 Portc.2 = 0 Toggle Portc.4 Elseif S = "#" Then Portc.0 = 0 Portc.1 = 0 Portc
in „AVR + Schrittmotor + Bascom verständnisproblem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FOR_NEXT.BAS
------------------------------------------------------------------ Anzeige_leer: For A = 1 To 200 Portc.1 = 0 Portc.0 = 1 Portc.0 = 0 Next A For A = 1 To 200 Portc.1 = 0 Portc.0 = 1 Portc.0 = 0 Next A Portc.7 = 1 Portc.7 = 0 Return '--------------------------------------------------------- Anzeigen:
in „Hilfe zu Display aus Jura Impressa“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Neues_Textdokument.txt
WARTEN A3: sei out PORTA, P6 ldi var, 213 out PORTC, var ldi var, 87 out PORTD, var rjmp WARTEN A4: sei out PORTA, P6 ldi var, 234 out PORTC, var ldi var, 171 out PORTD, var rjmp WARTEN A5: sei out PORTA, P5 ldi var, 213 out PORTC, var ldi var, 87 out PORTD, var rjmp WARTEN A6: sei out PORTA, P5 ldi var, 234 out PORTC, var ldi var, 171 out PORTD, var rjmp WARTEN B1: sei out PORTA, P4 ldi var, 213 out PORTC, var ldi var, 87 out PORTD, var rjmp WARTEN B2: sei out PORTA, P4 ldi var, 234 out PORTC, var ldi var, 171
in „AVR Studio 5 -- Array außerhalb vom index ?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Berufsschule.c
time) // Laufkatze 9 { setbit(PORTC,6); // setzen von Laufkatze 9 setbit(PORTC,7); // setzen hochziehen Stufe 1 _delay_ms(90000); // Zeitverzögerung in ms clearbit(PORTC,6); // Zurücksetzen von Laufkatze Ausgang clearbit(PORTC,0); // Zurücksetzen von Joystick } if (Zeitlk10 == time) // Laufkatze 10 { setbit(PORTC,6); // setzen von Laufkatze 10 setbit(PORTC,0); // setzen hochziehen Stufe 1 _delay_ms(90000); // Zeitverzögerung in ms clearbit(PORTC,7); // Zurücksetzen von Laufkatze 10 Ausgang clearbit(PORTC,0)
in „ISR springt nicht mehr raus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Pulsein_1.bas
Messung <= 150 Then ' Zustand = 0 Elseif Messung > 151 Then Zustand = 1 End If Loop End Allesaus: Portc.0 = 0 Portc.1 = 0 Portc.2 = 0 Portc.3 = 0 Portc.4 = 0 Portc.5 = 0 Return Standbel: Portc.0 = 1 Portc.1 = 1 Portc.2 = 1 Portc.3 = 1 Waitms 80 Portc.3 = 0 Waitms 120 Portc.4 = 1 Waitms 80 Portc.4 = 0 Waitms 120 Portc.5 = 1 Waitms 20 Portc.5 = 0 Waitms 50 Portc.5 = 1 Waitms 20 Portc.5 = 0 Waitms 50 Portc.5 = 1 Waitms 20 Portc.5 = 0 Waitms 200 Return Flugbel: Portc.0 = 1 Waitms 200 Portc.0 = 0 Return
in „RC Kanal auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
audior.asm
möglich ist sbrc AdresseHigh, 2 sbi PORTC, A8 cbi PORTC, A9 ;A9 Ausgeben, ist beim AVR etwas kompliziert, da kein direkter Bit -> IO Transfer möglich ist sbrc AdresseHigh, 3 sbi PORTC, A9 nop cbi PORTB, LCAS ;Spalten Adresse im DRAM Speichern
in „2MB DRAM an AVR“ · Projekte & Code ·
-
Datei
glcdtest.c
); // Enable sbi(PORTC,2); wait(1000); cbi(PORTC,2); // Y adress -> 0 outp(0x40, PORTA); // Enable sbi(PORTC,2); wait(1000); cbi(PORTC,2); cbi(PORTC, 3); // Initialize controller 2 sbi(PORTC, 4); // Startline -> 0 outp(0xc0
in „GLCD Initialisierungs-Anweisungen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_library.txt
if(a == eS_PORTB6) PORTB &= ~(1<<PB6); else if(a == eS_PORTB7) PORTB &= ~(1<<PB7); else if(a == eS_PORTC0) PORTC &= ~(1<<PC0); else if(a == eS_PORTC1) PORTC &= ~(1<<PC1); else if(a == eS_PORTC2) PORTC &= ~(1<<PC2); else if(a == eS_PORTC3) PORTC &= ~(1<<PC3); else if(a == eS_PORTC4) PORTC &= ~(1<<PC4);
in „LCD Initialisierung funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·