Post Created date
Attiny 2313 Interrupt for use with delays
PS - Welcome to AVRfreaks.  We can often be overwhelming.  S.  
Friday, 13 January 2017 - 16:01
Attiny 2313 Interrupt for use with delays
I'm almost tempted to invite all of y'all over for a game.  I can build a widget that beeps, and when it beeps, you push the button.  After you have pushed the button,...
Friday, 13 January 2017 - 16:00
Attiny 2313 Interrupt for use with delays
UDR goes away once read.  Move it into a temporary variable.  S.  
Friday, 13 January 2017 - 15:31
Attiny 2313 Interrupt for use with delays
clawson wrote: just becomes something like: for (int i = 0; i < 1000; i++) { _delay_ms(1); if (UART_event) break; }for the simplest solution to this. A user is...
Friday, 13 January 2017 - 14:55
Attiny 2313 Interrupt for use with delays
Yeah, something like that.   One more suggestion:  Put your delay values into the lookup table also.  Costs you one (or two) byte(s) more per display, but gives you...
Friday, 13 January 2017 - 11:58
Attiny 2313 Interrupt for use with delays
That's where the register values are.  S.  
Friday, 13 January 2017 - 11:47
Attiny 2313 Interrupt for use with delays
Maybe.  The other choice is add one if(UDR_flag==certain_value) break; to _delay_ms().  But you told me you didn't want to do that.  You could write your own delay...
Friday, 13 January 2017 - 11:36
Attiny 2313 Interrupt for use with delays
Well, that is the thing with interrupts.  When they fire, they then go back to doing what they did before.  If what they were doing before was in the middle of a long...
Friday, 13 January 2017 - 11:07
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

Pages