Type in the full discussion title or a part of it.
Discussion Title Created date
Detect which interrupt called an ISR on ATmega
I want to have a single ISR handling the eight INTn external interrupts on a ATmega2560, using ISRALIASOF(INT0_vect) for INT1 to INT7.   Is there a way within the ISR to...
Sunday, 23 April 2017 - 10:48
Problems generating waveforms by polling ATtiny85 TIFR flags
I wonder if anyone has experience of polling the ATtiny85 Tiner/Counter1 using the OCF1A, OCF1B, or TOV1 flags in TIFR.   I want to generate an accurate symmetrical 50kHz...
Friday, 3 March 2017 - 11:50
What's the logic behind GCC's low memory warning?
I've been testing a data-logging program on different Arduino boards, making the data array as large as possible before the compiler gives a warning. But I can make no sense of...
Tuesday, 10 May 2016 - 15:48
Is longjmp incompatible with serial on the ATmega32U4?
I'm writing a simple language interpreter in C for Arduino boards, using serial to communicate with the program. Here's a test program to illustrate what I'm doing: #include <...
Thursday, 5 May 2016 - 16:10
How do I create an empty bootloader?
I'm trying to write a simple core to allow you to program a chip (the ATmega1284) using ISP on the Arduino IDE.   I've searched on AVR Freaks and found some excellent...
Sunday, 24 April 2016 - 10:00
How do I define a lookup table in PROGMEM?
I am trying to define a lookup table in PROGMEM for an experimental Lisp interpreter on an ATmega328. It needs to consist of a series of strings and function addresses. I've tried...
Monday, 11 April 2016 - 18:12
Spurious brackets in C
Why does everyone, including Atmel, put brackets around C shift expressions such as:   TCCR0A = (3<<COM0A0) | (3<<COM0B0) | (3<<WGM00);Unless I've misread...
Friday, 17 April 2015 - 08:31
Using ATtiny85 reset pin as GPIO
I'm trying to test using the ATtiny85 Reset pin as an output, and I've done the following: * Uploaded a program using an ISP to make PB5 an output, and then pulse it at 1Hz. *...
Friday, 30 May 2014 - 16:41
Creating tones using timer1
I'm trying to use timer1 on the ATmega328 for waveform generation, but there's a glitch when it starts. This program demonstrates: unsigned char Scale[] = { 239, 213, 190, 179,...
Monday, 21 April 2014 - 14:00