-
Datei
main.c
delay_ms(10); PORTC=0x03; // 30hex ins SR en(); delay_ms(2); PORTC=0x03; // 30hex ins SR en(); delay_ms(2); PORTC=0x02; // 20 hex ins SR (4BitMode) en(); PORTC=0x02; // system set 28h en(); PORTC=0x08; en(); PORTC=0x00; // Display on / off 0F en(); PORTC=0x0F; en(); PORTC=0x01; // cursor shift 14h en(); PORTC=0x04; en(); PORTC=0x00; // entry mode en(); PORTC=0x06; en(); PORTC=0x00; //clear display 01hex en(); PORTC=0x01; en(); //jetzt sollte eigentlich
in „LCD an ATMEGA zum xten...“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
robot.c
auf LOW PORTC &= ~(1<<PC0); PORTC &= ~(1<<PC1); // PORTC &= ~(1<<PC2); // PORTC &= ~(1<<PC3); if ( (PIND & (1<<PD0)) && !(PIND & (1<<PD1)){ //---rechts--- PORTC = PORTC | ( 1<<PC0 ); //high PORTC &= ~(1<<PC1); //low } if ( (PIND & (1<<PIND1)) && !(PIND & (1<<PIND0)){ //---rechts--- PORTC = PORTC | ( 1<<PC1 ); //high PORTC &= ~(1<<PC0); //low } if ( (PIND & (1<<PIND1)) && (PIND & (1<<PIND0)){ //beide high //---rechts--- PORTC = PORTC | ( 1<<PC1 ); //high PORTC &= ~(1<<PC0); //low }
in „Digitale Signale mit ATMEGA16 (Newbie braucht Hilfe)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
boarddefs.h
#define led1off PORTC &= ~_BV(PC0) #define led2off PORTC &= ~_BV(PC1) #define led3off PORTC &= ~_BV(PC2) #define led4off PORTC &= ~_BV(PC3) #define led5off PORTC &= ~_BV(PC4) #define led6off PORTC &= ~_BV(PC5) #define led7off PORTC &= ~_BV(PC6) #define led8off PORTC &= ~_BV(PC7) #define led1on PORTC |=_BV(PC0) #define led2on PORTC |=_BV(PC1) #define led3on PORTC |=_BV(PC2) #define led4on PORTC |=_BV(PC3) #define led5on PORTC
in „Lüftersteuerung mit C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
3-Port_Sinus-Demo.c
1]; uint8_t pwm_timing_B[CHANNELS + 1]; uint8_t *ptr_PORTB_main = &pwm_mask_PORTB_A; uint8_t *ptr_PORTC_main = &pwm_mask_PORTC_A; uint8_t *ptr_PORTD_main = &pwm_mask_PORTD_A; uint8_t *ptr_timing_main = &pwm_timing_A; uint8_t *ptr_PORTB_isr = &pwm_mask_PORTB_B; uint8_t *ptr_PORTC_isr = &pwm_mask_PORTC_B
in „8-Bit Software PWM für mehr als 8 Kanäle“ · Projekte & Code ·
-
Datei
3-Port_Sinus-Demo.c
1]; uint8_t pwm_timing_B[CHANNELS + 1]; uint8_t *ptr_PORTB_main = &pwm_mask_PORTB_A; uint8_t *ptr_PORTC_main = &pwm_mask_PORTC_A; uint8_t *ptr_PORTD_main = &pwm_mask_PORTD_A; uint8_t *ptr_timing_main = &pwm_timing_A; uint8_t *ptr_PORTB_isr = &pwm_mask_PORTB_B; uint8_t *ptr_PORTC_isr = &pwm_mask_PORTC_B
in „Software-PWM stockt bei unpassender Updatefrequenz“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
portpins.h
PORTC1 #endif #if defined(PC2) && !defined(PORTC2) # define PORTC2 PC2 #elif defined(PORTC2) && !defined(PC2) # define PC2 PORTC2 #endif #if defined(PC3) && !defined(PORTC3) # define PORTC3 PC3 #elif defined
in „ATMega16 mehrere Taster an INT0“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Counter.txt
**************************************************** ; Schleife für Ziffer 1 RECHTS_LINKS_1 btfsc PORTC, 2 ; Taster OK = 1 > goto ZAEHLEN goto ZEAHLEN btfsc PORTC, 4 ; Taster Rechts = 1 > call Rechts_1 call RECHTS_1 btfsc PORTC, 0 ; Taster Links = 1 > call Links_1 call LINKS_1 PLUS_MINUS_1 btfsc PORTC
in „Aus Schleife entfliehen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
111005_programm_mensch_natur_.txt
PORTB2 auf Ausgang sbi ioDDRB,3 ; PORTB3 auf Ausgang sbi ioDDRB,4 ; PORTB4 auf Ausgang sbi ioDDRC,0 ; PORTC0 auf Ausgang sbi ioDDRC,1 ; PORTC1 auf Ausgang sbi ioDDRC,2 ; PORTC2 auf Ausgang sbi ioDDRC,3 ; PORTC3 auf Ausgang sbi ioDDRC,4 ; PORTC4 auf Ausgang sbi ioDDRC,5 ; PORTC5 auf Ausgang cbi ioDDRD,2 ;
in „kunstobjekt mit Weiterschaltung per interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
kunstobject.asm
; PORTB2 auf Ausgang sbi DDRB,3 ; PORTB3 auf Ausgang sbi DDRB,4 ; PORTB4 auf Ausgang sbi DDRC,0 ; PORTC0 auf Ausgang sbi DDRC,1 ; PORTC1 auf Ausgang sbi DDRC,2 ; PORTC2 auf Ausgang sbi DDRC,3 ; PORTC3 auf Ausgang sbi DDRC,4 ; PORTC4 auf Ausgang sbi DDRC,5 ; PORTC5 auf Ausgang cbi DDRD,2 ; PORTD2 auf
in „kunstobjekt mit Weiterschaltung per interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MSR.c
endif /* simple dummy routine zum testen */ void flashLeds(void) { uint8_t i; for (i=0; i<=5; i++) { PORTC |= (1<<PC0); _delay_ms(100); PORTC &= ~(1<<PC0); PORTC |= (1<<PC1); _delay_ms(100); PORTC &= ~(1<<PC1); PORTC |= (1<<PC2); _delay_ms(100); PORTC &= ~(1<<PC2); PORTC |= (1<<PC3); _delay_ms(100); PORTC &= ~(1<<PC3); PORTC |= (1<<PC4); _delay_ms(100); PORTC &= ~(1<<PC4); PORTC |= (1<<PC5); _delay_ms(100); PORTC &= ~(1<<PC5); PORTC |= (1<<PC6); _delay_ms(100); PORTC &= ~(1<<PC6); PORTC |= (1<<PC7); _delay_ms(100); PORTC
in „ATMEAG16 macht Resets“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test.c
define LED_GREEN PC1 #define LED_RED PC2 #define BUZZER PC3 #define RELAIS PC4 #define LED_STATUS_ON PORTC &= ~(1 << LED_STATUS) #define LED_GREEN_ON PORTC &= ~(1 << LED_GREEN) #define LED_RED_ON PORTC &= ~(1 << LED_RED) #define BUZZER_ON PORTC &= ~(1 << BUZZER) #define RELAIS_ON PORTC &= ~(1 << RELAIS) #define LED_STATUS_OFF PORTC |= (1 << LED_STATUS) #define LED_GREEN_OFF PORTC |= (1 << LED_GREEN) #define LED_RED_OFF PORTC |= (1 << LED_RED) #define BUZZER_OFF PORTC |= (1 << BUZZER) #define RELAIS_OFF PORTC |= (1 << RELAIS)
in „Problem bei der Abfrage von Ausgängen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dram8.c
ATOMIC_BLOCK(ATOMIC_FORCEON) { PORTD = adr >> 8; PORTC = _RAS0; PORTD = adr & 0xFF; PORTC = _CAS0; DDRD = _0; PORTC = _OE; _delay_loop_1(DRAM_WAITSTATES); c = PIND; PORTC = _255; DDRD = _255; } return c; } /* Writes the byte 'val' to dram address 'adr'
in „CP/M auf ATmega88“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Fehler.ino
PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTB,&PORTB,&PORTB,&PORTB,&PORTB,&PORTB,&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,}; #elif defined(__AVR_ATmega32U4__) constexpr Register portList[] = {&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTC,&PORTD,&PORTE,&PORTB,&PORTB,&PORTB,&PORTB,&PORTD,&
in „[AVR] Unerwarteter Compilerfehler mit constexpr“ · 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
Robue.diff
alle)/cmd.c Wed Feb 18 18:33:44 2009 +++ RoBue_1.5/cmd.c Wed Mar 4 21:07:14 2009 @@ -48,6 +48,7 @@ {"PORTC",command_portc}, {"PORTCSET",command_setPORTC}, + {"PORTCTOGGLE",command_togglePORTC}, #if USE_PORTD_SCHALT {"PORTD",command_portd}, @@ -412,6 +413,8 @@ //------------------------------------------
in „AVR für wenig Geld im LAN“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
zv_steuerung.c
Fensterheberschalter rechts hoch PORTB |= (1 << PB5); // Kofferraumtaster PORTB &= ~(1 << PB6); // 5V Plus PORTC &= ~(1 << PC0); // SPiegelheizung PORTC &= ~(1 << PC1); // Kofferraummotor PORTC &= ~(1 << PC2); // FHM Rechts Runter PORTC &= ~(1 << PC3); // FHM Rechts Hoch PORTC &= ~(1 << PC4); // FHM Links Runter
in „ATMega8 I/O Problem mit PD2 und PD3“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.txt.txt
); _delay_ms(250); _delay_ms(200); _delay_ms(200); _delay_ms(80); //Ende Zeile 11 PORTC |= (1 << PC2) | (1 << PC3); delay5s(); delay1s(); delay1s(); _delay_ms(70); PORTC &= ~(1 << PC2); delay1s(); _delay_ms(250); _delay_ms(250); _delay_ms(200); _delay_ms(170); //Anfang Zeile 15 PORTC |= (1 << PC2); PORTC &= ~(1 << PC1); delay10s(); _delay_ms(60); PORTC |= (1 << PC1); //Ende Zeile 16 _delay_ms(250); _delay_ms(250); _delay_ms(200); _delay_ms(190); PORTC &= ~(1 << PC2); //Anfang Zeile 17 delay10s(); delay10s
in „Problem mit AVR Bitte Hilfe Dringend“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd628.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „mit PIC 16F628A LC-Display ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Backpanelswitcher.c
; uint8_t *ptr_PORTC_main = &pwm_mask_PORTC_A; uint8_t *ptr_timing_main = &pwm_timing_A; uint8_t *ptr_PORTB_isr = &pwm_mask_PORTB_B; uint8_t *ptr_PORTC_isr = &pwm_mask_PORTC_B; uint8_t *ptr_timing_isr = &pwm_timing_B;
in „AVR Software PWM mit mehr als 8 channeln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rc5decoder.c
PC1 reciver on off switch PORTC.PIN1CTRL = PORT_OPC_TOTEM_gc; PORTC.DIRCLR = 4; //input of reciver signal PORTC.OUTCLR = 4; PORTC.PIN2CTRL = PORT_OPC_TOTEM_gc | PORT_ISC_FALLING_gc; //configure the timer to overflow 3906/s (TIMERPERIOD
-
Datei
Uhr.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „TMR0 LCD UHR“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
update_ge_ndert.php
& 2) !=0; $PC2 = ($PORTC & 4) !=0; $PC3 = ($PORTC & 8) !=0; $PC4 = ($PORTC & 16) !=0; $PC5 = ($PORTC & 32) !=0; $PC6 = ($PORTC & 64) !=0; $PC7 = ($PORTC & 128)!=0; // Kontrollausgaben (können weggelassen werden)) echo "Kontrollausgabe:<br>"; $PORTCBIN = decbin($PORTC); echo "PORTC = $PORTC, also Binär: $PORTCBIN<br>"; echo "PORTC0 = $PC0<br>"; echo "PORTC3 = $PC3<br>"; echo "Auslesen der AVR Werte erfolgreich!<br><br>";*/ /* Verbindung zu mySQL aufbauen, Auswählen
-
PDF
169ptest1.pdf
169ptest1\169ptest1\169ptest1.c 2 //_delay_ms(1); }} case 0b00000100: { while ( PINA & (1<<PINA2) ) { PORTC = array[0]; //0b00010000 //_delay_ms(1); PORTC = array[1]; //0b00011000 //_delay_ms(1); PORTC = array[2]; //0b00011100 //_delay_ms(1); PORTC = array[3]; //0b00011110 //_delay_ms(1); PORTC = array[4]; //0b00011111 //_delay_ms(1); PORTC = array[5]; //0b0000111 //_delay_ms(1); PORTC = array[6]; //0b00000111 //_delay_ms(1); PORTC = array[7]; //0b00000011 //_delay_ms(1); PORTC = array[8]; //0b00000001 //_delay_ms(1); PORTC = array[9]
in „ATMEGA169P Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
glider.c
init_sensor_coeff(); sendUSART("ATO\r"); sendUSART("Hello World!\r\n"); // char p[20]; while(1) { //LED Test PORTC = 0b11111111; _delay_ms(200); PORTC = 0b11111110; _delay_ms(200); PORTC = 0b11111111; if (uart_str_complete == 1) { //cli(); //keine ISR dazwischen funken lassen PORTC = 0b11110000; _delay_ms(5000)
in „UART Receive Interrupt Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
4x3_Relaise02.bas
: Set Portc.1 Eing2 = 1 Goto Tasten Relais2: If Eing3 = 1 Then Goto Rel3_aus If Eing3 = 0 Then Goto Rel3_ein End Rel3_aus: Reset Portc.2 Eing3 = 0 Goto Tasten Rel3_ein: Set Portc.2 Eing3 = 1 Goto Tasten Relais3
-
Datei
t6963_200704.c
LCD_Home_Graphics(void); void LCD_Clear_Graphics(void); void pause(void) { #asm nop nop #endasm } void PORTC_output(void) { DDRC = 0xFF; PORTC = 0; } void PORTC_input(void) { DDRC = 0x00; PORTC = 0xFF; } void lcd_status(void) { unsigned char lcd_status; PORTC_input(); pause(); cd = 1; pause(); wr = 1; pause
in „GLC-Display T6963 - Probleme mit Grafik Bereich!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DMX_DIMMER8_2.bas
<= Dmx_out Then : Reset Portc.2 : Else : Set Portc.2 : End If Dmx_out = Dmx_buf(4) If Netz_pulse <= Dmx_out Then : Reset Portc.3 : Else : Set Portc.3 : End If Dmx_out = Dmx_buf(5) If Netz_pulse <= Dmx_out Then : Reset Portc.4 : Else : Set Portc.4 : End If Dmx_out = Dmx_buf(6) If Netz_pulse <= Dmx_out Then : Reset Portc.5 : Else : Set Portc.5 : End If Dmx_out = Dmx_buf(7) If Netz_pulse <= Dmx_out Then : Reset Portc.6 : Else : Set Portc.6 :
in „DMX Demux für Dimmerpack 3Phasig in Bascom“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
84A.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „PIC - Probleme mit Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
84A.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „PIC - Probleme mit Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TemperaturSensor.asm
off movlw 0x0C movwf PORTD, 0 bsf PORTC, 7, 0 nop nop bcf PORTC, 7, 0 nop nop call LCDDelay ;Clear Display movlw 0x01 movwf PORTD, 0 bsf PORTC, 7, 0 nop nop bcf PORTC, 7, 0 nop nop call LCDDelayLong ;Entry Mode Set movlw 0x06 movwf PORTD, 0 bsf PORTC, 7, 0 nop nop bcf PORTC, 7, 0 nop nop call LCDBusy return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; LCDBusy: decf TRISD, 0 bsf PORTC, 1, 0 LCDBusy_Loop: bsf PORTC, 7, 0 nop nop rlcf
in „LCD (HD44780) timing extrem träge“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TemperaturSensor.asm
off movlw 0x0C movwf PORTD, 0 bsf PORTC, 7, 0 nop nop bcf PORTC, 7, 0 nop nop call LCDDelay ;Clear Display movlw 0x01 movwf PORTD, 0 bsf PORTC, 7, 0 nop nop bcf PORTC, 7, 0 nop nop call LCDDelayLong ;Entry Mode Set movlw 0x06 movwf PORTD, 0 bsf PORTC, 7, 0 nop nop bcf PORTC, 7, 0 nop nop call LCDBusy return ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; LCDBusy: decf TRISD, 0 bsf PORTC, 1, 0 LCDBusy_Loop: bsf PORTC, 7, 0 nop nop rlcf
in „Temperatursensor DS1620, LCD und PIC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
NAND.c
#include <io.h> unsigned int N_GetDeviceID(void) { unsigned int result; //Read ID Komando PORTC |= (1<<PC2); //CE auf HIGHT PORTC |= (1<<PC3); //WE auf HIGHT PORTC &= ~(1<<PC0); //CLE auf LOW PORTA = 0x90; PORTC &= ~(1<<PC3); //WE auf LOW PORTC |= (1<<PC0); //CLE auf HIGHT PORTC &= ~(1<<PC1); //ALE auf LOW PORTA = 0x00; PORTC |= (1<<PC3); //WE auf HIGHT PORTC &= ~(1<<PC3); //WE auf LOW PORTC |= (1<<PC1); //ALE auf HIGHT DDRA = 1; PORTC |= (1<<PC4); //RE auf HIGHT result = PINA; PORTC &= ~(1<<PC4); //RE auf LOW PORTC |=
in „NAND mit TAmega32 ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
update.php
& 2) !=0; $PC2 = ($PORTC & 4) !=0; $PC3 = ($PORTC & 8) !=0; $PC4 = ($PORTC & 16) !=0; $PC5 = ($PORTC & 32) !=0; $PC6 = ($PORTC & 64) !=0; $PC7 = ($PORTC & 128)!=0; // Kontrollausgaben (können weggelassen werden)) echo "Kontrollausgabe:<br>"; $PORTCBIN = decbin($PORTC); echo "PORTC = $PORTC, also Binär: $PORTCBIN<br>"; echo "PORTC0 = $PC0<br>"; echo "PORTC3 = $PC3<br>"; echo "Auslesen der AVR Werte erfolgreich!<br><br>"; /* Verbindung zu mySQL aufbauen, Auswählen
-
Datei
mpx.c
); PORTC = mpx_buffer[1]; MPX_DIG1(); _delay_us(100); MPX_ALL_OFF(); _delay_us(1); PORTC = mpx_buffer[9]; MPX_DIG9(); _delay_us(100); MPX_ALL_OFF(); _delay_us(1); PORTC = mpx_buffer[2]; MPX_DIG2(); _delay_us
in „7 Segment Anzeige auf verschiedenen Ports“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
t6963.c
LCD_Home_Graphics(void); void LCD_Clear_Graphics(void); void pause(void) { #asm nop nop #endasm } void PORTC_output(void) { DDRC = 0xFF; PORTC = 0; } void PORTC_input(void) { DDRC = 0x00; PORTC = 0xFF; } void lcd_status(void) { unsigned char lcd_status; PORTC_input(); pause(); cd = 1; pause(); wr = 1; pause
in „Grafik LC-Display TLX-1391 128x128“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
soft-pwm_56leds.c
ptr_PORTA_main, &ptr_PORTA_main, &ptr_PORTE_main, &ptr_PORTE_main, &ptr_PORTG_main, &ptr_PORTE_main, &ptr_PORTC_main, &ptr_PORTD_main, &ptr_PORTD_main, &ptr_PORTB_main, &ptr_PORTB_main, &ptr_PORTL_main, &ptr_PORTL_main, &ptr_PORTL_main, &ptr_PORTC_main, &ptr_PORTC_main, &ptr_PORTC_main, &ptr_PORTG_main, &ptr_PORTF_main
in „8-Bit Software PWM für mehr als 8 Kanäle“ · Projekte & Code ·
-
Datei
soft-pwm_56leds.c
ptr_PORTA_main, &ptr_PORTA_main, &ptr_PORTE_main, &ptr_PORTE_main, &ptr_PORTG_main, &ptr_PORTE_main, &ptr_PORTC_main, &ptr_PORTD_main, &ptr_PORTD_main, &ptr_PORTB_main, &ptr_PORTB_main, &ptr_PORTL_main, &ptr_PORTL_main, &ptr_PORTL_main, &ptr_PORTC_main, &ptr_PORTC_main, &ptr_PORTC_main, &ptr_PORTG_main, &ptr_PORTF_main
in „56x PWM + Serielle Kommunikation mit PC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
code_stepper_uart_test.txt
(2); } } else if (drive==2) { if(dir==1){PORTC |= (1<<3);} else{PORTC &= ~(1<<3);} if(mode==1){PORTC |= (1<<4);} else{PORTC &= ~(1<<4);} for(steps_done=0;steps_done<=steps;steps_done++) { PORTC ^= (1<<2); _delay_ms(2); PORTC ^= (1<<2); _delay_ms(2); } } else if (drive==3) { if(dir==1){PORTC |= (1<<6);} else{PORTC &= ~(1<<6);} if(mode==1){PORTC |= (1<<7);} else{PORTC &= ~(1<<7);} for(steps_done=0;steps_done<=steps;steps_done++) { PORTC ^= (1<<5); _delay_ms(2); PORTC ^= (1<<5); _delay_ms
in „Einfache Schrittmotor Ansteuerung (µC+Seriell)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Telefon.asm
brne Nr9 sbi PORTB,0 ;Taste 0 aktivieren rcall wait100ms cbi PORTB, 0 Nr9: cpi temp1, 9 brne Nr8 sbi PORTC, 3 rcall wait100ms cbi PORTC, 3 Nr8: cpi temp1, 8 brne Nr7 sbi PORTC, 2 rcall wait100ms cbi PORTC, 2 Nr7: cpi temp1, 7 brne Nr6 sbi PORTC, 1 rcall wait100ms cbi PORTC, 1 Nr6: cpi temp1, 6 brne Nr5 sbi PORTC, 0 rcall wait100ms cbi PORTC, 0 Nr5: cpi temp1, 5 brne Nr4 sbi PORTB, 5 rcall wait100ms cbi PORTC, 5 Nr4: cpi temp1, 4 brne Nr3 sbi PORTB, 4 rcall wait100ms cbi PORTB, 4 Nr3: cpi temp1, 3 brne Nr2
in „Rechtecksignal in langen Impuls wandeln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
84A.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „PIC - Probleme mit Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVR_328P_Timer2.asm.txt
x1: jmp x1 ; 3 cycl, deadloop and timer are freerunning /* ldi akku,0xff ; 1 cycl, write $ff out portc,akku ; 1 cycl, --> out to portc ;nop ; 1 cycl ldi akku,0x00 ; 1 cycl, write $00 out portc,akku ; 1 cycl, --> out to portc nop ; 1 cycl ldi akku,0xff ; 1 cycl, write $ff out portc,akku ; 1 cycl, -->
in „Frage: 328p und Timer2/GPIO in assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Sample.c
; case 2: PORTC=0x02; break; case 3: PORTC=0x04; break; case 4: PORTC=0x08; break; case 5: PORTC=0x10; break; case 6: PORTC=0x20; break; } } #endif } /* Routine zum Testen als Sender */ void test_1() { #ifdef test1
-
Datei
MC2v0.c
| Funktion void send_K2Settings(void); // | void PORTC_LED(int1 set); //true/false | PORTC auf LED-Leiste ausgeben void RS232_I2C(int1 set); //true/false | RS232 oder I2C weiterleiten void PORTC_VG_enable(int1 set); //true/false | PORTC negiert auf PORTD
in „[PIC] PIC 16F887 + I2C + Philips TEA5768HL RADIO“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Uhr_interupt2.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „pic interupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Uhr_interupt2.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „genauer TIMER“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Beispiel_Programm.txt
(PORTB,5); break; default: uartPutChar('?'); break; } break; case 'C': switch(z2) { case '0': sbi(PORTC,0); break; case '1': sbi(PORTC,1); break; case '2': sbi(PORTC,2); break; case '3': sbi(PORTC,3); break; case '4': sbi(PORTC,4); break; case '5': sbi(PORTC,5); break; default: uartPutChar('?'); break
in „Programm läuft in schleife?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tastertolcd.asm
STATUS, RP0 ; make Port B4..7 input movlw B'11110000' iorwf TRISB, f bcf STATUS, RP0 BusyLoop bcf PORTC, LcdRs bsf PORTC, LcdRw ; Lesen bsf PORTC, LcdE nop movf PORTD, w movwf LcdStatus bcf PORTC, LcdE nop bsf PORTC, LcdE ; Enable nop bcf PORTC, LcdE btfsc LcdStatus, 7 ; teste bit 7 goto BusyLoop bcf
in „PIC 16F628A - LCD ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
empf > 63) { PORTB |= (1<<PB4); empf = (empf -64); } else { PORTB &= ~(1<<PB4); } if (empf > 31) { PORTC |= (1<<PC5); empf = (empf -32); } else { PORTC &= ~(1<<PC5); } if (empf > 15) { PORTC |= (1<<PC4); empf = (empf -16); } else { PORTC &= ~(1<<PC4); } if (empf > 7) { PORTC |= (1<<PC3); empf = (empf -8); } else { PORTC &= ~(1<<PC3); } if (empf > 3) { PORTC |= (1<<PC2); empf = (empf -4); } else { PORTC &= ~(1<<PC2); } if (empf > 1) { PORTC |= (1<<PC1); empf = (empf -2); } else { PORTC &= ~(1<<PC1); } if (empf > 0)
in „Anfänger - Übertragung von 1 bis 255 von PC und Atmega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
t6963_270704.c
void LCD_Text_Goto(unsigned char x, unsigned char y); void pause(void) { #asm nop nop #endasm } void PORTC_output(void) { DDRC = 0xFF; PORTC = 0; } void PORTC_input(void) { DDRC = 0x00; PORTC = 0xFF; } void lcd_status(void) { unsigned char lcd_status; PORTC_input(); pause(); cd = 1; pause(); wr = 1; pause
in „GrafikDisplayProbleme-Text erscheint nicht auf dem Display!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PCF-Test-2a.c
{ DDRC |= (1<<SCL) | (1<<SDA); PORTC &= ~(1<<SDA); // SDA low (falls es vorher noch high war) PORTC |= (1<<SCL); // Clock high PORTC |= (1<<SDA); // SDA wechselt zu high // schließlich sind beide high (Ruhezustand) return; } void i2cwrite(int wert) { PORTC &= ~(1<<SDA); // SDA low for (int a=8; a>0; a--) { if ( (wert & (1<<(a-1))) != 0) { PORTC |= (1<<SDA); //SDA high } else { PORTC &= ~(1<<SDA); //SDA low } pulse(); } // Abfrage Ack: Receiver zieht
in „Software-TWI: enge Clock-Frequenz oder beliebige Zeiten?“ · Mikrocontroller und Digitale Elektronik ·