-
Datei
pwmdim.c
linear brightness #define F_CPU 8000000L #define true 1 #define false 0 #include <inttypes.h> #include <avr/io.h> #include <util/delay.h> #include <avr/pgmspace.h> // global variables uint16_t pwmtable_10[64] PROGMEM = {0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 9, 10, 11, 12, 13, 15, 17, 19
in „Atmega 8 - 3 Kanal Dimmer, Ausgangsabfrage und Timerinitialisierung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
mega644.pdf
ATmega164P and ATmega644P Device Flash EEPROM RAM ATmega164P 16 Kbyte 512 Bytes 1 Kbyte ATmega324P 32 Kbyte 1 Kbyte 2 Kbyte ATmega644P 64 Kbyte 2 Kbyte 4 Kbyte 5 8011O–AVR–07/10 ATmega164P/324P/644P 2.3 Pin Descriptions 2.3.1 VCC Digital supply voltage. 2.3.2 GND Ground. 2.3.3 Port A (PA7:PA0) Port A
in „AVR Controller braucht zu viel Strom“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Key_Panel.c
= 4; break; case 4: result = 1; break; case 8: result = 0; break; case 16: result = 8; break; case 32: result = 5; break; case 64: result = 2; break; case 128: result = 12; break; } key_press_A = 0; } if (key_press_E>0) { switch (key_press_E) { case 1: result = 9; break; case 2: result = 6; break; case 4: result = 3; break; } key_press_E = 0; } if (key_press_C>0) { //switch (key_press_C) //{ //case 32: result = 13; //break; //case 64: result = 14; //break; //} result=key_press_C; key_press_C = 0; } sei(); return result; }
in „Entprellung Ziffern-Tastenfeld“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
SPCR: SPR1 SPR0 // SPSR: SPI2X // // SPI2X SPR1 SPR0 // 0 0 0 fosc/4 // 0 0 1 fosc/16 // 0 1 0 fosc/64 // 0 1 1 fosc/128 // 1 0 0 fosc/2 // 1 0 1 fosc/8 // 1 1 0 fosc/32 // 1 1 1 fosc/64 DDRB |= _BV(__spi_clock); DDRB |= _BV(__spi_latch); DDRB |= _BV(__spi_data); DDRB |= ~_BV(__spi_data_in); PORTB &=
in „7x7 rgb led matrix mit PWM und soundsteuerung code fehlerhaft?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
PWM_Controller_Manual.pdf
$078 30 $019 Res_HW_PWM_LB_EEP Res_HW_PWM_LB_SRAM $079 31 $01A Res_Soft_PWM_EEP Res_Soft_PWM_SRAM $7A 32 $01B PWM_vs_CALC_EEP PWM_vs_CALC_SRAM $07B Speicherbelegung 2/2 AVR- Speicherreservierungen SRAM Adresse [^16] Größe[Byte] Reserviert für RX Bottom SRAM Start 128 Befehle TOP E0 Bottom E1 TWI Receive
in „PWM- Controller 18- Kanal TWI- Bus Proj.“ · Projekte & Code ·
-
Datei
main.c
uart_atemga8_2_0 senden per polling und empfangen per Interrupt funktioniert jetzt * * * * * */ #include <avr/io.h> #include <avr/interrupt.h> #include "ascii.h" #include "statemaschine.h" #define F_Clock 1000000u//Systemtakt in Hz (unused @ moment cause value is set hardcoded in the UBRRH and UBRRL register
in „UART Probleme bei Rx/TX Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
display.c
(color>>8)); write_d((unsigned char) (color>>0)); } } } void write_c(unsigned char out_command) { AVR32_GPIO.port[0].ovrc = (1 << (OLED_DC & 0x1F))|(1 << (OLED_CS & 0x1F)); // DC = 0, CS = 0 AVR32_GPIO.port[1].ovrc = (1 << (OLED_RW & 0x1F))|0xff; // WR = 0 AVR32_GPIO.port[1].ovrs = out_command; AVR32
in „Problem mit Inbetriebnahme OLED UG-2828GDEDF11“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
123.c
#include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdint.h> #include <inttypes.h> #include <avr/pgmspace.h> #ifndef F_CPU #define F_CPU 4000000L #endif #define XTAL F_CPU #define DEBOUNCE
in „LED Fading und Uhr beides benötigt Timer1“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
uC_Einfuehrung.pdf
. 64 KiB limitiert ist. Es ist zu beachten, dass die Interrupt-Vektoren bei den AVR-Controllern mit bis zu 8 KiB Flash- Speicher 16 Bit (1 Wort) breit sind, während bei AVRs mit mehr als 8 KiB Flash (also
in „AVR Atmega16 Timer Problem“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ATmegaXX4.pdf
while achieving throughputs up to ten times faster than con- ventional CISC microcontrollers. 3 8011G–AVR–08/07 The ATmega164P/324P/644P provides the following features: 16/32/64K bytes of In-System Programmable Flash with Read-While-Write capabilities, 512B/1K/2K bytes EEPROM, 1/2/4K bytes SRAM, 32 general
in „Atmega644PA Timer3“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
avrdude.txt
avrdude: Recv: . [01] . [00] . [0a] A [41] V [56] R [52] I [49] S [53] P [50] _ [5f] M [4d] K [4b] 2 [32] avrdude: stk500v2_getsync(): found AVRISP mkII programmer AVR Part : ATtiny84 Chip Erase delay : 4500 us PAGEL : P00 BS2 : P00 RESET disposition : possible i/o RETRY pulse : SCK serial program mode
in „ATtiny84A-PU mit AVRISP mkII programmieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
code.c
// Einbinden der erforderlichen Bibliotheken #include <avr/io.h> // Atmega32 Register #include <util/delay.h> // Verzögerungs Routinen #include <i2cmaster.h> // I2C Master Library #include <stdlib.h> // Diverse Funktionen #include <stdio.h> // Ein-/Ausgabe
in „String an LCD ausgeben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
config.h
DAMAGE. *----------------------------------------------------------------------------*/ #include <avr/io.h> #include <utils.h> /*------------------------------------------------------------------------------ * Defines for USART0 *----------------------------------------------------------------------------*/ #define BAUD 9600 // define Baud Rate #define USART0_RX_BUFFER_SIZE 32 // define Receive Buffer Size. Size can be 2, 4, 8, 16, 32, 64, 128 or 256 Byte #define USART0_TX_BUFFER_SIZE 32 // define Transmit Buffer Size. Size can be 2, 4, 8, 16, 32, 64, 128 or 256 Byte /*---
in „LCD an ATmega8 mit C ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
attiny84.pdf
CLKPS2 CLKPS1 CLKPS0 Clock Division Factor 0 0 0 0 1 0 0 0 1 2 0 0 1 0 4 0 0 1 1 8 0 1 0 0 16 0 1 0 1 32 0 1 1 0 64 0 1 1 1 128 1 0 0 0 256 1 0 0 1 Reserved 1 0 1 0 Reserved 1 0 1 1 Reserved 1 1 0 0 Reserved 1 1 0 1 Reserved 1 1 1 0 Reserved 1 1 1 1 Reserved 32 ATtiny24/44/84 8006H–AVR–10/09 ATtiny24/44
in „Attiny 84 ISP?!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Flowcod_Umsetzung.c.c
MX_USES_UINT8 1 #define MX_USES_SINT16 0 #define MX_USES_CHAR 0 #define MX_USES_FLOAT 0 #define MX_USES_SINT32 0 #define MX_USES_BOOL 1 #define MX_USES_UINT16 0 #define MX_USES_UINT32 0 //Definitionen für Microcontroller #define FC_CAL_AVR #define MX_TINY #define MX_ADC #define MX_ADC_TYPE_4 #define MX_ADC_BITS
in „Ttiny 461a isp schaltung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AVR_ATtiny_24_44_84.pdf
CLKPS2 CLKPS1 CLKPS0 Clock Division Factor 0 0 0 0 1 0 0 0 1 2 0 0 1 0 4 0 0 1 1 8 0 1 0 0 16 0 1 0 1 32 0 1 1 0 64 0 1 1 1 128 1 0 0 0 256 1 0 0 1 Reserved 1 0 1 0 Reserved 1 0 1 1 Reserved 1 1 0 0 Reserved 1 1 0 1 Reserved 1 1 1 0 Reserved 1 1 1 1 Reserved 32 ATtiny24/44/84 8006K–AVR–10/10 ATtiny24/44
in „AVR Programm brennen ohne Bootloader“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LED_cude_test.25.12.2012.c
/* * LED_cude_test.c * * Created: 25.12.2012 19:39:46 * Author: Nikolaj */ #include "avr/io.h" int8_t const reihen[10] = {0, 128, 1, 64, 2, 32, 4, 16, 8, 255}; int8_t const spalten[9] = {0, 1, 2, 4, 8, 16, 32, 64, 128}; int main(void) { PORTE.DIRSET = 0xFF; /* PORTE als Ausgang. Matrix
in „Probleme mit 74ACT573“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
adcfiltr.cpp
hegettim.h> #include <tshar.h> // Fixed parameters #define ADCDELAY 5 #define NCHAN 8 #define NMEASTOTAL 64 #define NMEASSTART 16 #define NMEASCOUNT 32 int16_t adcfiltered[8] ; // Can read here the filtered value int16_t rawarray[8][NMEASTOTAL] ; // Get NMEASTOTAL ADC Values of all NCHAN channels // Then sort
in „gleitender Mittelwert oder was besseres“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Tiny_50Hz.c
wiper of a pot to ADC channel 2 (pin 3 on the Tiny) * and GND & Vcc to the outer ends. */ #include <avr/io.h> #include <avr/wdt.h> #include <avr/eeprom.h> #include <avr/interrupt.h> #include <avr/pgmspace.h> #include <util/delay.h> #include "PMSMtables.h" #include "pid.h" //Typedefs /*! \brief Collection
in „Theorie Wechselrichter 12V DC -> 230V AC“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
Assembler.s
equ flashEnd = 0 .equ flashSize = 0 .equ intVectorSize = 0 .equ uartCount = 0 .equ stackEnd = 0 .equ AVR_CORE = 3 .equ AvrAccessHigh = 1 .device atmega32 .equ _CLOCK = 4000000 .equ stackSize = 128 .set FracDecimals = 7 ;avrEqus .equ bootStart = 0x0 .equ sramStart = 96 .equ sramEnd = 2143 .equ xramEnd =
in „ISR macht Newbie fertig :P“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
httpd.c
include "config.h" #if USE_HTTPD #include <stdio.h> #include <stdlib.h> #include <string.h> #include <avr/io.h> #include <avr/pgmspace.h> #include <avr/eeprom.h> #include "stack.h" #include "base64.h" #include "timer.h" #include "cmd.h" #include "usart.h" #if HTTP_VISITORS #define BESUCHER 31 // var_array
in „AVR Net IO Dropdown Liste“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usb_serial.h
EP_TYPE_ISOCHRONOUS_OUT 0x40 #define EP_SINGLE_BUFFER 0x02 #define EP_DOUBLE_BUFFER 0x06 #define EP_SIZE(s) ((s) == 64 ? 0x30 : \ ((s) == 32 ? 0x20 : \ ((s) == 16 ? 0x10 : \ 0x00))) #define MAX_ENDPOINT 4 #define LSB(n) (n & 255) #define MSB(n) ((n >> 8) & 255) #if defined(__AVR_AT90USB162__) #define HW_CONFIG() #define
in „Problem mit unterschiedlichen Prescalern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.cpp
/////////////////////////////////////////////////////////////////////////////////////////////// int32_t BMP_180_Temperatur_Lesen() // Liest die Unkompensierte Temperatur vom Luftdrucksensor BMP_180 aus // Eingabeparameter: Keine // Rückgabewert: int32_t UT { int32_t UT; if (TWIM_Start (SlaveAddress,
in „I2C TWI BMP180 C#“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
debug_okay.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 44 02 jmp 0x488 ; 0x488 <__vector_2> c:
in „Fehler bei einfacher Integer-Division?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
USB_Programmer_V3.pdf
welded by yourself. Features Summary: 1. IC Programmer: AT89S51, AT89S52. ATmega8(L),ATmega16(L),ATmega32(L),ATmega64(L) . ATmega88, ATmega168. 24C01, 24C02, 24C04, 24C08, 24C16, 24C32, 24C64, 24C128, 24C256, 24C512. 2. Logic Test: Eight Channels, measure Logic-0/Logic-1. 3. Voltmeter: The voltage Range
in „USB Programmer für unter 15€“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Attiny24a-44a-84a.pdf
CLKPS2 CLKPS1 CLKPS0 Clock Division Factor 0 0 0 0 1 0 0 0 1 2 0 0 1 0 4 0 0 1 1 8 0 1 0 0 16 0 1 0 1 32 0 1 1 0 64 0 1 1 1 128 1 0 0 0 256 1 0 0 1 Reserved 1 0 1 0 Reserved 1 0 1 1 Reserved 1 1 0 0 Reserved 1 1 0 1 Reserved 1 1 1 0 Reserved 1 1 1 1 Reserved 32 ATtiny24A/44A/84A 8183F–AVR–06/12 ATtiny24A
in „Kann jemand über meine Inialisierung drüberfliegen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Analoge_Ein_Ausgabe.htm
b>20</b><br> TFmax=CLK/50kHz=4000000/50000=<b>80</b><br> Somit kann hier der Teilungsfaktor 32 oder 64 verwendet werden. Im Interesse der schnelleren Wandlungszeit werden wir hier den Faktor 32 einstellen. <table border="1" width="100%"> <tr> <td width="25%" align="center"><b>ADPS2</b></td> <td
in „kurs in gcc“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usb_serial.h
EP_TYPE_ISOCHRONOUS_OUT 0x40 #define EP_SINGLE_BUFFER 0x02 #define EP_DOUBLE_BUFFER 0x06 #define EP_SIZE(s) ((s) == 64 ? 0x30 : \ ((s) == 32 ? 0x20 : \ ((s) == 16 ? 0x10 : \ 0x00))) #define MAX_ENDPOINT 4 #define LSB(n) (n & 255) #define MSB(n) ((n >> 8) & 255) #if defined(__AVR_AT90USB162__) #define HW_CONFIG() #define
in „Atmega32U4-Board: USB-Ausgabe in Betrieb nehmen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
prescaler 5-20 // prescaler 2 = 001 (500 kHz); 4 = 010 (250 kHz); 8 = 011 (125 kHz); 16 = 100 (62,5 kHz); 32 = 101 (31,25 kHz); 64 = 110 (15,625 kHz); 128 = 111 (7,8125 kHz) ADCSRA = (1 << ADPS2) | (1 << ADPS1) | (0 << ADPS0); // Prescaler = 64 --> 15.625 kHz ADCSRA |= (1 << ADEN); // Enable ADC } void read_ADC3
in „Attiny85 ADC Eingangswiderstand - wie hoch“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AdvancedUseAVRASM2_de_20171104.pdf
sinnvoll sein, Daten vom EEPROM ins RAM zu kopieren. Welche Register für was verwenden? Die üblichen AVR-Mikrocontroller, wie zum Beispiel ATMega, haben 32 Register. Der Assembler- Programmierer hat volle Freiheit sie zu nutzen, für was immer er will. Ich beschloss, das Rad nicht neu zu erfinden, sondern
in „Advanced Use of AVRASM2“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AdvancedUseAVRASM2_de_20171104.pdf
sinnvoll sein, Daten vom EEPROM ins RAM zu kopieren. Welche Register für was verwenden? Die üblichen AVR-Mikrocontroller, wie zum Beispiel ATMega, haben 32 Register. Der Assembler- Programmierer hat volle Freiheit sie zu nutzen, für was immer er will. Ich beschloss, das Rad nicht neu zu erfinden, sondern
in „Doku zu AVR Assembler für komplexe Projekte (deutsch)“ · Projekte & Code ·
-
Datei
oled_2313demo.c
12 | PB0 - AIN0 - PCINT0 GND | 10 11 | PD6 - ICP +-------------+ */ #include <stdint.h> #include <avr/io.h> #include <avr/pgmspace.h> #include <util/delay.h> /* ------------------------------------------------------------ Konfiguration ------------------------------------------------------------ */
in „I2C Display einfache Frage“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
<< header #define DDR(x) (*(&x - 1)) // address of data direction register of port x #if defined(__AVR_ATmega64__) || defined(__AVR_ATmega128__) // on ATmega64/128 PINF is on port 0x00 and not 0x60 #define PIN(x) ( &PORTF==&(x) ? _SFR_IO8(0x00) : (*(&x - 2)) ) #else #define PIN(x) (*(&x - 2)) // address
in „HC SR-04 Ultraschallsensor (fertiger Code im Anhang)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
MCP794xx.pdf
0 disabled bit 3 EXTOSC: External Oscillator Input bit 1 = Enable X1 pin to be driven by external 32.768 kHz source 0 = Disable external 32.768 kHz input bit 2 CRSTRIM: Coarse Trim Mode Enable bit Coarse Trim mode results in the MCP7940X applying digital trimming every 64 Hz clock cycle. 1 = Enable
in „MCP794xx EUI-64 Node Adresse“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.cpp
/////////////////////////////////////////////////////////////////////////////////////////////// int32_t BMP_180_Temperatur_Rechnen(int32_t UT, uint16_t AC5, uint16_t AC6, int16_t MC, int16_t MD) // Rechnet Temperatur aus // Eingabeparameter: UT, AC5, AC6, MC, MD // Rückgabewert: T { int64_t X1, X2, B5
in „I2C TWI BMP180 C#“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
out.c
// diese defines in usart.h /* #ifndef __AVR_ATmega32U4__ // sollte ueber Makefile dem Compiler bekannt sein #define __AVR_ATmega32U4__ 1 // Hardwarewahl: ATmega32U4 #endif // Hardwarewahl ATmega2560, ATmega328P, ATmega32U2, ATmega32U4.. */ //
in „Atmega32U4-Board: USB-Ausgabe in Betrieb nehmen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
out.c
// diese defines in usart.h /* #ifndef __AVR_ATmega32U4__ // sollte ueber Makefile dem Compiler bekannt sein #define __AVR_ATmega32U4__ 1 // Hardwarewahl: ATmega32U4 #endif // Hardwarewahl ATmega2560, ATmega328P, ATmega32U2, ATmega32U4.. */ //
in „Atmega32U4-Board: USB-Ausgabe in Betrieb nehmen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
at90s2313-datasheet-atmel.pdf
File is assigned the 32 lowermost Data Space addresses ($00 - $1F), allowing them to be accessed as though they were ordinary memory locations. 5 0839I–AVR–06/02 The I/O memory space contains 64 addresses for CPU peripheral
in „AVR Studio 4.19“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AT90S2313_Datasheet.pdf
File is assigned the 32 lowermost Data Space addresses ($00 - $1F), allowing them to be accessed as though they were ordinary memory locations. 5 0839I–AVR–06/02 The I/O memory space contains 64 addresses for CPU peripheral
in „Fragen zum Sleep Mode“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dreh_stepp.c
ser_putchar(*s++); ser_putchar(13); ser_putchar(10); } // Wandelroutine bin -> String void long2a(int32_t l, char *s, int8_t nachkomma) { uint32_t tab[] = {1000000000, 100000000, 10000000, 1000000, 100000, 10000, 1000, 100, 10, 1}; uint32_t temp; int8_t i=0,j, n = (sizeof(tab)/sizeof(tab[0])-nachkomma)
in „Schrittmotor als Drehgeber mit Dynamik, AVR“ · Projekte & Code ·
-
PDF
RN-Mega_Board.pdf
für Anwender, Bastler und Entwickler konzipiert die bereits Erfahrungen mit AVR-Controllern haben oder denen die kleineren AVR´s wie Mega8/Mega32 oder Mega128 noch nicht ganz ausreichen bzw. zu wenig Reserven bieten. Dieses Modul nutzt den neusten Controllerchip ATMega2560. Er
in „ATmega2560 spinnt“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Makefile-1.txt
, 1, 2, 3, s]. 0 turns off optimization. # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) OPT = s # If there is more than one source file, append them above, or modify and # uncomment the following: SRC = main.c usart.c stack.c timer.c base64.c SRC += networkcard/enc28j60.c SRC
-
Datei
Signal_generator.c
LCD, mit Atmega8 oder größer * Created: 03.02.2013 19:10:12 * Author: Adrian Figueroa */ #include <avr/io.h> #include <avr/interrupt.h> #include <stdlib.h> #include <stdio.h> #include <util/delay.h> #include <math.h> #include <string.h> #include "LCD_KS0066.c" #define F_CPU 16000000UL #define BASE_2MHZ
in „Signalgenerator, Grenzen eines Atmega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TouchScreen.c
#include <avr/interrupt.h> #include <avr/io.h> #include <avr/eeprom.h> #define EEPROM __attribute__ ((section(".eeprom"))) //-------------------------------------------------------------- // key codes //---------
in „eDIP240-7 und SPI“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Bitwackler.pdf
habe mehrere ausprobiert) • Betriebssystem ist Windows 2000 oder Windows XP (aber außsschließlich 32 Bit Systeme, ich habe es zuverlässig nicht mit einem 64 Bit System geschafft). Wer also Zugriff auf einen Win 2000 oder WinXP Computer mit ECHTER serieller Schnittstelle hat, hat gute Chancen, einen
in „Zeigt her eure "Grottenwerke"“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usb_debug_only.h
EP_TYPE_ISOCHRONOUS_OUT 0x40 #define EP_SINGLE_BUFFER 0x02 #define EP_DOUBLE_BUFFER 0x06 #define EP_SIZE(s) ((s) == 64 ? 0x30 : \ ((s) == 32 ? 0x20 : \ ((s) == 16 ? 0x10 : \ 0x00))) #define MAX_ENDPOINT 4 #define LSB(n) (n & 255) #define MSB(n) ((n >> 8) & 255) #if defined(__AVR_AT90USB162__) #define HW_CONFIG() #define
in „Text und Zahlen Ausgabe über HID (USB Teensy 2++)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Sinus.c
#include <avr/io.h> #include <avr/interrupt.h> #include <avr/pgmspace.h> #include <inttypes.h> #include <stdlib.h> #define WERTE 512 #define F_PWM 3906.25 typedef struct{ uint8_t anzahl; uint8_t teiler; uint8_t sinwerte
in „Verbesserungsideen zu PWM Sinus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc.c
} }; //------------------------------------------------------------- // High Level MMC-Funktionen u32 sect; u32 file_len; u16 bufpos=0; extern u08 fat_directaccess; void mmc_read_sector(u32 s, u08 *buf) { u16 i; MMC_get_sec_start((u16)(s>>16), (u16)s); for (i=0; i<512; i++) buf[i] = MMC_get_sec_next(); MMC_get_sec_stop(); } void mmc_write_sector(u32 s, u08 *buf) { u16 i; MMC_write_sec_start((u16)(s>>16), (u16)s); for (i=0; i<512; i++) MMC_write_sec_next(buf[i]); MMC_get_sec_stop_w(); } // Lesen beginnen void mmc_load_start(u32 s) { sect = s; MMC_get_sec_start
in „[atmega8] UART-Daten auf SD-Karte schreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Wand.c
F_PWM oder PWM_PRESCALER erhöhen. #endif // includes #include <stdint.h> #include <string.h> #include <avr/io.h> #include <avr/interrupt.h> #include <avr/wdt.h> #include <avr/sleep.h> #include <avr/pgmspace.h> #include <avr/eeprom.h> //Programme #define RGB_VAR 0 #define R_VAR 1 #define G_VAR 2 #define B_VAR
in „Mega8 an Schaltnetzteil geht nicht“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
BabyController_B328.pdf
Standardprogrammen für Orangutan B-328 $regfile = "m328pdef.dat" $crystal = 20000000 'Quarzfrequenz $hwstack = 32 $framesize = 64 $swstack = 32 ' ------ Anwendungsspezifische Configurationen --------- Config Pind.1 = Output Red_led Alias Portd.1 Do Toggle Red_led Wait 1 Loop Seite 10 von 23 Anleitung zum Baby Orangutan
in „Baby Orangutan b-328“ · Mikrocontroller und Digitale Elektronik ·