Posted on May 17, 2011 at 13:28Can anyone please point me to working code that exhibits the proper way to: - go into stop mode from a USB Suspend condition - wake up from stop mode by exiting the USB Suspend condition ? Thanks, John Speth.
Posted on May 17, 2011 at 13:27Thanks, guys. Your answers match those that I received from IAR: no direct atomic inc and dec. However, I had one idea I've seen in other compilers but not IARs. This compiler allowed the programmer to remove one or mo...
Posted on May 17, 2011 at 13:27Can anyone give me some hints about how to accomplish an atomic integer increment and decrement operation so that interrupts don't need to be disabled while the integer is changing? I'm using IAR EWARM 5.4. Straightfor...
Posted on May 17, 2011 at 13:09Using IAR: #pragma location=0x20000000 __no_init volatile char reserved[16]; That's what my IAR help says. I haven't tried it though. You might have to reserve that space in the linker control file. JJS
Posted on May 17, 2011 at 13:04It's a programmer exercise. Take a look at any PWM example on a timer output pin. You'll never achive the rate you're looking for with an interrupt handler. You'll need the help of the timer peripheral. The PWM example...