Post Created date
Volatile Variable being optimized away?
Making i volatile does nothing, as far as I can see, since you never even take its address. You haven't shown all your code. Assuming your ISR modifies justpressed[], then it must...
Saturday, 29 November 2014 - 08:03
Confusion on TIFR Flags
It's not a simple read-write register, which is likely a source of OP's confusion. It has two separate operations: get a copy of flags, and selectively clear flags (and leave the...
Monday, 27 October 2014 - 00:45
Strange code behaviour
breakshift wrote: awneil wrote:   Well, the LCD only does what it's told - so it was really the code that wan't clearing those zeros.   Yes I agree, but the character...
Saturday, 25 October 2014 - 20:17
Sign Extending 10-bit signed value?
I didn't read all 11 pages of this thread, only the first couple. Here's a portable branch-free approach: int n = <10-bit input>; n = (n ^ 0x200) - 0x200;This converts it...
Saturday, 25 October 2014 - 04:14
Strange code behaviour
At the very least this code is broken:   char *char_count = "0"; // Define character string to be sent to LCD and assign arbitrary content itoa (count,char_count,10);You...
Friday, 24 October 2014 - 22:51
Gotcha in CLI-less reading of software-extended timer
The original post shows two solutions: SEI before RET(I) in the higher-priority interrupt handler, or the extra OVF flag check in the read function.   BTW, I edited my...
Friday, 24 October 2014 - 21:22
Gotcha in CLI-less reading of software-extended timer
keith, I should have been clearer in my opening post. I could post a new one with my intent better stated. My main goal was to share the gotcha involved in this approach to a...
Friday, 24 October 2014 - 20:53
Gotcha in CLI-less reading of software-extended timer
keith, thanks for another approach. With that approach even if the timer is more than 8 bits, I can use the first approach to reading, because now the low 8 bits will either be...
Friday, 24 October 2014 - 18:55
ATTiny-85 Does Color VGA, Sound and Joystick @ 32MHz!!
I swear someone posted a similar project a year or two ago, where they got RGB and sound output from an '85. At first I thought this was that thread, except I saw that this thread...
Tuesday, 2 September 2014 - 19:11
In need of assistance with avrdude
Would the -B option help if the chip has a slow clock?
Saturday, 30 August 2014 - 08:00
portable temperature measurement?
bobgardner wrote:Will turning down the clock prescaler when the chip is 'too hot' reduce the power and as a result the chip temp? For a moment your post sounded like something...
Tuesday, 19 August 2014 - 23:31
use & or &&?
[deleted incorrect comment] Lack of reading comprehension on my part, sorry.
Sunday, 17 August 2014 - 04:03