-
Datei
NEC_IR_senden_mit_M644_190412.bas
************************************************* 'eine Kontroll Led im sichtbaren Bereich Config Portc.3 = Output Kontroll_led Alias Portc.3 '************************ tasten und tasten INT ************************ '* An den Tastenports können 1nF Caps gegen GND hilfreich sein /Antiprell bei alten Tastern ' eine Taste an PC2 Config Portc.2 = Input Portc.2 = 1 ' Pullup ein Taste1 Alias Pinc.2 Config Portc.4 = Input Portc.4 = 1 ' Pullup ein Taste2 Alias Pinc.4 Dim Taste_gedrueckt As Byte Dim Taste_gedrueckt_alt As Byte 'int2 für Tastenabfrage
in „TIPP: NEC IR Codes mit Bascom senden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
drehzbhkw8mtestneu.bas
konfigurieren: Config Lcd = 16 * 2 'LCD-Display mit 16 Zeichen in 2 Zeilen Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portb.2 , Rs = Portb.1 Enable Timer0 'Timer0-Interrupts ein (Torzeit) Enable Interrupts 'Interrupts global einschalten Start Timer0 '- - - -
in „Unterschiede Bascom Versionen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AT32MENU_Int_anzeige_Abfrage_Passwort.bas
Config Portb.3 = Input Config Portd.2 = Output Config Portd.3 = Output ' 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 „Servomotor ansteuern in Bascom“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dmxtester2.bas
8000000 $baud = 250000 Config Kbd = Portb , Debounce = 20 , Delay = 50 Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.3 , Rs = Portc.2 Config Lcd = 20 * 4 Config Pind.7 = Output Config Pind.6 = Output Config Pind.5 = Output Config Adc = Single , Prescaler
in „DMX Empfang in C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Handy-Waehlscheibe_V0.30c_Layout.bas
-----------------------------------------| '| Handy zu Wählscheibentelefon Stand: 12.09.2011 | '| Geht nur mit einem C25 Siemens Handy (am besten) C by DG7XO | '| Mit ext. 30V Erzeugung für die Glocke & Oliver Micic | '| | '| Stromaufnahmen: | '| Sendet: 250mA, Standby ca 5,5mA, Sleepmodus wenn Akku
in „ATMega88V-Schaltung: 20% Fehlverhalten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Handy-Waehlscheibe_V0.30c_Layout.bas
-----------------------------------------| '| Handy zu Wählscheibentelefon Stand: 12.09.2011 | '| Geht nur mit einem C25 Siemens Handy (am besten) C by DG7XO | '| Mit ext. 30V Erzeugung für die Glocke & Oliver Micic | '| | '| Stromaufnahmen: | '| Sendet: 250mA, Standby ca 5,5mA, Sleepmodus wenn Akku
in „ATMega88V-Schaltung: 20% Fehlverhalten“ · Mikrocontroller und Digitale Elektronik ·
-
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
DCF-Uhr.bas
auftreten A_stunde = 08 A_wota = 1 Au_minute = A_minute + 2 Au_stunde = A_stunde Au_wota = A_wota Portc.0 = 0 'Diese zwei Ports sind für Portc.1 = 1 'die Relais ansteuerung '############################################################################### '#### Hauptprogramm ###########################
in „DCF-Uhr mit Alarmfunktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Test_ATmega8.c
TCCR1B |= (1<<WGM12 | 1<<WGM13); sei(); while(1) { //TODO:: Please write your application code //PORTC |= (1<<PC5); } } ISR(TIMER1_COMPA_vect){ //Timer Top, alle Servos auf High setzen PORTD |= (1<<PD7 | 1<<PD6 | 1<<PD5 | 1<< PD4 | 1<<PD3 | 1<<PD2 | 1<<PD1 | 1<<PD0); //Servos 0-7 auf High PORTC |= (
in „Debug-Problem in AVR-Studio 5“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
/* PORTB0 = Motor PORTB1 = LED Blau (Sekunden) PORTB2 = LED Grün (Minuten) PORTC0 = LED Rot (Stunden) Für die Sekunden und Minuten kann der aktuelle Wert als Grad position für die Anzeige verwendet werden, da hier nur mit 60 grad pro umdreheung(59 wenn man den 0-Punkt mitzählt)
in „Atmega328P Interrupt löst dauerhaft aus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
int j,ii; int k; for ( i=0;i<300;i++) { for(j=0;j < ms;j++) { k = -j; cli(); // muss rein, sonst geht es nicht } } } int main(void) { sbi(DDRC,2); int i =0; for(i=0;i< 30000;i++){ /* insert your main loop code here */ delay_ms(500); cbi(PORTC,2); delay_ms(500); sbi(PORTC,2); } cbi(PORTC,2); while(1)
in „Atmega8 Watchdog disable“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
foranf.c
while(1) { // // 1/10 SPS = 1 UND Freigabesignal = 1 // if((PINB & (1<<PB0)) && (PINB & (1<<PB4))) { PORTC |= (1<<PC0); // Setze Z Achse Richtung auf 1 // // 80 Pulse für die Z-Achse rausgeben for( j = 0; j > 80; j++ ) { PORTC |= (1<<PC1); warte (5000); PORTC &= ~(1<<PC1); warte (5000); } PORTD |= (1<<PD0); // Setze Z Achse auf 1/10 Ausgang SPS auf 1 // warte bis PB5 auf High geht while( !( PINB & ( 1 << PB5 ) ) ) { } PORTD &= ~(1<<PD0); // Setze Z Achse auf 1/10 Ausgang SPS auf 0 } } }
in „Bräuchte hilfe bei der Programmierung eines Atmega 32“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
prog.txt
0b11111110 <-- nur diese LED geht an !? out PORTC, temp ldi temp, 'A' rcall serout ldi temp, 'T' rcall serout ldi temp, 'D' rcall serout ldi temp, '0' rcall serout ldi temp, '1' rcall serout ldi temp, '2' rcall serout ldi temp, 10 rjmp serout ldi temp, 13 rjmp serout ldi temp, 0b11100000 <-- diese nicht mehr out PORTC, temp ende: rjmp ende serout: sbis UCSRA,UDRE ;Warten, bis UDR für das nächste Byte bereit ist rjmp serout out UDR, temp ret ;zurück zum Hauptprogramm
in „Fragen zu UART“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TEST.asm
Systemtakt in Hz .equ BAUD0 = 76800 .equ cr= 13 ;ASCII-Code für CR ;Eingangsmelde LEDs .equ led1_port= portC .equ led1_ddr= ddrC .equ led1_bit= pc0 .equ led2_port= portC .equ led2_ddr= ddrC .equ led2_bit= pc1 .equ led3_port= portC .equ led3_ddr= ddrC .equ led3_bit= pc2 .equ led4_port= portC .equ led4_ddr= ddrC .equ led4_bit= pc3 .equ led5_port= portC .equ led5_ddr= ddrC .equ led5_bit= pc4 .equ onled_port= portC .equ onled_ddr= ddrC .equ onled_bit= pc5 ;******************************* .def buffer = r0 .def srsk =r3 ;SREG-Siko .def null=r5 ;immer
in „Vorzeichen Ausgeben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
vLCD8x24.inc
macht. ;---------------------------------------------------------------------------- .equ lcdport=portc ;Port, an dem die 4 Datenleitungen des LCD ;angeschlossen sind. .equ lcddatmsk=$f0 ;Maske auf LCD-Datenpins. ;$0f - LCD ist an Bit 0...3 des Ports angeschlossen. ;$f0 - LCD ist an Bit 4...7 des Ports
in „atmega 8 als schnitstelle“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test.c
count3; // Variabele outp (0xff,DDRD); // Alle PINS am Port D als Ausgang nutzen 0xFF = HEX, Binär geht nicht in C ! outp (0xFF,PORTD); // Alle pins von PortB auf high da die Leds Einseitig an 5V hängen, alle Pins hätten ohne diese Definition einen Low Pegel = LED wäre an. outp (0x00,DDRC); // Port c als Eingang outp (0xff,PORTC); // Pull-Up auf Port C, Pin 4+5 aktivieren an den beiden Pins werden nun interne Pullups gesetzt.Man kann aber auch FF schreiben. for (;;) { if (bit_is_clear (PINC,5)) //PIN 5 PortC abfragen Taster
in „Probleme mit AVR Studio“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Blackstorm_Atmega8_2.bas
' Ein-/Ausgänge Config Portd = Output 'Port D als Ausgang Ddrc = &B00111100 '1 Ausgang, 0 Eingang Portc = &B1000011 '1 = PullUp aktiviert Eingang (Taster gegen Masse) Ddrb = &B00011111 Portb = &B00000000 'zum Stoppen (Zeitmessen) Portb = &B000010 Sek_blink = 1 'Ausgänge: Segment_a Alias Portd.0 Segment_b
in „Attiny13 Schalter“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DCF_Alarm.bas
10 Then Stell5 = 0 Call Alarm_berechnung Case 6 If Pinc.3 = 0 Then Incr Stellp If Stellp = 10 Then Portc.3 = 0 Portc.2 = 0 End If Call Alarm_berechnung Case 7 Locate 3 , 1 : Lcd "====ENDE========" Waitms 100 Call Alarm_berechnung Case 8 Locate 3 , 1 : Lcd "=====ENDE=======" Waitms 100 Call Alarm_berechnung
in „Billige timer0-Uhr“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DCF_Alarm_nodcf.bas
Alarm_berechnung Case 6 Locate 3 , 1 : Lcd "================" If Pinc.3 = 0 Then Incr Stellp If Stellp = 10 Then Portc.3 = 0 Portc.2 = 0 End If Call Alarm_berechnung Case 7 Locate 3 , 1 : Lcd "====ENDE========" Waitms 100 Call Alarm_berechnung Case 8 Locate 3 , 1 : Lcd "=====ENDE=======" Waitms 100 Call Alarm_berechnung
in „µc resetet sich?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Tester.c
#define test5 5 #define test6 6 #define test7 7 #define test8 8 #define DELAY 9 #define Test_PORT PORTC // Globale Variablen volatile unsigned int count; int status = test1, delay, next_status; // Timer Counter Overflow ISR(TIMER0_OVF_vect) { TCNT0 = 112; // TZyklus 10ms ++count; // Zählerwert inkrementieren
in „Netzwerk tester“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#define PWM_PORT PORTC #define F_CPU 12000000L // Systemtakt in Hz #define F_PWM 100 // PWM-Frequenz in Hz #define PWM_STEPS 90 // PWM-Schritte pro Zyklus(1..256) #define PWM_channels 3 #define T_PWM (F_CPU/(F_PWM*PWM_STEPS
in „Probleme bei VUSB- Bachelorarbeit“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
temp1.asm
*************************************************** reset_pulse: sbi ddrc, 6 ;pc6 als ausgang cbi portc, 6 rcall wait500us ;mcu hält bus für mindestens 480us low cbi ddrc, 6 ;lässt den bus los, geht in rx-mode rcall wait70us ;wartet 70 us wait_presence_pulse: sbic pinc, 6 rjmp wait_presence_pulse ;wartet
in „DS18S20 --> Quellcode-Überprüfung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2Ckpl0.c
Delayschleifen helfen auch nicht. * * Nächste Version 6 mit dem Versuch, auf den Blinkkram * zu verzichten. Geht nicht. * * */ #include <avr/io.h> /* aus avr-gcc-lib S. 152 */ #include <avr/twi.h> #include <inttypes.h> /* wahrscheinlich unnötig */ #include <stdlib.h> /* #include <stdio.h> * iom16.h muß in avr/
in „Wie avr-gcc starten?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Mega8_test2.asm
CSEG .org 0x00 rjmp init .org URXCaddr ; Interruptvektor für UART-Empfang rjmp int_rxc init: ; hier geht unsere Initalisirung los ; Stackpointer initialisieren ldi r16, LOW(RAMEND) out SPL, r16 ldi r16, HIGH(RAMEND) out SPH, r16 ; Baudrate einstellen ldi r16, HIGH(UBRR_VAL) out UBRRH, r16 ldi r16, LOW(
in „Menü rs232 wie macht man so was besser?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DPasmfinale.asm
; 5x5 Matrix = 25 LEDs, eine LED pro PIN ; ; PORTA PIN 0-7 = Ausgabe ; PORTB PIN 0-7 = Ausgabe ; PORTC PIN 0-7 = Ausgabe ; PORTD PIN 7 = Ausgabe ; PORTD PIN 1-6 = evtl. Eingaben für Musterwahl per Taster ; PORTD PIN 0 = Eingabe - Signal ; Danke Jobst! :) ; *******************************************
in „Audiotisch (Daft Punk)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DPasmfinale.asm
Version ; 5x5 Matrix = 25 LEDs, eine LED pro PIN ; ; PORTA PA 0-7 = Ausgabe ; PORTB PB 0 = Ausgabe ; PORTC PC 0-7 = Ausgabe ; PORTD PD 0-7 = Ausgabe ; PORTB PB 1 = Eingabe - Signal ; PORTB PB 3-4 = evtl. Tasteransteuerung ohne Musikerkennung ; PORTB PB 5-7 = ISP only ; Danke Jobst! :) ; ****************
in „Audiotisch (Daft Punk)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Kuehlschrankplatine_12.bas.txt
framesize = 50 $crystal = 5120000 'Quartzoszillator 'Display-Konfiguration Config Lcdpin = Pin , Db4 = Portc.1 , Db5 = Portc.2 , Db6 = Portc.3 , Db7 = Portc.4 , E = Portc.5 , Rs = Portd.0 Config Lcd = 16 * 2 'Display-Typ Dim Ee_startzaehler As Eram Integer 'Neustarts kontrollieren. Eram ist ein EEprom-Wert
in „unzuverlässiger Temperaturregler“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
_Dokumentation_V1.7_Stand_27.02.2013.pdf
******************************************************************* Config Lcdpin = Pin , _ Db4 = Portc.3 , _ Db6 = Portc.1 , _ Db7 = Portc.0 , _ E = Portc.4 , _ Rs = Portc.6 Config Pinc.5 = Output Portc.5 = 0 Initlcd Cursor Off Cls Locate 1 , 1 Lcd " LED-Cube Status" Lcd "--------------------" Locate
in „Tutorial 10x10x10 LED-Cube“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
_Dokumentation_V1.8_Stand_27.03.2013.pdf
******************************************************************* Config Lcdpin = Pin , _ Db4 = Portc.3 , _ Db6 = Portc.1 , _ Db7 = Portc.0 , _ E = Portc.4 , _ Rs = Portc.6 Config Pinc.5 = Output Portc.5 = 0 Initlcd Cursor Off Cls Locate 1 , 1 Lcd " LED-Cube Status" Lcd "--------------------" Locate
in „Tutorial 10x10x10 LED-Cube“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
_Dokumentation_V1.9_Stand_23.09.2013.pdf
angesprochen: Config Lcdpin = Pin , _********************************************************* Db4 = Portc.3 , _ Db5 = Portc.2 , _ Db6 = Portc.1 , _ Db7 = Portc.0 , _ Rs = Portc.6, _ Config Lcd = 20 * 4 Config Pinc.5 = Output Portc.5 = 0 Cursor Off Cls Locate 1 , 1 Lcd " LED-Cube Status" Locate 2 , 1 Lcd
in „Tutorial 10x10x10 LED-Cube“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
93AA46C_SPI_1.c
konfiguriert sein, sonst sachaltet sich der Master-modus wieder sofort ab. _93AA46_CS_DDR |= (1 << 0); //PORTC, PC0 als Ausgang schalten, LSB auf 1 stellen _93AA46_CS_PORT &= ~(1 << 0); //PORTC, PC0 auf 0 stellen; L --> deselected, standby mode _93AA46_PORT &= ~(1 << 5) | ~(1 << 7) ; //PB5 und PB7 alle Ausgänge
in „Ansteuerung EEPROM 93AA96C funktioniert nicht richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
<< 4); /* Bei der ersten Spalte eine 0 ausgeben (PB4 = 0) */ /* Diese 0 geht auf die Reise durch die Schieberegister */ } else { PORTB |= (1 << 4); /* Danach Einsen hinterherschicken (PB4 = 1) */ } /*--------------------------------------------------- * Impulse für die Schieberegister
in „Programmierung des Pingpong-Spiels von Franzis in C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
avr.txt
angeschlossen ist, wird die dazu passende LED eingeschaltet. Wenn der Schalter wieder losgelassen wird, dann geht die LED wieder aus. Beim STK500 ist dazu mit 8-er Kabeln die Steckerleiste "PORTD" zu verbinden mit "SWITCHES" und die Steckerleiste "PORTB" zu verbinden mit "LEDS". Es werden die folgenden Register
-
Datei
Wie_sag_ich_es_dem_AVR.txt
angeschlossen ist, wird die dazu passende LED eingeschaltet. Wenn der Schalter wieder losgelassen wird, dann geht die LED wieder aus. Beim STK500 ist dazu mit 8-er Kabeln die Steckerleiste "PORTD" zu verbinden mit "SWITCHES" und die Steckerleiste "PORTB" zu verbinden mit "LEDS". Es werden die folgenden Register
in „Assembler Sprache erlernen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18B20-C.asm
/*aus C umgesetzets Programm für DDS-Baustein. Version C: DS18B20 geht, I2C-Routine wird integriert Hardware: pin b,6 ist onewire-port (line). d,5 ist Pin für Trigegrung r20 Zählregister Zeitschleife r19 8-Bit-Teil eines Befehls r18 Zählregister in Routine Befehl r17 Zählregister
in „1-Wire Temperatursensor DS18S20 mit Atmega8 Ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Universeller_FB_Empfaenger.bas
use 40 for the frame space Config Lcd = 40 * 2 'configure lcd screen Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.5 , Db6 = Portc.6 , Db7 = Portc.7 , E = Portc.2 , E2 = Portc.3 , Rs = Portc.0 Config Pinc.1 = Output Portc.1 = 0 Config Pind.7 = Output Portd.7 = 0 Dim Impuls_laenge As Word , Flanken_index
in „Denon IR Fernbedienung mit Bascom nutzen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
93AA86C_SPI_3.c
konfiguriert sein, sonst sachaltet sich der Master-modus wieder sofort ab. _93AA86C_CS_DDR |= (1 << 0); //PORTC, PC0 als Ausgang schalten, LSB auf 1 stellen _93AA86C_CS_PORT &= ~(1 << 0); //PORTC, PC0 auf 0 stellen; L --> deselected, standby mode _93AA86C_PORT &= ~(1 << 5) | ~(1 << 7) ; //PB5 und PB7 alle Ausgänge
in „Ansteuerung EEPROM 93AA96C funktioniert nicht richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
avr.txt
angeschlossen ist, wird die dazu passende LED eingeschaltet. Wenn der Taster wieder losgelassen wird, dann geht die LED wieder aus. Der Vollständigkeit sei angemerkt, daß ein Taster nicht das gleiche ist wie ein Schalter; der Taster geht nach Loslassen automatisch wieder in seine Ausgangsstellung zurück, der
-
PDF
RC_Funk.pdf
................................................................................... 2 1.1. W ORUM GEHT ES?.................................................................................................................... 2 1.2. W ARUM KEINE433 MH Z-M ODULE?..........................................
in „Datenversand über RC - Fernbedienungen“ · Projekte & Code ·
-
Datei
93AA86C_SPI_2.c
konfiguriert sein, sonst schaltet sich der Master-modus wieder sofort ab. _93AA86C_CS_DDR |= (1 << 0); //PORTC, PC0 als Ausgang schalten, LSB auf 1 stellen _93AA86C_CS_PORT &= ~(1 << 0); //PORTC, PC0 auf 0 stellen; L --> deselected, standby mode _93AA86C_PORT &= ~(1 << 5) | ~(1 << 7) ; //PB5 und PB7 alle Ausgänge
in „Ansteuerung EEPROM 93AA96C funktioniert nicht richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
UART.asm
-------------------------------------------------------------Transmit UartTransmit: ; transmitten geht ohne Porbs ldi tempa, 'T' rcall serout ldi tempa, 'e' rcall serout ldi tempa, 's' rcall serout ldi tempa, 't' rcall serout ldi tempa, 10 rcall serout ldi tempa, 13 rcall serout ret serout: sbis UCSRA
in „UART Empfang geht net“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
temp_senden.asm
count_re: .byte 1 count_pc: .byte 1 crc: .byte 1 id_rom: .byte 1 rsbuff: .byte 6 .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 „DS1820/DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-eigen.c
DDRB #define PIN_RS PB6 #define PIN_E PB7 #define CURSOR_HOME 0x02 void led (unsigned char wert) { PORTC|= _BV(wert); _delay_ms (100); PORTC|= _BV(wert); } void lcd_ein (void) { S_PORT |= (1<<PIN_E); _delay_us (50); S_PORT &= ~(1<<PIN_E); led(PC5); } void lcd_befehl(unsigned char wert) { S_PORT &= ~(1
in „Init Problem mit KS0066 (Conrad)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
INTERRUPT_PROGRAMMATION_DES_LESERS.HTML
> </font><font color="#800000">Portc</font><font color="#FF0000">.</font><font color="#000000">5 </font><font color="#FF0000">,</font><font color="#000000"> Db6 </font><font color="#FF0000">=</font><font color="#000000"
in „RXC Interrupt Problem ( Bascom)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SteuerPIC.asm
PORTB: 0 LCD Display E ;* 1 ;* 2 LCD Display RS ;* 3 LCD Display R/W ;* 4-7 LCD Display D4 .. D7 ;* PORTC: 0 ;* 1 ;* 2 ;* 3 I2C SCL ;* 4 I2C SDA ;* 5 ;* 6 RS232 TX ;* 7 RS232 RX ;************************************************************** list p=16f876A #include <P16f876A.INC> ; ERRORLEVEL -302 ;SUPPRESS
in „PIC16F876A rs232 Port Steuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
CanKnoten.txt
ATA6660 #define _EN_PH_LAY_OFF (PORTB |= (1<<PORTB0)) // Ausgang, Disable ATA6660 // #define _FS_PH_LAY PORTC.7 // Eingang, Fehlersignal vom Ph. Lay., 0==> Fehler /************* Definitionen CAN Protokoll ********************************/ #define UNIT 0 // Seriennummer (3 Byte) setzt sich aus Einheit, Woche
in „WINAVR produziert falschen Code“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tast.c
Alphanumeric LCD Module functions #asm ;.equ __lcd_port=0x1B ;PORTA ;.equ __lcd_port=0x18 ;PORTB aus STK geht nur, wenn ISP nicht gesteckt ;.equ __lcd_port=0x15 ;PORTC .equ __lcd_port=0x12 ;PORTD #endasm //#include <lcd.h> #include <dog_lcd.h> typedef unsigned char u8; typedef signed short s16; //#define XTAL
in „EA DOG-M Display (ST7046) und customchars. ARGH!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
timer_opt.asm
; movwf PIE1 ; nur CCP1IE freigeben movlw 0 movwf PIE2 bcf STATUS,RP0 clrf PORTA clrf PORTB clrf PORTC ; **** UART Init **** bsf STATUS,RP0 movlw 00000000b movwf TXSTA bcf STATUS,RP0 movlw 0 movwf RCSTA ; UART dissabled ; **** AD-Module **** movlw 00000000b movwf ADCON0 ; shutoff bsf STATUS,RP0 movlw
-
Datei
source.txt
Ausgabebyte nicht aendern ; Hier müssen wir das aktuelle Bit im Ausgabebyte setzen EOR temp1, temp2 ; Das geht über Exklusiv-Oder, also im Prinzip das 0bit togglen OUT_BIT_READY: ; Bit fertig, nächstes bit schieben LSL temp2 TST temp2 BRNE OUT_CHAR_LOOP ; Rücksprung Schleife3 (noch nicht alle 8 bits fertig)
in „Datenkonvertierung mit 90s8515“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
uart.c
; // Flag für 'Senden ist komplett' löschen, uart_tx_flag = 0; // UDRE Interrupt einschalten, los gehts UCSRB |= (1<<UDRIE); } } void get_string(char *daten) { if (uart_rx_flag==1) { // String kopieren strcpy(daten, uart_rx_buffer); // Flag löschen uart_rx_flag = 0; } } //----------------------------
in „LabView mit µC synchronisieren“ · Mikrocontroller und Digitale Elektronik ·