Yahoo Groups archive

AVR-Chat

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

Thread

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

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

2006-04-08 by John Samperi

At 12:30 PM 8/04/2006, you wrote:
 >Atmel data sheets have been known to be less than completely accurate. :)
NO!!! =-O =-O

>I do reserve a pair of registers for the ISRs, and one to store SREG 
>in, so that a typical ISR has no pushes or pops.

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.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

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:
Show quoted textHide quoted text
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

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

2006-04-08 by Kathy Quinlan

Hi John and Dave :)

John Samperi wrote:

> 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.

I think most of us used Dave's site as a kick off in the AVR, I know I 
did :)

The info was concise and what I needed to know, the code was well 
written, well commented and easy to follow.

-- 
Regards,

Kat.
---------------------------------------------------------------
  K.A.Q. Electronics     Website: www.kaqelectronics.dyndns.org
  IM: Yahoo: PinkyDwaggy MSN: katinka@kaqelectronics.dyndns.org
  For Everything Electronics 		   Phone: 0419 923 731
---------------------------------------------------------------


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/304 - Release Date: 7/04/2006

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

2006-04-08 by John Samperi

At 05:31 AM 9/04/2006, you wrote:
>I think most of us used Dave's site as a kick off in the AVR, I know I
>did :)

hmmm I think he deserves a few photocopies of $100.00 bills
don't you? :-)


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

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

2006-04-09 by Zack Widup

On Sun, 9 Apr 2006, John Samperi wrote:

> At 05:31 AM 9/04/2006, you wrote:
> >I think most of us used Dave's site as a kick off in the AVR, I know I
> >did :)
> 
> hmmm I think he deserves a few photocopies of $100.00 bills
> don't you? :-)
> 

Would a scan be OK?  ;-)

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.