Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] EEPROM writing with elec. noise

2006-04-08 by David VanHorn



On 4/7/06, John Samperi <samperi@ampertronics.com.au> wrote:
At 12:30 PM 8/04/2006, you wrote:
>Atmel data sheets have been known to be less than completely accurate. :)
NO!!! =-O =-O
Then there's Vittoz mode and CKOPT. :-P

I know, back in the olden days when I was trying
to learn about the AVR I came across your website
and copied :-) the way you save and restore the SREG
(I use r15), don't have any other registers preserved
unless I need them.
Ah :) Glad it helped..
I've had a time or two when I've needed to push a reg in an isr, but it's pretty darned rare, and allocating those three regs for the ISRs is pretty painless most of the time.
Here's one you guys will like.
Just started working on an app that someone else wrote.
EVERYWHERE that he uses SRAM, he uses it like this:
ldi xl,ramloc
ldi temp,5
st x,temp
Now I laugh, because this is slow as hell, but worse, he never checks XH, so god help you if some other routine uses XH and dosen't restore it to zero.
Argghh..

--
Feel the power of the dark side! Atmel AVR

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.