-
PDF
ttester.pdf
oder 4x20 Zeichen großen LC-Display. Alternativ kann bei Verwendung eines Prozessors mit mindestens 32K Flash Speicher auch ein graphisches Display mit 128x64 Pixel und ST7565-, ST7920, NT7108, KS0108 oder SSD1306-Controller benutzt werden. Dabei wird anstelle der2Standard 4-Bit Parallel-Schnittstelle
-
Datei
PWM_8AVR.ASS
/* Beispielprogramm fuer PWM-Ausgabe bei AVR-Controllern (hier AT90S8515). Das PWM-Intervall betraegt 256 * 32æs -> 8,192ms. In diesem Intervall werden moeglichst viele nicht zusammenhaengende Einzelimpulse erzeugt, sodass bei einem Ausgabewert
in „Software PWM 8-fach“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
pegasus_5x7_font.bas
H80 Then Forecolor1 = Forecolor1 + 128 x5 = R And &H40 : If x5 = &H40 Then Forecolor1 = Forecolor1 + 64 x5 = R And &H20 : If x5 = &H20 Then Forecolor1 = Forecolor1 + 32 x5 = R And &H10 : If x5 = &H10 Then Forecolor1 = Forecolor1 + 16 x5 = G And &H80 : If x5 = &H80 Then Forecolor1 = Forecolor1 + 4 x5 =
in „Mini-Farbdisplay (+mehr) für 1 Euro“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
objdump-elf.txt
; 97 322: 72 2f mov r23, r18 324: 69 6e ori r22, 0xE9 ; 233 326: 63 6c ori r22, 0xC3 ; 195 328: 75 64 ori r23, 0x45 ; 69 32a: 65 2f mov r22, r21 32c: 61 76 andi r22, 0x61 ; 97 32e: 72 2f mov r23, r18 330: 69 6f ori r22, 0xF9 ; 249 332: 2e 68 ori r18, 0x8E ; 142 334: 00 2f mov r16, r16 336: 75 73 andi
in „ax8 soft core auf Spartan 3AN Devboard, Probleme mit erstem Testprogramm und Simulation“ · FPGA, VHDL & Co. ·
-
Datei
debug_error.asm
HA_Sensor_Raumklima.elf: file format elf32-avr Disassembly of section .text: 00000000 <__vectors>: 0: 0c 94 34 00 jmp 0x68 ; 0x68 <__ctors_end> 4: 0c 94 51 00 jmp 0xa2 ; 0xa2 <__bad_interrupt> 8: 0c 94 47 02 jmp 0x48e ; 0x48e <__vector_2> c:
in „Fehler bei einfacher Integer-Division?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVGA.vhd
AVR_RD: in std_logic; AVR_Clock: out std_logic; -- Clock/2 für AVR == 16MHz -- CPLD Clock: in std_logic; -- 32MHz Reset: in std_logic; -- Reset low active -- SRAM, 512Kb 10-15ns SRAM_Addr: out std_logic_vector
-
Datei
AVGA.txt
AVR_RD: in std_logic; AVR_Clock: out std_logic; -- Clock/2 für AVR == 16MHz -- CPLD Clock: in std_logic; -- 32MHz Reset: in std_logic; -- Reset low active -- SRAM, 512Kb 10-15ns SRAM_Addr: out std_logic_vector
-
Datei
LCD_4_45.c
/www.mino-elektronik.de Alle Angaben ohne Gewaehr ! 2013-03-20 */ #include <avr/io.h> #include <avr/interrupt.h> #include <stdlib.h> #include <avr/sleep.h> #include <avr/wdt.h> #include <string.h> #define BIT(x) (1<<x) #define EIN_AUS_TASTER 4 // PortB 4 #define LCD_STR 0 // PortB
in „7-Segm. LCD-Ansteuerung, 4-stelliges Einbaumodul, Attiny45“ · Projekte & Code ·
-
Datei
dpa-qoi.h
0] == 'q' && a[1] == 'o' && a[2] == 'i' && a[3] == 'f'; } static inline uint32_t qoi_get_width (qoi_byte*restrict a){ return (uint32_t)a[4]<<24 | (uint32_t)a[5]<<16 | (uint32_t)a[ 6]<<8 | (uint32_t)a[ 7]; } static inline uint32_t qoi_get_height(qoi_byte*restrict a){ return (uint32_t)a[8]<<24 | (uint32_t)a[9]<<16 | (uint32_t)a[10]<<8 | (uint32_t)a[11]; } static inline unsigned char qoi_get_channels(qoi_byte*restrict a){ return a[12]; } static inline unsigned char qoi_get_colorspace(qoi_byte*restrict
in „RGB Bitmap im MCU in C“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Crumb128_051120.pdf
There exist several commercial C/C++ compiler suites (e.g. IAR Embedded Workbench or CodeVisionAVR) as well as the WinAVR GNU C/C++ compiler and tools suite (see http://winavr.sourceforge.net for details, the bootloader of Crumb128 was developed with WinAVR). A suitable and reasonably priced Basic
in „Crumb128 Probleme bei der Inbetriebnahme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
unsigned char BYTE; //8 Bit typedef unsigned short WORD; // 16 Bit typedef unsigned long DWORD; //32 Bit typedef unsigned long long QWORD; //64 Bit #include <avr\io.h> //Einfügen der Headerdatei für die Namen der AVR Register usw. #include <stdint.h> #include "twimaster.c" #define DELAY_SEND 50000 int main(void); //Main int init_avr(void); //INIT vom AVR void delay(void); DWORD Temp01; BYTE Temp02; int main(void) { init_avr(); i2c_init(); delay(); for(;;) { PORTB ^= (1<<PB1); //LM75 auslesen i2c_start_wait(0x91); // set device
in „Wieder LM75“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
IO.c
//{{AVR_IO_DESIGNER_INIT // C:\Daten\beagle_imu\IO.aid // // Project Options - IO // // Device Name = ATmega64 // CPU Frequency (F_CPU) = 16,8 MHz // IC Package = TQFP // Sort Pins by = Pin Number // Output
in „Assemblerdatei unter Eclipse einbinden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dds.asm
0x0c,0x0e,0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x1e .DB 0x20,0x22,0x24,0x26,0x28,0x2a,0x2c,0x2e,0x30,0x32,0x34,0x36,0x38,0x3a,0x3c,0x3e .DB 0x40,0x42,0x44,0x46,0x48,0x4a,0x4c,0x4e,0x50,0x52,0x54,0x56,0x58,0x5a,0x5c,0x5e .DB 0x60,0x62,0x64,0x66,0x68,0x6a,0x6c,0x6e,0x70,0x72,0x74,0x76,0x78,0x7a,0x7c,0x7e .
in „ASM von MiniDDS in WinAVR kompilieren. Wie?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
Toolbox */ /* */ /************************************************************************/ #include <avr/io.h> #include <avr/interrupt.h> #include <avr/eeprom.h> #include "taster.h" // CPU: ATmega8 //------------------------------------------------------------------------ #define XTAL 8e6 // 8MHz #define
in „Tastenabfrage kurz/lang“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
Beispiel für den Aufruf der SRF08-Routinen Die Timer-konfiguration ist angepasst für einen Mega16/32. Ansonsten müsste der Code auf allen AVRs mit I2C-Schnittstelle funktionieren. Getestet bis jetzt nur auf einem mega16. uwegw, 23.9.08 */ #include <avr/io.h> #include <avr/interrupt.h> #include "libs
in „SRF10 an ATMega16“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
drg_at88.c
#include <avr/io.h> #include <avr/interrupt.h> #define XTAL 8000000 // 8MHz #define PHASE_A (PIND & 1<<PD1) #define PHASE_B (PIND & 1<<PD3) #define LEDS_DDR DDRC #define LEDS PORTC // LEDs against VCC volatile int8
in „Drehgeber auf Atmega 88 wandeln“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include <avr/io.h> #include <avr/interrupt.h> #include <string.h> //ATTENTION: Timer0 is active while receiving - don't use him! (only while receiving, not while waiting) #define RCPIN 0 //choose between PB 0 -7
in „ATmega328P; Bit setzen/löschen eines Integers klappt nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
Please note that USB D+ must be the INT0 pin, or at least be connected to INT0 as well. */ #include <avr/io.h> #include <avr/wdt.h> /* watchdog */ #include <avr/interrupt.h> /* for sei() */ #include <util/delay.h> /* for _delay_ms() */ #include <string.h> /* for memcpy */ #include <avr/pgmspace.h> /* required
in „Versand/Empfang (?) von falschen Daten via V-USB“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
//ICC-AVR application builder : 21.08.2012 10:29:55 // Target : M32 // Crystal: 8.0000Mhz #include <iom32v.h> #include <macros.h> //Ports #define Display_ON (PORTA |= 0x3F) #define Reset (PORTD |= 0x40) #define
in „[ks0108] Chip1 reagiert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TimerundUart.txt
#include <avr/io.h> #include <avr/interrupt.h> #include <avr/signal.h> #include <stdlib.h> #include <stdint.h> #include <stdio.h> typedef unsigned long int uint32_t; /* *******************************************
in „GCC + Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
ADPS0); // Frequenzvorteiler 16 //ADCSRA = (1<<ADPS2) | (0<<ADPS1) | (1<<ADPS0); // Frequenzvorteiler 32 //ADCSRA = (1<<ADPS2) | (1<<ADPS1) | (0<<ADPS0); // Frequenzvorteiler 64 //ADCSRA = (1<<ADPS2) | (1<<ADPS1) | (1<<ADPS0); // Frequenzvorteiler 128 // Multiplexer langsam, aber genau //ADMUX = (0<<REFS1
in „Präprozess Makro >>> Fehler: undeclared“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FFT.asm
----------------------------------------------------; ; 16bit fixed point FFT performance with megaAVR @16MHz ; ; Points: Input, FFT, Output, Total: Throughput ; 64pts: .17ms, 1.9ms, 1.4ms, 3.5ms: 18.3kpps (expected) ; 128pts: .34ms, 4.4ms, 2.6ms, 7.3ms: 17.5kpps (measured) ; 256pts: .68ms, 10.1ms, 5.2ms
in „FFT auf dem AVR“ · Projekte & Code ·
-
Datei
FFT232b.asm
----------------------------------------------------; ; 16bit fixed point FFT performance with megaAVR @16MHz ; ; Points: Input, FFT, Output, Total: Throughput ; 64pts: .17ms, 1.9ms, 1.4ms, 3.5ms: 18.3kpps (expected) ; 128pts: .34ms, 4.4ms, 2.6ms, 7.3ms: 17.5kpps (measured) ; 256pts: .68ms, 10.1ms, 5.2ms
in „Schnelle FFT in Assembler“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
main.c
/* SD-CARD + Debugging */ /* Autor: M.Koehler, T.Gaul */ #include <avr/interrupt.h> #define F_CPU 16000000 #include <util/delay.h> #include "mmc_config.h" // Hier werden alle noetigen Konfigurationen vorgenommen, umbedingt anschauen ! #include "file.h" #include "fat.h"
in „Atmega2560+SSD1963 SD-Karte“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
boot.h
datasheet for caveats on having global interrupts enabled during writing of the Flash. \note Not all AVR processors provide bootloader support. See your processor datasheet to see if it provides bootloader support. \todo From email with Marek: On smaller devices (all except ATmega64/128), __SPM_REG is
in „Frage nach Bootloader-Source“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
boot.h
datasheet for caveats on having global interrupts enabled during writing of the Flash. \note Not all AVR processors provide bootloader support. See your processor datasheet to see if it provides bootloader support. \todo From email with Marek: On smaller devices (all except ATmega64/128), __SPM_REG is
in „[AVR] Register R0 und R1 direkt in C oder Inline Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c.txt
unsigned char BYTE; //8 Bit typedef unsigned short WORD; // 16 Bit typedef unsigned long DWORD; //32 Bit typedef unsigned long long QWORD; //64 Bit #include <avr\io.h> //Einfügen der Headerdatei für die Namen der AVR Register usw. #include <stdint.h> //Weis noch nicht wo für //Deklaration der verwendeteten
in „ATMEGA 128 und ext. Speicher“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Test3a.c
Hardware mit * 3 LEDs ohne Charlieplexing * resistiver Betauungssensor */ #include <stdint.h> #include <avr/io.h> #include <inttypes.h> #define F_CPU 1000000 #include <util/delay.h> #include <avr/sleep.h> #include <avr/interrupt.h> #include <util/atomic.h> // Zustände für Tasterabfrage #define UNDEF 2 #define
in „Tasterabfrage“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Original.c.c
Frequenz #define F_CPU 8000000UL /* Quarz mit 8 Mhz */ // Include Dateien #include <math.h> #include <avr/io.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <util/delay.h> #include "TPS_UP.h" #include <avr/eeprom.h> // Variablen // I/O vorbereiten int main(void) { _delay_ms(200);
in „Ttiny 461a isp schaltung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test1.c
#include <avr/io.h> #include <inttypes.h> #include <avr/interrupt.h> #include <avr/delay.h> void timer1_init(); void ICP_Auswertung(); void Ausgabe(); unsigned char Array[100]; //Es wird ein Array definiert in dem
in „Probleme mit Signalauswertung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FFT232b.asm
----------------------------------------------------; ; 16bit fixed point FFT performance with megaAVR @16MHz ; ; Points: Input, FFT, Output, Total: Throughput ; 64pts: .17ms, 1.9ms, 1.4ms, 3.5ms: 18.3kpps (expected) ; 128pts: .34ms, 4.4ms, 2.6ms, 7.3ms: 17.5kpps (measured) ; 256pts: .68ms, 10.1ms, 5.2ms
in „Schnelle FFT in Assembler“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
Makefile.txt
off optimization. s = optimize for size. # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) OPT = s # Debugging format. # Native formats for AVR-GCC's -g are dwarf-2 [default] or stabs. # AVR Studio 4.10 requires dwarf-2. # AVR [Extended] COFF format requires stabs, plus an avr-objcopy
in „Fehler beim Linken (WinAVR)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PPS5330_V15.c
Rolli * Project: PowerSupply PPS5330 with temperature screen */ #define F_CPU 16000000UL #include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include <stdio.h> #include <stdlib.h> #include <avr/eeprom.h> #include <avr/pgmspace.h> #define SOFT_SPI_MOSI_PORT PORTD #define SOFT_SPI_CLK_PORT
in „PPS5330 Labor-Netzteil hack“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
--------------------------------------------------------------- */ #include <inttypes.h> #include <avr/io.h> #include <util/delay.h> #include <avr/pgmspace.h> #include <avr/interrupt.h> #include "irmp.h" #include "irmpconfig.h" #ifndef F_CPU #error F_CPU unkown #endif void timer_init (void) { OCR1A =
in „Bluetooth zu Infrarot“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.cpp
Keep in mind that the RFM12 driver uses interrupts! */ #include <Ports.h> #include <RF12.h> #include <avr/interrupt.h> #include <avr/sleep.h> #include <avr/power.h> #include <avr/wdt.h> #include <avr/eeprom.h> #include <util/delay.h> #include <WProgram.h> //#define KEY_ID 0x02 // increment this for every
in „sporadisch auftretender Reset-Loop auf Atmega328“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
zbox.c
#include <avr/io.h> #include <avr/pgmspace.h> #include <avr/eeprom.h> #include <string.h> #include <avr/interrupt.h> #include <avr/wdt.h> #include <avr/signal.h> #include <avr/delay.h> #include "TWI/TWI_Master.h"
in „UART sendet, empfängt aber nicht.“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ATMega16.pdf
OC2 Register at the timer clock cycle the counter is cleared (changes from MAX to BOTTOM). 117 2466E–AVR–10/02 The PWM frequency for the output can be calculated by the following equation: f OCnPWM = --------------- N ⋅256 The N variable represents the prescale factor (1, 8, 32, 64, 128, 256, or 1024).
in „DCF auf INT0“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ENCODE.C
Dannegger */ /* */ /************************************************************************/ #include <avr\io.h> #include <avr\interrupt.h> // target: ATmega16 //------------------------------------------------------------------------ #define XTAL 8e6 // 8MHz #define PHASE_A (PINA & 1<<PA1) #define PHASE_B
in „Drehgeber/Encoder 1-, 2- oder 4-schrittig“ · Projekte & Code ·
-
Datei
PPS5330_V15.c
Rolli * Project: PowerSupply PPS5330 with temperature screen */ #define F_CPU 8000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <stdio.h> #include <stdlib.h> #include <avr/eeprom.h> #include <avr/pgmspace.h> #define ADC_AD0 PD4 #define ADC_AD1 PD5 #define ADC_AD2 PD7 #define ADC_ADW
in „PPS5330 Labor-Netzteil hack“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.h
Christian Flämig on 22.08.10. * Copyright 2010 __MyCompanyName__. All rights reserved. * */ #ifndef __AVR_ATmega2560__ #define __AVR_ATmega2560__ #include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #define bitand & #define bitor | #define toggle ^ #define and && #define or || #define BIT0 1 #define BIT1 2 #define BIT2 4 #define BIT3 8 #define BIT4 16 #define BIT5 32 #define BIT6 64 #define BIT7 128 #define __enable_interrupt(); SREG = (SREG | 128); #define __disable_interrupt(); SREG = (SREG & 127); void initADC(void); void initExtInts(void); #endif // __AVR_ATmega2560
in „[AVR] (ext) Interrupt aktivieren?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.cpp
PLL_fuer_Landolt.cpp * * DDS Code von S.Landolt * * Created: 12.03.2021 * Author : Devil-Elec * Code angepasst für AVR128DB48 mit TCD0 und PLL * Board: AVR128DB48 Curiosity Nano * * Ausgangspin: PA5 */ // #define TIMERTAKT_PLL // für 48MHz PLL Takt "einkommentieren" #include <avr/io.h> #include <avr/pgmspace.h> void
in „Attiny2313 Timer16 Bit, Normal Mode, unsauber“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
timer1.c
date: 2013-12-15 // -------------------------------------------------------- // Bsp. für MCU = atmega32 // die notwendigen und benötigten // avr gcc Includefiles müssen noch geladen werden. // -------------------------------------------------------- // --------------------------------------------------
in „Bits im Timer-Register durch Präprozessor / Compiler ausrechnen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
// benötigte Headerdateien #include <avr/io.h> #include <stdio.h> #include <util/delay.h> #include "lcd.h" /* LCD ansteuerungscode weggelassen, da irrelevant */ const uint16_t pwmtable[64] = { 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6
in „5LEDs an PWM“ · Analoge Elektronik und Schaltungstechnik ·
-
PDF
ATMEGA88-DB.pdf
Halide free and fully Green. 3. See Figure 26-1 on page 304 and Figure 26-2 on page 304. 16 2545RS–AVR–07/09 ATmega48/88/168 Package Type 32A 32-lead, Thin (1.0 mm) Plastic Quad Flat Package (TQFP) 32M1-A 32-pad, 5 x 5 x 1.0 body, Lead Pitch 0.50 mm Quad Flat No-Lead/Micro Lead Frame Package (QFN/MLF
in „Schieberegister SN54HC595 mit Atmel atmega 88 ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Lin.c
//Software zur Diplomarbeit //Autor Bani-Ameri #include <avr/io.h> //In io.h sind die Registernamen definiert #include <stdint.h> //Standardisierte Datentypen werden in der Header-Datei stdint.h definiert #include <avr/wdt.h> //Für die Verwendung der Watchdog-Funktionen
in „UART mit LIN-Protokoll“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Arbeit.pdf
5 V) – 4 digitale Eingänge (0/5 V) – 4 ADC-Eingänge (10 Bit) – Netzwerkcontroller ENC28J60 – ATMega32-Prozessor Der Bausatz für die Anschlussplatine ist aber nicht als Fertiggerät vorhanden und muss gelötet werden, was sich aber aufgrund des simplen Aufbaus als relativ leicht erweist. Um den avr-net-io
-
Datei
Elektoronik.c
//Include & Define #define F_CPU 6000000UL //Quarzansteuerung #include <avr/io.h> #include <avr/interrupt.h> #include <stdbool.h> #include <math.h> #include <util/delay.h> #include <avr/eeprom.h> #define LED_RED (1<<PORTC1) //LED sind low aktiv (LOW um eingeschaltet zu sein
in „ATmega8 ADC-Durchschnittsberechnung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
getchar(); } ICE_Respon_OK(); ICE_Respon_OK(); } void ICE_WriteMemory(){ char type,b1,b2,b3,b4,i,k; int32_t adresse; type = getchar(); // Speicherart (Tab.25 / AVR060 S.12) b1 = getchar(); // word_Count 0=1word 1=2words .. 255=256words b2 = getchar(); // address MSB b3 = getchar(); // address b3 = getchar
in „AVR JTAG Programmierung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test11.c
#define VORTEILER 64 #endif #include <stdint.h> #include <avr/io.h> #include <inttypes.h> #include <util/delay.h> #include <avr/sleep.h> #include <avr/interrupt.h> #include <util/atomic.h> /* Zustände fuer Tasterabfrage
in „Tasterabfrage“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
oszillation.ino
+ avr_osc_arr[31] * 0.010101010101 + avr_osc_arr[32] * 0.010101010101 + avr_osc_arr[33] * 0.010101010101 + avr_osc_arr[34] * 0.010101010101 + avr_osc_arr[35] * 0.010101010101 + avr_osc_arr[36] * 0.010101010101
in „Numerischer Sinusoszillator, Zufallsentdeckung“ · Mikrocontroller und Digitale Elektronik ·