The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thermostat Hysterysis



Dave

I was looking at some of the EEPROM bits . Unfortunately the BASCOM help
isnt great. Do you have any examples of storing/retreiving strings from
EEPROM ? Even if they're in C hopefully I can understand enough to
replicate.

And yep its a 90S2313 so I have 128 bytes eeprom.

Thanks

Dean
----- Original Message -----
From: "Dave McLaughlin" <dave@xxxxxxx>
To: <ukha_d@xxxxxxx>
Sent: Wednesday, October 08, 2003 10:40 AM
Subject: RE: [ukha_d] Thermostat Hysterysis


Hi Dean,

Strings on little microcontrollers are very hungry on resources if you use
lots of them. I try to put them in EEPROM if I can, especially those that
don't change much or I use a bigger memory device! :o)

If your house temp is negative, you are in trouble with your heating, or do
you live in the Arctic?

I use a 16 bit integer to store the value. This gives me -3276.8 to +3276.7
degrees C, which as you can see, is plenty  :o)

Which device did you say you where using? I used the AT90S2313 for mine.

Regards
Dave...
---
Very funny Scotty, now beam down my clothes!!!
---


-----Original Message-----
From: Dean Smith [mailto:ukha@xxxxxxx]
Sent: 07 October 2003 22:56
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] Thermostat Hysterysis


Currently I've stuck with the DS1820's own scheme for the temp i.e. store
it
as double the real value (therfore last bit = 0.5 or 0.0). I match my
required temps and hystersis etc to that scheme so keep the 0.5 degree
resolution. - and use "Byte" throughout for that side.

Some of my string handling I think is too blame a little. Too much bad
practice from VB coming through ;) I think I need to explore storing a few
bytes in eprom or something.

Currently I've had to drop checking for negative numbers to get it to fit.
Hopefully that would never be an issue though :o

Dean

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003


[Non-text portions of this message have been removed]



UKHA 2004: 15th and 16th May 2004

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.