-
Datei
Makefile.txt
PRG = master.c OBJ = master.o MCU_TARGET = atmega128 # Optimierung war standardmäßig auf -o2 (kleines "o" und "2"). Dann werden jedoch Sachen eliminiert # (z.B. Zähler, die nicht abfegrafragt werden). Aus deisem Grund wurde die Optimierung # ausgeschaltet
in „Fehlermeldung bei neuem Compiler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ENCODE.C
*************************************/ #include <avr\io.h> #include <avr\interrupt.h> // target: ATmega16 //------------------------------------------------------------------------ #define XTAL 8e6 // 8MHz #define PHASE_A (PINA & 1<<PA1) #define PHASE_B (PINA & 1<<PA3) #define LEDS_DDR DDRC #define LEDS PORTC // LEDs against VCC int8_t enc_delta; // -128 ... 127 void encode_init( void ) { TCCR0 = 1<<WGM01^1<<CS01^1<<CS00; // CTC, XTAL / 64 OCR0 = (uint8_t)(XTAL / 64.0 * 1e-3 - 0.5); // 1ms TIMSK |= 1<<OCIE0; } ISR( TIMER0_COMP_vect ) // 1ms for manual
in „Drehgeber/Encoder 1-, 2- oder 4-schrittig“ · Projekte & Code ·
-
Datei
Prog_Bascom.txt
-------------------------------------------' ' Test zum beschreiben und auslesen des I2C EEprom 24C128 ' ' ' Ausgabe fortlaufender Nummerierung auf dem Display und dem Terminalprogramm ' '------------------------------------------------------------------ ' ' 'Testprogramm für ATmega8 ' 'Der gesendete
in „I2C EEprom I²C EEprom problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SPI.h
SPI_FOSC_DIV_16 0x01 #define SPI_FOSC_DIV_32 0x06 #define SPI_FOSC_DIV_64 0x02 #define SPI_FOSC_DIV_128 0x03 #define SPI_RUNNING (!(SPSR & (1 << SPIF))) //**************************************************************************************** //Definitionen für den ATMega88 Mikrocontroller //dieser Teil
in „Atmega88- Daten von Sensoren auf Flash abspeichern“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Schematic_Atmega32U2_Ult.GPS_NOR-Flash_Sheet_1_20200330171408.pdf
1 2 3 4 5 A A 3,7V LIPO-Akku SW1 Anschalter VCC 3 U1 R3 S1 ATMEGA32U2-AU 4 GND ? TASTER C 4 V (SS/PCINT0)PB0 14 JP1 (SCLK/PCINT1)PB1 15 D1 (PDI/MOSI/PCINT2)PB2 16 AVR-ISP-6SMD Zenerdiode 17 MISO 1 2 VTG GND 24 (PD0/MISO/PCINT3)PB3 18 MOSI 4 5 RST B 32 PC1(RESET/dW
in „Datei auf SD-Karte via AVR auf Computer übertragen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AVR_USB_GPS.pdf
4 5 A A Ladebuchse 3,7V LIPO-Akku SW1 Schalter + 3,3 Volt VCC D1 R3 Zenerdiode ? U1 MISO 1 2 VTG ATMEGA32U2-AU 4 MOSI 4 5 RST GND SCK 3 6 JP1 C GAVR-ISP-6SMD V (SS/PCINT0)PB0 14 (SCLK/PCINT1)PB1 15 AVR ISP 16 (PDI/MOSI/PCINT2)PB2 17 B 24 (PD0/MISO/PCINT3)PB3 18 B PC1(RESET/dW) (T1/PCINT4)PB4 W25Q128
in „Datei auf SD-Karte via AVR auf Computer übertragen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Uhr_Temp.asm
/* * Uhr_Temp.asm * * Version: v1 * Verwendete Hardware: -ATMega128A -DS1307 -AT24C32 -DS18B20 -MAX232 -LCD 16x2 * Eine Uhr mit EntsorgungsKalender. * -Restmüll * -Papier * -Gelber Sack * * Einstellungen mit PC-Terminalprogramm * zu aktivieren mit der leertaste * * Created: 28.05.2014 19:31:36 * Author: Killroymenzel */ .nolist #include "m128adef.inc" .list ;---------------------- ;Register Defs ;---------------------- .def DayOld = r13 .def Day_count = r14 .def RTC_count = r15 .def accu = r16 ;Hauptarbeitsregister .def temp = r17 ;Zählregister
-
Datei
PWM.c
******************************** */ /********************************************* * Chip type : ATMEGA32 * Clock frequency : clock 16 MHz *********************************************/ #include <avr/io.h> #include <inttypes.h> #include <string.h> #include "disp.h" uint32_t ReadChannel(uint8_t mux) {
in „Gemessene Spannung ungleich ADC-Wert“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM.c
******************************** */ /********************************************* * Chip type : ATMEGA32 * Clock frequency : clock 16 MHz *********************************************/ #include <avr/io.h> #include <inttypes.h> #include <string.h> #include "disp.h" uint32_t ReadChannel(uint8_t mux) {
in „Leider noch immer keine Lösung mit ADC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
USART0.h
/********************************************* * File: USART0.c * * Funktion: USART , RS232 für Atmega128 * * Autor: Martin Schramm * ***********************************************/ void USART_Init0(void){ UBRR0H = UBRR_VAL >> 8; UBRR0L = UBRR_VAL & 0xFF; //8N1 Daten //UCSRC|=0x86; UCSR0B = (1<<RXEN
in „irgendwas stört rs232 übertragung von float-messwert?!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds.c
30.04.2009 Author : Freeware, for evaluation and non-commercial use only Company : Comments: Chip type : ATmega8515 Program type : Application AVR Core Clock frequency: 3,686400 MHz Memory model : Small External RAM size : 0 Data Stack size : 128 *****************************************************/ #include
in „DS1820 defekt?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds.c
30.04.2009 Author : Freeware, for evaluation and non-commercial use only Company : Comments: Chip type : ATmega8515 Program type : Application AVR Core Clock frequency: 3,686400 MHz Memory model : Small External RAM size : 0 Data Stack size : 128 *****************************************************/ #include
in „DS1820 defekt?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ADC_USART_Read_adc.h
+++++++++++++++++++++++++++++++++++++++++++++++++++++++ 8-Bit-Analog-Digital-Converter mit ATMEL ATmega8 to STK500 board, output on (PortB) --> LEDs Description: The ADC converts an analog input voltage to a 10-bit digital value through successive approximation. The minimum value represents GND and the
in „warnung:"[variable]may be used uninizialized"“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ATmega8-Belichtungstimer.asm
=============================================================== ;Titel: Belichtungstimer ;Datei: ATmega8-Belichtungstimer.asm ;Autor: Alexander Sewergin ;Datum: 29.07.2006 ;Eingebunden: m8def.inc ;==================================================================== ;Deklarationsteil ;================
in „Multiplexbetrieb, Hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test_lcd_2.c
"lcd.h" /* ** constant definitions */ #ifndef CTC1 #define CTC1 WGM12 // for compatibility with ATmega #endif #define PHASE_A (PINC & 1<<PINC2) // PINC.2 #define PHASE_B (PINC & 1<<PINC3) // PINC.3 #define PHASE_E (PINC & 1<<PINC5) // PINC.5 #define ESECT __attribute__((section(".eeprom"))) uint8_t
in „Drehregler an uC - geht das?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test2.c
/* Eine 8-kanalige PWM mit verbessertem Lösungsansatz ATmega32 @ 8 MHz */ // Defines an den Controller und die Anwendung anpassen #define F_CPU 16000000L // Systemtakt in Hz #define F_PWM 100 // PWM-Frequenz in Hz #define PWM_STEPS 256L // PWM-Schritte pro Zyklus
in „Moodlight Sourcecode hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Schematic.pdf
RESET 22 100nF 100nF C3 10K PEN GND 53 23 GND 63 GND 24 XTAL2 GND GND 15pF 2 XTAL1 Y1 C4 1 18,432MHz ATmega128-16AI GND 15pF D Title D Size Number Revision A4 Date: 21.04.2005 Sheet of File: Sheet1.SchDoc Drawn By: 1 2 3 4
-
Datei
adc.c
/*####################################################################################### ATmega8,16,32,64 and 128 ADC Functions Copyright (C) 2005 Branko Golubovic branko.golubovic@gmx.at #######################################################################################*/ #include "main.h
in „ATmega32 ADC differentiell“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
adc.c
/*####################################################################################### ATmega8,16,32,64 and 128 ADC Functions Copyright (C) 2005 Branko Golubovic branko.golubovic@gmx.at #######################################################################################*/ #include "main.h
in „Win AVR adc ansprechen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.asm
; ; ; Target ATmega8515 @ 8MHz ; ; Status LED = PortE,0 - PE0 ; ; Feste DMX Adresse: 1 .include "m8515def.inc" ; Register and Pin definitions .def temp =r16 .def tempH =r17 .def dmx_byte =r19 .def DELAY_01 =r21 .def DELAY
in „mega8515 - DMX senden“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Schaltplan.pdf
0 1 2 3 4 5 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 100k R 1 R 1 R 1 R 1 R 1 R 1 R 1 R 1 R 1 LM358 + R128 - Anschluss_B +5V 1k 5 IC3b 3 R137 IC1 1 Display1 WH1602D R PB0 PA0 36k PB1 PA1 LM358 LCD-DISPLAY PB2 PA2 PB3 PA3 V E W D D +5V PB4 PA4 + + 0 V R R E D D D D D D D D L LE PB5 PA5 +5V R140 PB6 PA6 -
in „ELV Hochleistungsnetzteilplatine“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Trollsauna_1.ino
/* GraphicsTest_14N003_HD61830_LC7981 Arduino UNO und Atmega 328P Universal 8bit Graphics Library, https://github.com/olikraus/u8glib/ Farbausgabe wäre mit anderem Display möglich Arduino Pin 0 --> GLCD Pin 11 Pin 1 --> Pin 12 Pin 2 --> Pin 13 Pin 3 --> Pin
in „GLCD mit Arduino soll Variable anzeigen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
display.c
Demoprogramm um Text und Grafik auf // KS108 Grafik-LCD-Display anzuzeigen // Display: Displaytech 64240A 128x64 Pixel // // Compiler WinAVR 3.3 //************************************************************************ // Prozessor: ATMega32 //***************************************************************
in „Wie funktioniert eine Font datei?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVRxt.asm
; SLdt 2405031200 PIT-Interrupt auf AVR64EA28 ; avrasm2 .include "m4809def.inc" /* .include "AVR128DA28def.inc" .include "AVR64EA28def.inc" .include "AVR16EB28def.inc" .include "AVR32DD28def.inc" .include "m4809def.inc" */ .equ DIR_LED = VPORTA_DIR .equ IN_LED = VPORTA_IN .equ LEDpit = 7 .equ LEDlive
in „AVR64EA28: PIT-Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
noname.pdf
4 5 6 Eig ein 2937ET-3.3 +5V U1 +3.3V LM2931AZ-3.3/5.0 TO92-123 3 VI VO 1 D C G C 2 C4 C5 IC2 DOGM128 7 C C 1 1 NC(A1+) V0(LCDrive) 21 1 A 2 22 C C A +3.3V GND +3.3V NC(A2+) V1(LCDrive) C C 2 IC1 3 NC(A3+) V2(LCDrive) 23 1 LED 24 C C 7 VCC (PCINT0/CLKO/ICP1)PB04 2 1 V3(LCDrive) C C C 1 15 +3.3V V4(LCDrive
in „DOGM128L-6 Kontrastspannung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ohne_kontrollausgabe.asm
0x00 ; 0 } if (head >= tail) return SERIAL_TX_BUFFER_SIZE - 1 - head + tail; 126: 82 1b sub r24, r18 128: 93 0b sbc r25, r19 12a: 54 17 cp r21, r20 12c: 10 f0 brcs .+4 ; 0x132 <HardwareSerial::availableForWrite()+0x1a> 12e: cf 96 adiw r24, 0x3f ; 63 130: 08 95 ret return tail - head - 1; 132: 01 97 sbiw
in „AVR Inline Optimierung kaputt?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PID_3.3_Multicycles.txt
--------------------------------------------------------- $regfile = "m64def.dat" ' def file for ATmega16 $baud = 9600 '9600 $crystal = 16000000 ' 16MHz cristal ' ------------------------------------------------------------------------------ ' ----[Configure the watchdog]-----------------------------
in „Frage Regelungstechnik: dynamische Systeme“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Ender3_schematic.PDF
BEDTEMP 31 ADC7/PCINT7/PA7 RESET A PIWR0 PI PIP10 EN BST PIU108 ZENABLEBL P32831 ADC6/PCINT6/PA6 A HP128-5.0-2P PI Beeper P33832 ADC5/PCINT5/PA5 R_P2 NLLCD0C PIU833 ADC4/PCINT4/PA4 C500 GND GND GND COEX0A2 VCC LCD_CS PIU834 ADC3/PCINT3/PA3 XTAL2 PU807 PC0 PC02 GND PI24.9k R_P4 EXT-A2 EXT-A2 PIU835 ADC2
in „Problem mit SD Card Melzi Creality3D V1.1.3 Sanguino Atmega 1284“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
network_atmega.xml
> <x>880</x> <y>128</y> </end> </lines> <lines> <xLoc>0</xLoc> <yLoc>0</yLoc> <index>0</index> <color> <red>255</red> <green>0</green> <blue>51</blue> </color> <layer>1</layer> <start> <x>864</x> <y>112</y> </start> <end
-
Datei
AVR.html
" rowspan="1" style="width: 8.485%;" class="hcp11" width="8.485%"> <p class="hcp2" align="right">ATmega128A</p> </td> <td colspan="1" rowspan="1" style="width: 6.776%;" class="hcp13" width="6.776%"> <p class="hcp14" align="center">a</p> </td> <td colspan="1" rowspan="1" style="width: 5.598%;" class="
in „Billige Alternative zu AVR STK 500 oder Wie brenne ich günstig mein Programm auf den Mikrochip?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Configuration_adv.h
#define L6470_CHITCHAT // Display additional status info #if AXIS_IS_L64XX(X) #define X_MICROSTEPS 128 // Number of microsteps (VALID: 1, 2, 4, 8, 16, 32, 128) - L6474 max is 16 #define X_OVERCURRENT 2000 // (mA) Current where the driver detects an over current // L6470 & L6474 - VALID: 375 x (1 - 16
in „Ender3 Z-Achse fährt mit Marlin nur nach oben“ · Mechanik, Gehäuse, Werkzeug ·
-
Datei
Impulse_Interrupt.txt
///////////////////////////////////////////////////////////////////////////// // Initialisierung Atmega8L /////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////// void init() { //Ouputs: DDRD =
in „Impulse schwanken im oberen Spannungsbereich?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Master.c
/+-------------------------------------------------------------------------------+ //Prozessor : ATmega 32 ex. mit 20 000 00 MHz //Sprache : C //Programm : AVR //Datum : 20.10.2010 //Autor : Sebastian Prets //Schaltung : Senden über TWI I²C two wire interface //+--------------------------------------
in „TWI Slave reagiert nicht im Interruptmodus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Taster-test.asm
.include "m8def.inc" ; ATmega 8 ; .def save_sreg = r0 ; Sicherung des Statusregister innerhalb eines Unterprogrammes .def isave_sreg = r1 ; innerhalb einer Interrupt-Serviceroutine .def iwr0 = r2 .def iwr1 = r3 .def key_old = r4
in „Versorgungsspannung unsauber- Was tun?“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
main.c
/* Test des Free run mode im ADC ATmega328P, aka Arduino Uno/Micro/Nano */ #define F_CPU 16000000UL #include <stdbool.h> #include <avr/io.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include <util/delay.h> #define ADC_CHANNELS 3
in „ADC-Kanäle sukzessive abfragen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
Reading rotary encoder one, two and four step encoders supported Author: Peter Dannegger target: ATmega168 modifiziert Richard S. ************************************************************************/ #define F_CPU 8000000UL #include <stdlib.h> #include <avr/io.h> #include <util/delay.h> #include
-
Datei
main.c
Reading rotary encoder one, two and four step encoders supported Author: Peter Dannegger target: ATmega168 modifiziert Richard S. ************************************************************************/ #define F_CPU 8000000UL #include <stdlib.h> #include <avr/io.h> #include <util/delay.h> #include
-
Datei
Drehgeber_Atmega328_und_Codevision.txt
// 8MHz #include <interrupt.h> #include <stdint.h> // this is needed for int8_t, etc. // target: ATmega328 //------------------------------------------------------------------------ #define PHASE_A (PIND & 1<<2) // PORTB pin 1 MODIFY TO SUIT YOUR NEEDS #define PHASE_B (PIND & 1<<3) // PORTB pin 3 MODIFY
in „Drehgeber überspringt mehrere Werte“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Arith_Hardware_Multiply_doc1631.pdf
evident, i.e., if adding one to a signed byte variable that contains the value +127, the result will be -128 instead of +128. One solution often used to solve this problem is to introduce fractional numbers, i.e., numbers that are less than 1 and greater than or equal to -1. The final section pre- sents some
in „AVR 8Bit-Werte mit Faktor 0-1 multiplizieren (Synth)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
variablen.h
Speicheradressen der fuer Ports reservierten Register ; Grundlage: Memory Configuration A -> Chip im ATmega128 Modus ; standard I/O memory range: $0020 - $005F ; allgemein: I/O bi-direktional ; alternativ: low byte und datalines fuer EMI .define PORT_PA 0x3B .define PORT_DDRA 0x3A .define PORT_PINA 0x39
in „ATmega128 & Imagecraft Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test2.c
/* Eine 8-kanalige PWM mit verbessertem Lösungsansatz ATmega32 @ 8 MHz */ // Defines an den Controller und die Anwendung anpassen #define F_CPU 16000000L // Systemtakt in Hz #define F_PWM 100 // PWM-Frequenz in Hz #define PWM_STEPS 256L // PWM-Schritte pro Zyklus
in „Moodlight Sourcecode hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test2.c
/* Eine 8-kanalige PWM mit verbessertem Lösungsansatz ATmega32 @ 8 MHz */ // Defines an den Controller und die Anwendung anpassen #define F_CPU 16000000L // Systemtakt in Hz #define F_PWM 100 // PWM-Frequenz in Hz #define PWM_STEPS 256L // PWM-Schritte pro Zyklus
in „Moodlight Sourcecode hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Code.txt
/* DEFINITIONEN */ #ifndef MCU #define MCU atmega328 #endif #ifndef F_CPU #define F_CPU 20000000UL // 20 MHz externer Takt #endif #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <math.h> #include <stdlib.h> #include
in „PWM Invertieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Code.c
http://www.mikrocontroller.net/topic/175212#1682329 /* DEFINITIONEN */ #ifndef MCU #define MCU atmega328 #endif #ifndef F_CPU #define F_CPU 20000000UL // 20 MHz externer Takt #endif #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <math.h> #include <stdlib.h> #include
in „PWM Invertieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DDS.c
// uC ATMega DDS IC // PB1 (Pin 11) SCK <---> Pin 48 SCLK // PB2 (Pin 12) MOSI <---> Pin 50 SDIO_0 // PB3 (Pin 13) MISO <---> Pin 52 SDIO_2 // PF1 (Pin 60) <---> Pin 46 IO_Update #include <avr/io.h> #include <util
in „Analog Devices: DDS IC (AD9959) mit ATMega64L ansteuern SPI“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
PORTB * * www.microcontroller-starterkits.de * * Software: Win-AVR-GCC to compile * * Hardware: ATMega128_Evoboard * * Hinweis: Der Autor übernimmt Keinerlei Garantie und Haftung über * * Vollständigkeit und Richtigkeit der Beispielprogramme * ********************************************************
in „AT90CAN128 Uart Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM.c
#ifndef MCU // Welcher AVR genutzt wird, wird i.A. im Makefile definiert #define MCU atmega48P #endif #ifndef F_CPU // kann auch im Makefile definiert sein #define F_CPU 800000UL // Takt als LONG definieren, da zu groß für Integer #endif #define true 1 #define false 0 #define STK500 false
in „Probleme mit der Verbindung PWM + ADC“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
0000.pdf
GPIO6/ALARM/PD[7] GPIO7/BUZZER/CAM_PWR_ON 7 PE4 PD5 31 8 PE5 PD6 32 9 PE6 PD7 PE7 22 GND 53 GND ATMEGA128_SMD 10.03.2011 13:44:05 C:\Users\hamid\Documents\eagle\mc\untitled.sch (Sheet: 1/1)
in „Bitte um Hilfe“ · Platinen ·
-
Datei
main.c
ADMUX = mux; // Kanal waehlent ADCSRA |= (1<<ADPS2) |(1<<ADPS1) | (1<<ADPS0); // Frequenz setzen auf 128 (Vorteiler) und ADC aktivieren (1) // ADCSRA = (1<<ADEN) | (1<<ADPS2) | (1<<ADPS0); //Frequenzvorteiler= 32 // ADCSRA &=~ (1<<ADPS1); ADCSRA |= (1<<ADSC); // eine ADC-Wandlung while ( ADCSRA & (1<<ADSC
in „ATMEGA32 (Daten verarbeiten und senden)“ · Softwareentwicklung ·
-
Datei
Voltmeter_2016_07_24_v3.c
/********************************************* ** ** ** Voltmeter ** ** ATmega324ÇA TQFP-44 ** ** 3,3 Volt ** ** ** **********************************************/ /* PWM (OC1B) stellt die Spannung auf AIN1 ein, Komparator vergleicht sie mit Eingangsspanung auf AIN0 Durch Aendern
in „Eine "Kinderfrage" bzg. *.h und *.c“ · Mikrocontroller und Digitale Elektronik ·