Post Created date
strstr() function bugs
s[strlen(s)-1] = 0; Just thought I'd mention that this piece of code would not work well for adding a zero termination to the string s since strlen relies on the string being...
Wednesday, 11 August 2010 - 17:10
Problem in c programming [can I use C++ ?]
Quote:I know about 8051 timers and counter and also have read some tutorials about avr but i want to know how should i use my sensor to take that desired input to get the output....
Wednesday, 11 August 2010 - 01:25
STK500 and VTG
I've seen this symptom with at least 3 different STK500 s using the latest updates. It usually isn't just a creep but more like it just resets to 5.1v after a few power cycles. I...
Monday, 2 August 2010 - 15:23
ATtiny45 - breq and ret
No, look up rcall instead.
Saturday, 31 July 2010 - 09:36
BLIPS Modification To Support 256K
Here is code for the Mega2561 that is compatible with AVR109 bootloader spec.
Tuesday, 27 July 2010 - 02:16
AVR230: DES Bootloader on tinyAVR and megaAVR devices
The ATmega128 does not have an opcode espm, just change it to spm.
Sunday, 25 July 2010 - 13:49
IDE opinion ...Eclipse or Geany
Thanks for the feedback everyone, a little more for me to chew on. Mike
Thursday, 15 July 2010 - 01:12
bitwise and and double &&
You could do something like: y = (x==5) ? 1 : 0; But I would imagine the generated asm would probably be the same. edit: If you just want a 0/1 result you can also just assign...
Monday, 12 July 2010 - 23:15
how to do math fast with AVR-gcc?
I have found that if there is a constant multiplier or divisor you can often hand roll it in asm for substantial savings. I have one routine that I had written in asm to multiply...
Monday, 12 July 2010 - 17:42
gcc inscrutable compile error?
Quote:8.1 File Sizes If a source file contains greater than a 1000 lines consider dividing the file up into a number of smaller files. This often further modularises the code and...
Monday, 12 July 2010 - 16:59
gcc inscrutable compile error?
Does Eclipse have brace match highlighting?
Monday, 12 July 2010 - 16:11
gcc inscrutable compile error?
Probably a missing curly brace.
Monday, 12 July 2010 - 14:21