Post Created date
C to C++ Porting Issue
The best workaround when using lamely coded C headers is to #include them like this: extern "C" { #include #include "lame2.h" } That way you don't have to modify the...
Thursday, 14 March 2013 - 20:21
AS6.1 breaks things!!!
Right-clicking on a project in the solution explorer gives you a nice context menu for that project. That's what I use most of the time. (I'm still using AS6)
Saturday, 2 March 2013 - 06:38
Newbie- Trouble getting LED to blink
And you may want to set F_CPU to a sensible value. And you should set it prior to including any files.
Saturday, 2 March 2013 - 06:28
What is different of avr/io.h vs avr/iom32.h?
Just like Gerald Ford.
Friday, 1 March 2013 - 11:26
struct pointer
If you exhaust the stack, there is nothing that can save you no matter what your platform is. It is easier to run out of stack on small systems like those run by AVRs, but you can...
Thursday, 28 February 2013 - 07:51
Strange Compiling
To clarify my last post - calling cli() in an ISR has no effect. Calling sei() does. It reenables interrupts. Hence, if any interrupts are queued up, they will now be handled...
Thursday, 28 February 2013 - 04:17
Strange Compiling
mckeemj wrote:in a general case, it is not "bad" to have the cli()/sei() pair, but it certainly redundant. If the sei() is the last thing you do before returning from the ISR....
Thursday, 28 February 2013 - 04:11
Strange Compiling
Yes, remove cli() and sei(), declare your shared variables volatile, and make sure you access shared multibyte variables atomically. There are plenty of threads about this sort of...
Wednesday, 27 February 2013 - 06:28
What happened to one button downloading?
It's [/Debug/Start Without Debugging] If it doesn't work for you, check the settings in the the Tool tab in your project's properties.
Wednesday, 27 February 2013 - 06:21
Need clear examples AVR manuals are confusing
I don't see why they couldn't do a better job of explaining how the timer works in the datasheet. On an Atmega328P there are 16 different timer modes. You would think that it...
Tuesday, 26 February 2013 - 10:00
after enabling interrupts, not reaching main's while(1) {...
mickey_at wrote: while (1); Remove the semicolon from that line, and you may see more action.
Tuesday, 26 February 2013 - 00:28
creating header files
void Adc_init(); int Adc_read();
Sunday, 24 February 2013 - 08:02

Pages