Post Created date
How avoid using LPM instruction when starting up?
And people wonder why I'm so fond of assembler...  ;-)   I think what the OP wants is merely ten straight 'ldi' instructions with the immediate values right there baked...
Sunday, 6 November 2016 - 00:41
How avoid using LPM instruction when starting up?
Have you tried putting the 'register' keyword on your variable declarations?  S.  
Saturday, 5 November 2016 - 20:25
Optimizing libc integer conversion routines
Pretty much!!  Although ours was a homegrown incompatible version.  I am indeed old - uudecode was our pal!  And to be honest, I still have systems out there that...
Wednesday, 26 October 2016 - 17:47
Optimizing libc integer conversion routines
I had an AVR system in production awhile ago that used base-62 for communication.  [0-9],[A-Z],[a-z] were the allowed ASCII characters.  I wanted base-64, but the...
Tuesday, 25 October 2016 - 13:11
Optimizing libc integer conversion routines
Nothing to do with libc, but in dumping data, say to a 9600 baud serial port, then yes, transmission speed can be the most expensive factor in data acquisition time.  It's...
Monday, 24 October 2016 - 22:37
theoretical questions about infinite looping in main
And to go off on a wild tangent, that last remark of mine is an unmitigated violation of the fundamental 'Harvard Architecture' of the AVR itself, in that data should be entirely...
Sunday, 9 October 2016 - 00:12
theoretical questions about infinite looping in main
For some other remarks, no, it doesn't matter what language you program in, but if you use a compiler it might very well put in assembler instructions that you didn't.  When...
Sunday, 9 October 2016 - 00:03
theoretical questions about infinite looping in main
I take my helmet off to clawson who knows better than I do.    Still, even if the instruction is skipped, it's still off onto the rest of the unprogrammed flash, and...
Saturday, 8 October 2016 - 12:10
theoretical questions about infinite looping in main
If you're writing code in assembler, I believe it just runs off into unprogrammed memory.  The default unprogrammed flash parses as 'jmp 0x0000', and so it starts over....
Saturday, 8 October 2016 - 11:26
Model Railway - Turnout control using servos and a microcontroller
Small suggestion:    Consider a large printed circuit board (PCB) for the back of your control panel (or two or three plugged together).  Homebrew PCBs can run up...
Wednesday, 17 August 2016 - 15:00
Barely Encrypted? [Solved - good enough]
Might be a bit late to this thread, but I once implemented a sixteen-bit LFSR in a lil' AVR.   It was supposed to generate pseudo-random ASCII for a Morse code trainer ("Code...
Tuesday, 16 August 2016 - 07:35
[TUT] Newbie's Guide to AVR Interrupts
I understand this thread was four years old, but I thought I'd throw in a bone for updating it:  In newer AVRs, I specifically have in mind an ATmega168A, it _is_ possible to...
Sunday, 14 August 2016 - 19:06

Pages