Post Created date
how to make absolute timers with atmega8
Koshchi wrote:Quote:As long as you are using recent tools the cycle count of the delays is very good so inaccuracies are likely in the clock source.But there is also the overhead...
Sunday, 20 October 2013 - 21:10
Out of timers for HCSR04
Kartman wrote:However the reality may not be so grim as the compiler might be able to use a bit operation, in which case the correct operation would occur. Oh wow, so this problem...
Sunday, 20 October 2013 - 17:10
Atmega8- sending information using USART
digitalDan wrote:bobgardner wrote:What does return main do? Stack overflow in short order. ...unless the compiler optimizes recursion into a jump in this case, then just an...
Sunday, 20 October 2013 - 02:58
Frequency meassurment - how to increase accuracy?
slow_rider wrote:My strategy is to set a 100ms window using one timer and clock another timer using the signal I want to measure. Do you mean that you count the number of edges in...
Saturday, 19 October 2013 - 19:18
Problem with Interrupts
An instruction is the smallest unit of execution. The comment above just means that (absent some special handling) at minimum a tiny bit of the main program will run between two...
Saturday, 19 October 2013 - 19:15
Program Execution Resume elsewhere after ISR
So you basically want a reset? Or you want memory preserved just the program counter and stack pointer reset? If the latter, look at longjmp.
Saturday, 19 October 2013 - 00:02
Inefficient compiler
snigelen wrote:If you only set a flag in the ISR then you don't need an ISR at all. Don't enable the interrupt and poll the interrupt generating flag in main instead of the...
Thursday, 17 October 2013 - 20:29
DTMF generator using DAC
DTMF is just two sine waves of different frequencies added together. So have two indicies into your lookup table and advance them at different rates.
Thursday, 17 October 2013 - 16:14
dstring: 38% code-size reduction for sprintf
Sorry, I meant with this dstring version of printf you have to write to a char buffer. I love that it's so easy to redirect stdout to the UART with the AVR Libc.
Wednesday, 16 October 2013 - 23:00
dstring: 38% code-size reduction for sprintf
clawson I'm glad you mentioned AVR-LibC improvement since for one I've really appreciated its existence and the awesome online documentation (which covers lots of general AVR...
Wednesday, 16 October 2013 - 17:47
im missing a vital point
I noticed this in a quick skim (all the others use the same-numbered variables): int pulses = (previous4 - val1);
Wednesday, 16 October 2013 - 03:16
dstring: 38% code-size reduction for sprintf
I had fun going over your code today. I fixed a bug, streamlined the tests, add more test cases, and optimized it to about 92 bytes smaller. GCC's optimizer is pretty...
Wednesday, 16 October 2013 - 00:24

Pages