[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
RE: Thermostat Hysterysis
- To: <ukha_d@xxxxxxx>
- Subject: RE: Thermostat Hysterysis
- From: "Dave McLaughlin" <dave@xxxxxxx>
- Date: Wed, 8 Oct 2003 10:40:29 +0100
- Mailing-list: list ukha_d@xxxxxxx; contact
ukha_d-owner@xxxxxxx
- Reply-to: ukha_d@xxxxxxx
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 =3D 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 fe=
w
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]
Home |
Main Index |
Thread Index
|