I have the following assembly code: __asm__ __volatile__ ( \"1: subi %0, 1\"\"\\n\\t\" \"brne 1b\" : \"=d\" (__count)
I\'m trying to use an ATmega 328p (Arduino Ethernet) to control a Wiznet W5100 Ethernet controller. The libraries I\'m using are tested and work, but for me they don\'t. Here\'s what I tracked the pro
I\'m using an Arduino Uno with Ethernet Shield. After sending many HTTP requests, client.println(...), the client starts to fail when connecting. The time to failure appears to be random, and the seq
Can I do like this /*includeAll.h*/ #ifndef INCLUDEALL_H_ #define INCLUDEALL_H_ 1 #include <avr/io.h>
I want to write a C code firmware for Atmel AVR microcontrollers. I will compile it using GCC. Also, I want to enable compiler optimizations (-Os or -O2), as I see no reason to not enable them, and th
Please consider the following example (tried on Arduino IDE 0022, Ubuntu 11.04, Arduino AtMEGA 2560), where I\'m trying to start a timer/counter interrupt and use the Arduino Serial class at the same
I want to convert two ASCII bytes to one hexadecimal byte. eg. 0x30 0x43 => 0x0C , 0x34 0x46 => 0x4F ...
I need to load 18h and output it to port 60h, following works (inside asm(\"\")). ldi r1, 0x18 ; 0x18 -> r1
When creating a project in AVR Studio 5, it creates a .c file with following content: #include <avr/io.h>
Hi I\'m trying to get the SPI bus on a AtMega644 to talk to the ADXL345 accelerometer. I\'m always getting a 0 back and I\'m not where I\'m going wrong. Any help is appreciated. I\'m using avr-gcc and