-
Datei
lcd_tools.h
delay_loop_2 (((F_CPU/4000)*us)/1000) // wartet µs // Enable-Leitung toggeln void lcd_flash_e () { PORTC = PORTC | ( 1<<DDC5 ) ; // Enable = HIGH delay(1); // kurz warten, damit Flanke entsteht PORTC = PORTC & ~( 1<<DDC5 ) ; // Enable = LOW delay(64); // Warten, bis der durch Enable angelegte Befehl hoffentlich
in „LCD Problem mit blafusel´s Routinen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm.c
vz = diff/60; //1V = 300nm vz= (vz/Vref) * 256; PORTC = (unsigned char)vz; //float --> char ??*/ //count steps -- 1 step = r nm stepx = x/r; stepy = y/r; countx = stepx; vinc = r; PORTB = 0; PORTC = 0; //start scanning while (stepy-- > 0) begin while
in „Fertige C-Source mit welchem Compiler erstellt?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dram.asm
Interrupt bei Empfang sbi UCSRB, RXEN ; RX aktivieren clr Temp1 out DDRA, Temp1 ; Porta = Eingang out PORTC, Temp1 ; PortC = komplett low ser Temp1 out DDRC, Temp1 ; PortC = Ausgang ldi Temp1, 0b00011100 ; Bit 2,3,4 von PortD out DDRD, Temp1 ; Als Ausgang setzen und out PORTD, Temp1 ; Alle 3 auf high setzen
in „DRAM Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
avr-usb-162_Led.c
gedrückt { } // Taster wird gedrückt PORTD = PORTD & 0b11101111; //LED auf low (aus) //AF an PC7 PORTC = PORTC | 0b10000000; //AF auf high (EIN) if (AF_delay != 0) { delay_ms(AF_delay_time); //AF um AF_delay_time ms verzögert } //Shoot an PC6 PORTC = PORTC | 0b01000000; //Shoot auf high (EIN) // Init
in „Zeitabstand 8 mal größer als erwartet“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
display.bas
Loop Until Taste = 0 '**************************** Lowerline : Lcd "3 - startzeile" 'Startzeile 0 Portc = 192 En = 1 : Waitms 10 : En = 0 Waitms 100 : Do : Loop Until Taste = 0 '**************************** Lowerline : Lcd "4 - page 0 " 'Page 0 Portc = 185 En = 1 : Waitms 10 : En = 0 Waitms 100 : Do : Loop Until Taste = 0 '**************************** Lowerline : Lcd "5 - Adress 0 " 'Adresse 0 Portc = 64 En = 1 : Waitms 10 : En = 0 Waitms 100 : Do : Loop Until Taste = 0 '**************************** Lowerline : Lcd "6 - pixel " Di = 1 Portc = 255 En = 1 : Waitms 10 : En = 0 En = 1 : Waitms 10
in „KS0108B Displaytech 64128A“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_test.asm
PORTD.0 -> lcd.DB0 ; ; PORTD.1 -> lcd.DB1 ; ; ... ; ; PORTD.7 -> lcd.DB7 ; ; Steuerseitungen: ; ; PORTC.0 -> lcd.E ; ; PROTC.1 -> lcd.R/W ; ; PORTC.2 -> lcd.RS ; ; mailto: christoph@apovis.net ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .include "C:\Programme\Atmel\wavrasm\appnotes\8515def.inc" ; === Registerdefinition
in „AVR + LCD => weiß keinen Rat mehr“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
menue.c
im String { PORTC=kette[i]; //Char ablegen sbi(PORTA,E); //Schreiben delay(); //Warten cbi(PORTA,E); //Disablen } } void init() { cbi(PORTA,RS); //Befehlsmodus setzen cbi(PORTA,RW); //Schreibmodus setzen cbi(PORTA,E); //Enable off PORTC=FUNCTIONSET; //Kommando sbi(PORTA,E); //Kommando übernehmen delay(); //Warten cbi(PORTA,E); //Enable off PORTC=DISPONNOCURSOR; sbi(PORTA,E); delay(); cbi(PORTA,E); PORTC=CLRDISPANF; sbi(PORTA,E); delay
in „Atmega161 für Menü auf LCD (Vorschläge?)“ · Projekte & Code ·
-
Datei
mega8.c
Durchlauf blinken flash(PC0); uart_txchar('A'); // Auf Frame Error prüfen if (UCSRA & _BV(FE) ) { PORTC &= ~_BV(PC1); // LED an waste = UDR; // UDR leeren } else { PORTC |= _BV(PC1); // LED aus } // Halbe Sekunde warten delay_ms(500); } return 0; } // **** // Subroutinen // **** // Ports auf Eingang
in „AT Mega8 USART defekt?!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
LOGIN(); } else{ /* Send data to the IR-Leds */ for (i=0; i<8; i++) { if ( ( UDR & (0x01<<i) ) > 0){ PORTC |= (1 << PORTC0); } else { PORTC &= ~(1 << PORTC0); }; }; } } void START () { /* Receice Data */ USART_empfangen (); /* is it "D"? */ if (UDR == "D") { /* if Data == "D" --> LOGIN */ LOGIN(); } else
-
Datei
4x4_Matrix_Tastatur_Sub.bas
m32def.dat" $crystal = 8000000 $hwstack = 80 $swstack = 60 $framesize = 80 Config Lcdpin = Pin , Rs = Portc.3 , E = Portc.2 , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 Config Lcd = 16 * 2 Config Lcdbus = 4 Initlcd Waitms 100 Cursor Off Noblink Config Kbd = Portd , Debounce = 20 , Delay
in „Keymap 4*4 Matrix am atmega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18S20_LCD.bas
$swstack = 64 $framesize = 64 Config Lcd = 20 * 4a , Chipset = Ks077 Config Lcdpin = Pin , Db7 = Portc.0 , Db6 = Portc.1 , Db5 = Portc.2 , Db4 = Portc.3 , E = Portc.4 , Rs = Portc.52 Initlcd Config 1wire = PortD.7 Const Ds18s20 = &H10 Const Skiprom = &HCC 'Überspringe Rom Kommandos Const Read_rom =
in „DS18S20 wird vom ATmega8 nicht gefunden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
(ss!=ss_alt) { ss_alt=ss; time1++; if (bit_is_set(PINC, 0)) { if(time1>=var_array[10]) { time1=0; PORTC &= ~(1 << PC0); PORTC |= (1 << PC1); } } } else { if(time1>=var_array[11]) { time1=0; PORTC &= ~(1 << PC1); PORTC |= (1 << PC0); } } } // RESET if (var_array[28] == 1) { RESET(); } // RoBue: // Uhrzeit
-
Datei
main.c
(ss!=ss_alt) { ss_alt=ss; time1++; if (bit_is_set(PINC, 0)) { if(time1>=var_array[10]) { time1=0; PORTC &= ~(1 << PC0); PORTC |= (1 << PC1); } } } else { if(time1>=var_array[11]) { time1=0; PORTC &= ~(1 << PC1); PORTC |= (1 << PC0); } } } // RESET if (var_array[28] == 1) { RESET(); } // RoBue: // Uhrzeit
-
Datei
main.c
(ss!=ss_alt) { ss_alt=ss; time1++; if (bit_is_set(PINC, 0)) { if(time1>=var_array[10]) { time1=0; PORTC &= ~(1 << PC0); PORTC |= (1 << PC1); } } } else { if(time1>=var_array[11]) { time1=0; PORTC &= ~(1 << PC1); PORTC |= (1 << PC0); } } } // RESET if (var_array[28] == 1) { RESET(); } // RoBue: // Uhrzeit
in „AVR NET IO RoBue 1.5 Automatischer Ablauf“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
AusgangOut(); theRelais->setCycles = 0; return true; } return false; } void Eingaenge_abfragen (void) { PORTC |= (1<<PC4); // Mit PL alle Eingänge in das Register schieben. // PL auf High PORTC |= (1<<PC5); // PL auf Low PORTC &= ~(1<<PC5); // PL auf High PORTC |= (1<<PC5); //Abfragen welches Registerbit gesetzt
in „Verzögerung Zündung TRIAC für Phasenanschnitt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
8_Bit_Init_16F872.asm
damit Power-on-reset-Einstellungen laden können movlw B'00110000' ; Interface auf 8-Bit setzen movwf PORTC ; Schiebe Work-Reg. in PORTC bsf Enable ; setze Enable-Bit: Display freigeschaltet / kann angesprochen werden nop ; 1 Befehlstakt nix tun bcf Enable ; lösche Enable-Bit: Display kann nicht angesprochen
in „LCD mit 16F872 ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCDTEST2.ASM
PORTD.0 -> lcd.DB0 ; ; PORTD.1 -> lcd.DB1 ; ; ... ; ; PORTD.7 -> lcd.DB7 ; ; Steuerseitungen: ; ; PORTC.0 -> lcd.E ; ; PROTC.1 -> lcd.R/W ; ; PORTC.2 -> lcd.RS ; ; mailto: christoph@apovis.net ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .include "C:\Programme\Atmel\wavrasm\appnotes\8515def.inc" ; === Registerdefinition
in „AVR + LCD => weiß keinen Rat mehr“ · 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
Test-02-09.c
<< PB1 ); //Pull up an DDRC &= ~( 1 << PC2 ); //PC2 Eingang DDRC &= ~( 1 << PC3 ); //PC3 Eingang PORTC |= ( 1 << PC2 ); //Pull up an PORTC |= ( 1 << PC3 ); //Pull up an DDRC |= ( 1 << PC0 ); //PC0 Ausgang DDRC |= ( 1 << PC1 ); //PC1 Ausgang TCNT1=0; //Timer-Daten-Register Timer1 High auf 0 setzen TCNT1H
in „LEDs mit Zeitverzögerung und Abschaltung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD4B2Z.C
#include <iom32v.h> #include <macros.h> #define WASTE waste_lcd() #define LCD_E_SET PORTC |= 0x20 #define LCD_E_CLR PORTC &= ~0x20 #define LCD_RS_SET PORTC |= 0x80 #define LCD_RS_CLR PORTC &= ~0x80 #define RSRW_CLR PORTC &= ~0x1C #define DELAY for (del = 0; del < 16; del++) int del; void
in „Atmega 32 , 4bit -LCD Ansteuerung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ausgabe.bas
festlegen, Schnittstelle wird von BASCOM durch Software realisiert Config 1wire = Portb.4 Config Sda = Portc.1 ' I2C Bus konfigurieren Config Scl = Portc.0 Config Clock = User ' Interne Time/Date Routinen fÃŒr Bascom konfigurieren Config Date = Dmy , Separator = . Config Lcdpin = Pin , Db4 = Portc.3 , Db5 = Portc.5 , Db6 = Portc.7 , _ Db7 = Portc.2 , E = Portc.4 , Rs = Portc.6 Config Lcd = 20 * 4a , Chipset = Ks077 Cursor Noblink Cursor Off '---Config Timer1 ist für Abfrage Sensoren--- Config Timer1 = Timer
in „Problem mit 1wire und DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Wattmeter_v1.4.c
PinB7 (Servo reverse) PORTD |= (1<<PD4); // Activate the internal pull up resistors for thermal Power PORTC &= ~((1 << PC0) | (1 << PC1)); // Deactivate Laser PORTC |= (1<<PC0); // Turn Laser on // Timer 1,2 Initialization Timer1_init(); Timer2_init(); // External Interrupt Initialization INIT_EXT_Interrupt
in „Problem mit delay.h und Optimierungsstufe v. AVR Studio 4“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Wattmeter_v1.5.c
reverse) //PORTD |= (1<<PD4); // Activate the internal pull up resistors for thermal Power Counting PORTC &= ~((1 << PC0) | (1 << PC1)); // Deactivate Laser PORTC |= (1<<PC0); // Turn Laser on // Timer 1,2 Initialization Timer1_init(); Timer2_init(); // External Interrupt Initialization INIT_EXT_Interrupt
in „Problem mit delay.h und Optimierungsstufe v. AVR Studio 4“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
include <util/delay.h> #include <avr/interrupt.h> #include "lcd.h" #include <math.h> #define GSCLK_PORT PORTC #define GSCLK_PIN 2 //SIN TLC = MOSI #define SIN_PORT PORTC #define SIN_PIN 5 //SCLK TLC = CLK #define SCLK_PORT PORTC #define SCLK_PIN 7 //Blank TLC = SS #define BLANK_PORT PORTC #define BLANK_PIN 4 #define DCPRG_PORT PORTC #define DCPRG_PIN 0 #define VPRG_PORT PORTC #define VPRG_PIN 3 #define XLAT_PORT PORTC #define XLAT_PIN 1 //MISO wird nicht gebraucht #define MISO_PORT PORTC #define MISO_PIN 6 #define TLC5940_N 1
in „TLC5940 mit XMEGA ansteuern“ · 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
SAA1057_Test.bas
Tunermodul $regfile = "m16def.dat" $crystal = 1000000 Dim A As Integer 'Tuningvariable Dlen Alias Portc.6 'Dlen Leitung = Portc.6 Dat Alias Portc.5 'Data Leitung = Portc.5 Clb Alias Portc.4 'Clock Leitung = Portc.4 Config Dat = Output 'Data Leitung als Ausgang Config Pind.3 = Input 'Taster vorheriger
in „SAA1057 in Bascom Ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
aus) { zaehlen=ja; } } void Zeit() { zaehlen=nein; ausgabe=nein; if(zaehler==30) { PORTA = Zahl[3]; PORTC = Zahl[0]; } else if(zaehler>19) { PORTA = Zahl[2]; PORTC = Zahl[zaehler-20]; } else if(zaehler >9) { PORTA = Zahl[1]; PORTC = Zahl[zaehler-10]; } else if(zaehler>0) { PORTA = Zahl[0]; PORTC = Zahl[zaehler]; } else { PORTA = Zahl[0]; PORTC = Zahl[0]; } } int main(void) { DDRA = 0xff; DDRC = 0xff; DDRD = 0b11111011; GICR |= (1 << INT0); ACSR = 0x80; MCUCR = 0b00000000; displayoff; zaehlen=nein; OCR1A=120; //OCR1A=30; TIMSK = (1<<OCIE1A
in „Atmega32 INT0 setzt Timer1 außer Kraft“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PinDefinition.h
PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTB,&PORTB,&PORTB,&PORTB,&PORTB,&PORTB,&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,}; constexpr Register ddrList[] = {&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRB,&DDRB,&DDRB,&DDRB,&DDRB,&DDRB,&DDRC,&DDRC,&DDRC,&DDRC,&DDRC,&DDRC,}; constexpr
in „AVR GPIOR Bit Verwaltung C++“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PinDefinition.h
PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD,&PORTB,&PORTB,&PORTB,&PORTB,&PORTB,&PORTB,&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,}; constexpr Register ddrList[] = {&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRD,&DDRB,&DDRB,&DDRB,&DDRB,&DDRB,&DDRB,&DDRC,&DDRC,&DDRC,&DDRC,&DDRC,&DDRC,}; constexpr
in „AVR GPIOR Bit Verwaltung C++“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ks108.h
WRITE_DATA(a) DATA_PORT=(a); // write to data port #define RS_BIT PC0 // same as D/I #define RS_PORT PORTC #define RS_ON() sbi(RS_PORT,RS_BIT) #define RS_OFF() cbi(RS_PORT,RS_BIT) #define RW_BIT PC1 #define RW_PORT PORTC #define RW_ON() { sbi(RW_PORT,RW_BIT); NOP(); NOP(); NOP(); NOP(); NOP(); NOP(); NOP
in „GLCD 128x64 Hardware oder Softwarefehler.?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS1302_V12.bas
************************************************* Config Lcd = 16 * 2 Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , _ Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0 Cls Cursor Off Upperline Lcd "ds1302_V12.bas" Wait 1 Cls '************************ DS1302 RealTimeClock ************
in „DS1302 Bascom mit Mega8 ohne Funktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
nrf24l01.c
op_status; #define CE_HIGH() PORTG |= (1<<PG2) #define CE_LOW() PORTG &= ~(1<<PG2) #define CSN_HIGH() PORTC |= (1<<PC7) #define CSN_LOW() PORTC &= ~(1<<PC7) const uint8_t RX0_Address[] ={0x34,0x43,0x10,0x11,0x11};//Receive address data pipe 0 const uint8_t RX1_Address[] PROGMEM={0x39,0x38,0x37,0x36,0xc2}
in „RFM12 vs nrf24l01“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Atmega8.c
PORTB &= (0 << PB7); else { PORTB |= (1 << PB7); OverflowStat[7]--; }; if (OverflowStat[8] == 0) PORTC &= (0 << PC0); else { PORTC |= (1 << PC0); OverflowStat[8]--; }; if (OverflowStat[9] == 0) PORTC &= (0 << PC1); else { PORTC |= (1 << PC1); OverflowStat[9]--; }; if (OverflowStat[10] == 0) PORTC &= (0 << PC2); else { PORTC |= (1 << PC2); OverflowStat[10]--; }; }; int main() { uint8_t i; // Ausgänge PORTB, PINC0, PINC1, PINC2, PINC3 // Eingänge PORTD, PINC4, PINC5, PINC6 DDRB = 0xFF; //PORTB = 0xFF; DDRC = 0xF0; DDRD
in „Probleme bei einfachem Atmega Programm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
belichtung.c
uint16_t ms) { for(uint16_t t=0; t<=ms; t++) _delay_ms(1); } void digit (uint8_t wert, uint8_t pin) { PORTC |= (1 << PC3) | (1 << PC4) | (1 << PC5); // 0..2 High = Digits aus PORTD = numbers[wert]; // Zahl ausgeben PORTC &= ~(1 << pin); // Low = entsprechendes Digit an } char x=1; // timer0 verwaltung char
in „Probleme mit C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
testing.c
); sleep_mode(); } // While end PORTC &= ~(1<<PC2); if(OCR1A==OCR1A_tmp) _delay_ms(20); } // while End PORTC &= ~(1<<PC3); } // main End void Timer1_init(void) // Configre for PWM (2 Channels) and 20ms Overflow { // Clear OC1A/OC1B on
in „if Abfrage in main() ignoriert?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD4B2Z.C
PORT C5 : E */ #include <iom32v.h> #include <macros.h> #define WASTE waste_lcd() #define LCD_E_SET PORTC |= 0x20 #define LCD_E_CLR PORTC &= ~0x20 #define LCD_RS_SET PORTC |= 0x80 #define LCD_RS_CLR PORTC &= ~0x80 #define RSRW_CLR PORTC &= ~0x1C #define DELAY for (del = 0; del < 16; del++) int del; void
in „Atmega 32 , 4bit -LCD Ansteuerung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Preller.c
Schalter gedrückt if(i_drehrichtung>Prellzeit && !Drehrichtung_Schalter) { Drehrichtung_Schalter = 1; PORTC |= (1<<A_C_K2); PORTC &= ~(1<<A_C_K1); } } //ist Pin nicht gedrückt und Prellzeit noch nicht auf minimal, dann subtraieren else if((PINB & (1<<E_B_Drehrichtung)) && i_drehrichtung>=1) { i_drehrichtung
-
Datei
101213_16F883_EE_Test01.ASM
TRISB ;B1 ;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' BANKSEL PORTC ;B0 CLRF PORTC ;Init PORTC BANKSEL TRISC ;B1 movlw b'00000000' ;PortC Ausgang MOVWF TRISC ;B1 ZOut equ 20h VZZ equ 21H ZX1 equ 22H XFLAG equ 23H DATA_EE_ADDR equ 24h DATA_EE_DATA equ 25h ;---------
in „EEPROM PIC16F883 schreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
funksender.bas
16000000 $hwstack = 32 $swstack = 10 $framesize = 40 Config Lcd = 16 * 1 Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0 Cursor Off Noblink Initlcd Cls Locate 1 , 1 Lcd "Funk" Locate 2 , 1 Lcd "test" Wait 5 Config Portd.2 = Input Nirq Alias
in „RFM12 über µC ein und ausschalten“ · 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
TelefonPIC16F505.asm
kezdödik az animáció movwf 0x08 ;futófény a szegmenseken movlw 0xFE ;1 lépés fél másodperc movwf PORTC movlw 0x0A movwf 0x09 goto hu2 hu1 movlw 0x0A ;ide 500ms-onként ugrik movwf 0x09 bsf STATUS,0 rlf PORTC,1 decfsz 0x08,1 goto hu2 goto hu0 hu2 movlw 0x3D ;ide 50ms-onként ugrik movwf TMR0 ;timer kezdöértéke
in „Assembler File für PIC 16F505 in HEX kompilieren mit MPLAB X IDE v4.x“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
T6963_V15.asm
PORTC, 0 clrf Command movlw 0x80 movwf Command call writecommand0 ; OR Mode und int. CG RAM Mode bsf PORTC, 2 clrf Command clrf CommandData1 clrf CommandData2 movlw 0xFF movwf CommandData1 movlw 0x03 movwf
in „T6963C Versorgungspannung“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
T6963_V16.asm
PORTC, 0 clrf Command movlw 0x80 movwf Command call writecommand0 ; OR Mode und int. CG RAM Mode bsf PORTC, 2 clrf Command clrf CommandData1 clrf CommandData2 movlw 0xFF movwf CommandData1 movlw 0x03 movwf
in „T6963C Versorgungspannung“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
main.c
Out Func1=Out Func0=Out // State7=0 State6=0 State5=0 State4=0 State3=0 State2=0 State1=0 State0=0 PORTC=0x00; DDRC=0xFF; // Port D initialization // Func7=Out Func6=Out Func5=In Func4=In Func3=In Func2=In Func1=In Func0=In // State7=0 State6=0 State5=P State4=P State3=P State2=P State1=T State0=T PORTD
in „Programm hängt sich auf - Fehlersuche“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
K2Settings = bit_clear_K2(0b01000000, K2Settings); K2Settings = bit_clear_K2(0b10000000, K2Settings); PORTC = 0x00; // Lösche PORTC PORTD = 0x00; // Lösche PORTD } void peripherie_LED(void) { K2Settings = bit_clear_K2(0b00000001, K2Settings); TRISC = 0x00; PORTC = 0x00; } void peripherie_NoLED(void) { K2Settings
in „PIC16F887 auf MC2V0 - I2C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
header.h
ENABLEA_PORT &= ~(1<<L6205_ENABLEA_PIN)) #define L6205_ENABLEB_PIN PC2 #define L6205_ENABLEB_PORT PORTC #define L6205_ENABLEB_DDR DDRC #define L6205_ENABLEB_OUTPUT_MODE() (L6205_ENABLEB_DDR |= (1<<L6205_ENABLEB_PIN)) #define L6205_ENABLEB_HIGH() (L6205_ENABLEB_PORT |= (1<<L6205_ENABLEB_PIN)) #define
in „Falscher RETURN-Wert (Atmega128)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Timer.txt
Connections specified in the // Project|Configure|C Compiler|Libraries|Alphanumeric LCD menu: // RS - PORTC Bit 0 // RD - PORTC Bit 1 // EN - PORTC Bit 2 // D4 - PORTC Bit 4 // D5 - PORTC Bit 5 // D6 - PORTC Bit 6 // D7 - PORTC Bit 7 // Characters/line: 20 lcd_init(20); } //Initialisierung Timer { /* clkio
in „Timer Probleme ATMEGA128“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.asm
;**************************************************** ;* Datenleitungen: PortC Display * ;* * ;* PC0 --> DB0 * ;* PC1 --> DB1 * ;* PC2 --> DB2 * ;* PC3 --> DB3 * ;* PC4 --> DB4 * ;* PC5 --> DB5 * ;* PC6 --> DB6 * ;* PC7 --> DB7 * ;* * ;* Steuerleitungen: PortB * ;* * ;* PB0 -
in „Anfänger braucht Hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
uhr_v1_0v.bas
.6 = 1 Porta.7 = 1 End If If M = 2 Then Portc = Anzeige3 Portd.7 = 1 Porta.2 = 1 Porta.4 = 0 Porta.3 = 1 Porta.5 = 1 Porta.6 = 1 Porta.7 = 1 End If If M = 3 Then Portc = Anzeige4 Portd.7 = 1 Porta.2 = 1 Porta.4 = 1 Porta.3 = 0 Porta.5 = 1 Porta.6 = 1 Porta.7 = 1 End If If M = 4 Then Portc = Anzeige5 Portd.7 = 1 Porta.2 = 1 Porta.4 = 1 Porta.3 = 1 Porta.5 = 0 Porta.6 = 1 Porta.7 = 1 End If If M = 5 Then Portc = Anzeige6 Portd.7 = 1 Porta.2 = 1 Porta.4 = 1 Porta.3 = 1 Porta.5 = 1 Porta
in „[BASCOM] A/D-Wandler und Software PWM“ · Mikrocontroller und Digitale Elektronik ·