Post Created date
Attiny 2313 Interrupt for use with delays
What I think you need to do is modify _delay_ms() so that it also detects the interrupt flag, and immediately bails out.    This will, of course, corrupt their timing -...
Friday, 13 January 2017 - 10:48
Driving stepper motor
You're taking a "modern" approach and using a ULN2003?     Ha.    Howzabout a DRV8860?  That'll run (little) bipolar steppers quite nicely too....
Sunday, 11 December 2016 - 03:54
How avoid using LPM instruction when starting up?
Smajdalf wrote: But I was afraid to use register keyword to force a variable to be tied to a register - some instruction works on high registers only and when I force the variable...
Sunday, 6 November 2016 - 16:18
How to convert hex to ASCII?
It strikes me that you may be over-complicating this a little.  Perhaps the OP merely needs to get something on the screen (reeks a bit of a homework problem but here goes...
Sunday, 6 November 2016 - 00:56
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

Pages