-
Datei
H_Encoder_PeDA_ATmega2560__C_net.txt
/ /* one, two and four step encoders supported */ /* */ /* Author: Peter Dannegger */ /* target: ATmega16 */ /************************************************************************/ #include <avr/io.h> #include <avr/interrupt.h> //#define XTAL 8e6 // 8MHz #define F_TIMER1 100 // Timer 1 frequency /
in „Peter Dannegger´s ( PeDa ) Entprellroutine in ein Arduino Sketch einbinden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
irsnd.c
Supported AVR mikrocontrollers: * * ATtiny87, ATtiny167 * ATtiny45, ATtiny85 * ATtiny44 ATtiny84 * ATmega8, ATmega16, ATmega32 * ATmega162 * ATmega164, ATmega324, ATmega644, ATmega644P, ATmega1284, ATmega1284P * ATmega88, ATmega88P, ATmega168, ATmega168P, ATmega328P * * $Id: irsnd.c,v 1.85 2015/04/23 12
in „IRMP - Infrared Multi Protocol Decoder“ · Projekte & Code ·
-
Datei
irsnd.c
Supported AVR mikrocontrollers: * * ATtiny87, ATtiny167 * ATtiny45, ATtiny85 * ATtiny44 ATtiny84 * ATmega8, ATmega16, ATmega32 * ATmega162 * ATmega164, ATmega324, ATmega644, ATmega644P, ATmega1284, ATmega1284P * ATmega88, ATmega88P, ATmega168, ATmega168P, ATmega328P * * $Id: irsnd.c,v 1.86 2015/05/07 06
in „IRMP - Infrared Multi Protocol Decoder“ · Projekte & Code ·
-
PDF
displayinterface_arduino.pdf
Arduino: Serielles Displayinterface für HD44780-Textdisplays für ATmega-basierendes System Prinzipiell besteht das „Serielle Displayinterface“ aus einem Firmwaresketch und einer Arduino-Library, die dieses Displayinterface (im Folgenden nur noch Interface benannt) ansteuern
in „Arduino: serielles Ansprechen eines HD44780 Displays über SoftSerial“ · Projekte & Code ·
-
PDF
install_config_WinAVR.pdf
line of interest should be a line where you set the MCU type, and might look like: # MCU name MCU = atmega128 To change this just erase the atmega128 and write in the processor you used. You can find a list of all the supported types and their names in the avr-libc documentation (see end of this document for link). It is fairly straightforward, some examples are: at90s2313 at90s8515 atmega8 attiny22 at86rf401 The next line of interest is where you specifythe 'project name' essentially. For example if you want your project name to be myproj1 then the main C source file (the one with the
in „Debugging einer Test-Schaltung mit Atmega 8515“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
install_config_WinAVR.pdf
line of interest should be a line where you set the MCU type, and might look like: # MCU name MCU = atmega128 To change this just erase the atmega128 and write in the processor you used. You can find a list of all the supported types and their names in the avr-libc documentation (see end of this document for link). It is fairly straightforward, some examples are: at90s2313 at90s8515 atmega8 attiny22 at86rf401 The next line of interest is where you specifythe 'project name' essentially. For example if you want your project name to be myproj1 then the main C source file (the one with the
in „Wie avr-gcc starten?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MMB.vhd
FTDI_WR: out std_logic -- 1x USB WR Signal + Chip Select Logik ); end MMB; -- Addressdekodierung für ATMega128 -- 0x1100-0x11FF CPLD.Memory_Bank_Register -- 0x1200-0x12FF CPLD.SPI_Port_Chip_Selects -- 0x1300-0x13FF FTDI -- 0x1400-0x14FF Realtek -- 0x1500-0xFFFF SRAM architecture behavioral of MMB is signal
in „AVR Ethernet Platine“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
uart.c
uint8_t txq_head; volatile uint8_t txq_tail; static uint8_t txq_data[TXQ_SIZE]; #if defined (__AVR_ATmega128__) #define UCSRA UCSR0A #define UCSRB UCSR0B #define UCSRC UCSR0C #define UBRRL UBRR0L #define UBRRH UBRR0H #define UDR UDR0 #define USART_UDRE_vect USART0_UDRE_vect #endif #define UART_BAUD_RATE
in „ATMega128-UART-empfangen&ausgeben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM_ADC.txt
#ifndef MCU #define MCU atmega48P #endif #ifndef F_CPU #define F_CPU 800000UL #endif #define true 1 #define false 0 #define STK500 false #include <avr/io.h> // Namen der IO Register #include <util/delay.h> // Funktionen zum warten
in „Probleme mit der Verbindung PWM + ADC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ADC_PWM2.txt
#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 ·
-
Datei
ADC_PWM2.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 ·
-
Datei
t2async_sleep.c
****************** * * Title: Real-Time Clock * Version: 1.01 * Last Updated: 12.10.98 * Target: ATmega103 (All AVR Devices with secondary external oscillator) * Support E-mail: avr@atmel.com * * Description * This application note shows how to implement a Real-Time Clock utilizing a * secondary external
in „Atmega48 PowerDown/Save Mode“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Sketch.txt
/ /* one, two and four step encoders supported */ /* */ /* Author: Peter Dannegger */ /* target: ATmega16 */ /************************************************************************/ #include <avr/io.h> #include <avr/interrupt.h> //#define XTAL 8e6 // 8MHz #define F_TIMER1 100 // Timer 1 frequency /
in „Peter Dannegger´s ( PeDa ) Entprellroutine in ein Arduino Sketch einbinden“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SinCosGenerator.asm
************************************************ ;* Sin/Cos Generator with CORDIC Algorithm * ;* ATmega48, 20 MHz xtal, PWM-output OCR1a/b, * ;* Christoph Kessler 2009 db1uq_at_t-online_dot_de * ;*************************************************************************** .nolist .include "m48def.inc"
in „Cordic-Algorithmus in AVR-Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
i2c.c
COMMUNICATION ******* //************************************************************** //Controller: ATmega128 (16Mhz Crystal) //Compiler: ICCAVR //Author: CC Dharmani, Chennai (INDIA) // www.dharmanitech.com //Date: Aug 2008 #include <avr/io.h> #include "i2c.h" //****************************************
in „suche C source für die DS1307 RTC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test2.c
/* Eine 8-kanalige PWM mit Linearisierung ATmega64 @ 16 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 1024L // PWM-Schritte pro
in „Moodlight Sourcecode hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM_ADC_UART_05.c
REFS1) | (1<<REFS0); // interne Referenzspannung nutzen // Activate ADC with Prescaler 16 --> 16Mhz/128 = 125kHz ADCSRA = _BV(ADEN) | _BV(ADPS2)|(1<<ADPS1)|(1<<ADPS0); // Select pin ADC0 using MUX ADMUX = 0; } ADC_Messung_starten() { //Start conversion ADCSRA |= _BV(ADSC); // wait until converstion completed
in „Problem PWM_ADC_UART senden -> hterm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
i2c.c
COMMUNICATION ******* //************************************************************** //Controller: ATmega128 (16Mhz Crystal) //Compiler: ICCAVR //Author: CC Dharmani, Chennai (INDIA) // www.dharmanitech.com //Date: Aug 2008 #include <avr/io.h> #include "i2c.h" //****************************************
in „DS1307 Uhrzeit stellen über ein LCD“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
waterdrop-experiment.c
Lichtblitzes. | * | | * | Wichtig: Code in dieser Form (Registernamen) geschrieben fuer einen | * | AVR Atmega128. | * | | * | Anschlussbelegung fuer fliegende Verdrahtung am Experimentierboard: | * | + Blitz-Signal an PE0, hierzu PORTE mit Darlington-Array verbinden | * | + Analoges Eingangssignal an ADC0
in „LED als Sensor“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PWM_PA0_Uvergleich-3.9khz.asm
;ausgangsspannungsregelung nach stepdown ;pwm an atmega16 für 3,906 khz ;bei 4mhz taktfrequenz ;mit timer0 im fast pwm mode, 8 bit aufloesung ;pwm-signal liegt auf pb3 oc0 ;11.2.12 .include "m16def.inc" jmp start ;führe reset aus ;.def v_panel = r14 ;Messwert
in „Hilfe Ladereglung Atmega16 Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Code.txt
// velocity measurement - target ATmega32 #define XTAL 8e6 #define F_CPU XTAL #include <avr/io.h> #include <avr/interrupt.h> #include <stdlib.h> #include <util/delay.h> #include "..\..\includes\BitUtilities.h" #include "..\..\includes\LCD_display_on_Port_C.h
in „Einsatz Timer beim ATMega32“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Avr134.c
****************** * * Title: Real Time Clock * Version: 1.01 * Last Updated: 12.10.98 * Target: ATmega103 (All AVR Devices with secondary external oscillator) * * Support E-mail: avr@atmel.com * * Description * This application note shows how to implement a Real Time Clock utilizing a secondary * external
in „[AVR] Structs innerhalb von ISR auch ohne volatile?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bero_nocontrol_asm.asm
.nolist .include "m8515def.inc" ;Definition für ATmega8515 laden .list ;*** ;Registerdefinition .def ireg = r17 ;Inputregister .def regr = r18 ;Vergleichsregister rechts .def regl = r19 ;Vergleichsregister links .def oreg = r20 ;Outputregister .def creg
in „Motor- und Hubmagnetsteuerung mit L298N“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
untitled...pdf
IICSDA/CAM_SDA GPIO5/CAM_RDY/RFTXMON 50 2.8V 1.8V GND R 1 GPIO6/ALARM/PD[7] GPIO7/BUZZER/CAM_PWR_ON ATMEGA128_SMD 5 7 R 2 GND 17.03.2011 17:03:14 C:\Users\hamid\Documents\eagle\mc\untitled.sch (Sheet: 1/1)
-
Datei
ENCODE2.C
********************/ #include <avr/io.h> #include <avr/interrupt.h> // target: ATtiny2313 ( was ATmega16 in original ) //------------------------------------------------------------------------ #define XTAL 8e6 // 8MHz #define PHASE_A (PIND & 1<<PD0) #define PHASE_B (PIND & 1<<PD1) #define LEDS_DDR DDRB #define LEDS PORTB // LEDs against VCC int8_t enc_delta; // -128 ... 127 void encode_init( void ) { TCCR0A = 1<<WGM01; // CTC TCCR0B = 1<<CS01^1<<CS00; // XTAL / 64 OCR0A = (uint8_t)(XTAL / 64.0 * 1e-3 - 0.5); // 1ms TIMSK |= 1<<OCIE0A; } // return 1 for forward
in „Drehgeber/Encoder 1-, 2- oder 4-schrittig“ · Projekte & Code ·
-
Datei
ENCODE2.C
********************/ #include <avr/io.h> #include <avr/interrupt.h> // target: ATtiny2313 ( was ATmega16 in original ) //------------------------------------------------------------------------ #define XTAL 8e6 // 8MHz #define PHASE_A (PIND & 1<<PD0) #define PHASE_B (PIND & 1<<PD1) #define LEDS_DDR DDRB #define LEDS PORTB // LEDs against VCC int8_t enc_delta; // -128 ... 127 void encode_init( void ) { TCCR0A = 1<<WGM01; // CTC TCCR0B = 1<<CS01^1<<CS00; // XTAL / 64 OCR0A = (uint8_t)(XTAL / 64.0 * 1e-3 - 0.5); // 1ms TIMSK |= 1<<OCIE0A; } // return 1 for forward
in „Drehgeber/Encoder 1-, 2- oder 4-schrittig“ · Projekte & Code ·
-
Datei
main.lst
E4E7 ldi r30,lo8(116) 27 0002 F0E0 ldi r31,hi8(116) 28 0004 8081 ld r24,Z 29 0006 8068 ori r24,lo8(-128) 30 0008 8083 st Z,r24 31 .LM3: 32 000a E5E7 ldi r30,lo8(117) 33 000c F0E0 ldi r31,hi8(117) 34 000e 8081 ld r24,Z 35 0010 8160 ori r24,lo8(1) 36 0012 8083 st Z,r24 37 .LM4: 38 0014 80B3 in r24,48-32
in „RAM-Bankswitching - wie am geschicktesten mit GCC auf AVR?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.S.txt
groß, genaugenommen 2303 (dezimal), zumindest ist das der Wert für 'RAMEND' im AVRStudio für den Atmega328p // 2303 ist in Hex 8FF, 100011111111 - ins High Register muss also 1000, und ins Low-Register 11111111 // Leider können wir unser Register SPH und SPL nicht direkt adressieren, wir müssen also
in „LCD-Display funktioniert nur nach Übertragung des Programms“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.S.txt
groß, genaugenommen 2303 (dezimal), zumindest ist das der Wert für 'RAMEND' im AVRStudio für den Atmega328p // 2303 ist in Hex 8FF, 100011111111 - ins High Register muss also 1000, und ins Low-Register 11111111 // Leider können wir unser Register SPH und SPL nicht direkt adressieren, wir müssen also
in „LCD-Display funktioniert nur nach Übertragung des Programms“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Using_the_Siemens_S65_Display.pdf
interaction is needed to generate this waveform with AVR processor. The code example below for the ATmega128 uses timer 2 with OC2 (PB7) for PWM generation. That means you can not use PB7 for LCD_RS any more (as in the circuit above). LCD_RS can be changed to PB5 for example. For the final running application
in „The Siemens S65 132x176, 65536 color display with AVR“ · Projekte & Code ·
-
PDF
Using_the_Siemens_S65_Display.pdf
interaction is needed to generate this waveform with AVR processor. The code example below for the ATmega128 uses timer 2 with OC2 (PB7) for PWM generation. That means you can not use PB7 for LCD_RS any more (as in the circuit above). LCD_RS can be changed to PB5 for example. For the final running application
in „The Siemens S65 132x176, 65536 color display with AVR“ · Projekte & Code ·
-
Datei
RGB_LED_10bitPWM.asm
------------------------------------------- ;HSB -> RGB Wandler, in AVR-Assembler, für ATiny und ATmega ;Kurzfeatures: (Details und ausführliche Erläuterungen im Quelltext) ;------------------------------------------------------------------- ;*Codegrösse nur ca.300 Words auf Atiny, ca.280 auf ATmega
in „Mega8 Assembler RGB Fader“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Configuration.h
Extruder1, Bed) // 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan) // 4 = Duemilanove w/ ATMega328P pin assignment // 5 = Gen6 // 51 = Gen6 deluxe // 6 = Sanguinololu < 1.2 // 62 = Sanguinololu 1.2 and above // 63 = Melzi // 64 = STB V1.1 // 65 = Azteeg X1 // 66 = Melzi with ATmega1284 (MaKr3d
-
Datei
Mega32_3.bas
..... . sind PD0 und PD1 nicht mehr verfügbar ' $regfile = "m8def.DAT" $regfile = "m32def.DAT" ' ATMega32 ' $crystal = 8000000 ' Anpassen an die Hardware, Taktfrequenz $crystal = 16000000 ' $baud = 19200 ' Reserviert TxD und RxD für die serielle Schnittstelle ' ..... PD0 und PD1 sind dann nicht mehr
in „Pollin 16080 Touch mit ATMEGA32 und BASCOM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Mega327.bas
Display-Ansteuerungs-Zeiten für 16 Mhz angepasst ' ' $regfile = "m8def.DAT" $regfile = "m32def.DAT" ' ATMega32 ' $crystal = 8000000 ' Anpassen an die Hardware, Taktfrequenz $crystal = 16000000 ' $baud = 19200 ' Reserviert TxD und RxD für die serielle Schnittstelle ' ..... PD0 und PD1 sind dann nicht mehr
in „Pollin 16080 Touch mit ATMEGA32 und BASCOM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MMB.vhd
FTDI_WR: out std_logic -- 1x USB WR Signal + Chip Select Logik ); end MMB; -- Addressdekodierung für ATMega128 -- 0x1100-0x11FF CPLD.Memory_Bank_Register b00010001 -- 0x1200-0x12FF CPLD.SPI_Port_Chip_Selects b00010010 -- 0x1300-0x13FF FTDI b00010011 -- 0x1400-0x14FF Realtek b00010100 -- 0x1500-0xFFFF SRAM
in „AVR Ethernet Platine“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
************************************************************ //Quick & Dirty Edit by pindrei für Atmega32 und Pollin Display "DG-12232" (2,95Euro) mit sed1520 Controller //Vee an -2,6V und High an Res Pin!!! //Edit für Mega128 und DIP122-5 (Electronic Assembly) #include <avr/io.h> #include <util/delay.h
in „DIP122-5 GLCD Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ADC_USART_Read_adc.c
+++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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
PWM_PA0-16-3.9khz.asm
;pwm an atmega16/32 für 2 khz (3,906) khz ;bei 4mhz taktfrequenz ;mit timer0 im fast pwm mode, 8 bit aufloesung ;pwm-signal liegt auf pb3 oc0 .include "m16def.inc" ;.def v_panel = r14 ;Messwert PV-Spannung PA0 .def
in „Hilfe Ladereglung Atmega16 Assembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Error.txt
jan@JANS-LAPTOP:~/Roboter/AVR/RN_Control_1.4$ make avr-gcc -mmcu=atmega32 -Wall -gdwarf-2 -std=gnu99 -DF_CPU=1000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT RNCtrl.o -MF dep2/RNCtrl.o.d -c RNCtrl.c RNCtrl.c: In Funktion »setportaon
in „Mikrocontrollerprogrammierung mit Ubuntu (AVRISPmkII/ATMega32)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Version_2.0.c
die Pulsweite von der Fehrnsteuerung und erzeugt ein PWM Signal für den Motortreiber Chip type : ATmega32 Clock frequency : 8,000000 MHz Memory model : Small Internal RAM size: 512 External RAM size: 0 Data Stack size : 128 ***************************************/ #include <avr/io.h> #include <avr/interrupt.h
in „Pulsweitenmessung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Neu_Textdokument__3_.txt
Eigenbau) //------------------------------------------------------------------------- // Prozessor : ATmega8 // Takt : 14745600 Hz // Sprache : Deutsch // Datum : 18.03.2008 // Version : 1.5 // Autor : Johan Mol // Programmer: // Port : //------------------------------------------------------------------
in „#define Ports“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
KlimaSensorKomm.c
Taktsignal. Für weitere Infos siehe "12.2 - Ports as General Digital I/O" in der Beschreibung des ATMega32 #define SHT75_DATA_1 DDRC &= ~(1 << SHT75_DATA) //schreibt eine "1" auf den Bus (setzt den Pin hochohmig). Ein externer Pullup zieht den Bus auf High #define SHT75_DATA_0 DDRC |= (1 << SHT75_DATA
in „SHT75 - CRC Check: Ich finde den Fehler nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
soft-pwm_56leds.c
// Software-PWM by PoWl - 23.10.08 // webmaster@the-powl.de // ATmega8 @ 8Mhz #define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdbool.h> // Sinustabelle f?r Demo const uint8_t sinetable[] = { 128, 131, 134, 137
in „8-Bit Software PWM für mehr als 8 Kanäle“ · Projekte & Code ·
-
Datei
soft-pwm_56leds.c
// Software-PWM by PoWl - 23.10.08 // webmaster@the-powl.de // ATmega8 @ 8Mhz #define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdbool.h> // Sinustabelle f?r Demo const uint8_t sinetable[] = { 128, 131, 134, 137
in „56x PWM + Serielle Kommunikation mit PC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AVR.H
************************************************************ ;* Title :Register/Bit Definitionen ATmega8 ;* Date :15.06.2004 ;* Version :1.6 ;* Autor :Dipl. Ing. Päd. Alexander Huwaldt ;*************************************************************************** ;***** I/O Register Definitions .equ SREG
in „Probleme mit rjmp beim AVR Atmega 8L“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Optrex_LCD_F-51320.asm
****************************************************** ;* Ansteuerung des OPTREX LCDs F-51320 * ;* 128 x 64 * ;************************************************************ ; ; ATMega16 ; +--+-+--+ ; (XCK/TO)PB0 | |_| | PA0(ADC0) ; (T1)PB1 | | PA1(ADC1) ; (INT2/AIN0)PB2 | | PA2(ADC2) ; (OC0/AIN1)PB3 |
in „Pollin Grafik LCD-Modul OPTREX F-51320AE“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
can.h
defgroup can_interface Universelles CAN Interface * \brief allgemeines CAN Interface für AT90CAN32/64/128, MCP2515 und SJA1000 * * \author Fabian Greif <fabian.greif@rwth-aachen.de> * \author Roboterclub Aachen e.V. (http://www.roboterclub.rwth-aachen.de) * * can_sleep() and can_wakeup() functions by Frédéric
in „CAN Kommuikation ATmega328P“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
timer1.ino
// learning timer1 on atmega 328 // pins for timers //const byte poc2B = 3; // pd3 // reserved Tim2 const byte pcin1 = 5; // pd5 Input Count (for wgm 14,15) const byte picp1 = 8; // pb0 Input Capt const byte poc1A = 9; // pb1
in „AVR Timer1 Capture und Overflow gleichzeitig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mit_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 ·