Shop OBEX P1 Docs P2 Docs Learn Events
Problem with a DS1621 and BS2P24 — Parallax Forums

Problem with a DS1621 and BS2P24

YvanYvan Posts: 2
edited 2011-02-14 23:13 in BASIC Stamp
Hello everybody

I'm trying to program the DS1621 thermostat but the Tout ouput is always at "1"

i join my little program (from an article on DS1621 and BS2)

LCD PIN 6 ' Affichage LCD s

Comments

  • Tracy AllenTracy Allen Posts: 6,662
    edited 2007-07-06 06:17
    Bonjour Yvan,

    This may be it. You have,

    I2COUT I2c,Ecr_1621,[noparse][[/noparse]Acc_TH, Temp_Haut]' Param
  • YvanYvan Posts: 2
    edited 2007-07-06 15:33
    Thank you Tracy,

    Your idea is the good idea !

    Temp_Haut (and Temp_bas) must be variables order constantes. All is ok now !


    Thank you
  • ChenChen Posts: 15
    edited 2011-02-14 20:15
    Yvan wrote: »
    Hello everybody

    '
    Temp_Haut CON $1980 ' Valeur temp
  • Mike GreenMike Green Posts: 23,101
    edited 2011-02-14 20:25
    You really need to read the datasheet for the DS1621. The limit registers use the same units as the other temperature registers. The top of page 4 of the datasheet shows how the temperature is represented and gives some examples.
  • ChenChen Posts: 15
    edited 2011-02-14 23:13
    Thanks. I read page 4 and now I know to use 7D00h for 125 degrees.
Sign In or Register to comment.