EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

HCS12 and Sensor

Started by Ramsin Savra November 16, 2005
Hello ramsinsavra,

sorry for late reasponse - was a lot of time off-line! ramsinsavra> I got the sensor finally. In your email you had mentioned that there
ramsinsavra> are good examples of it. Can you send me a reference?
look at maxim-ic.com for DS18B20. There you will find also references
to application notes.
Interesting are the data sheet itsself and also App148 - 1wire
drivers, App162 - Interface the ds1820 to a microprocessor.
ramsinsavra> Also, does it matter (in terms of performance) if I connect a Vdd to
ramsinsavra> the power pin, instead of connecting it to GND?
You have to connect the DS1820 Gnd pin to Vdd - or it will not work.
The DS1820 is something like a small microprocesser with a simple
1-Line-serial interface with 0 to 5 volts digital signals on it.

You have to connect DS1820 Gnd to Vdd, it's serial line to an
"open-collector" output as the D-Port-Pins of the HC11 (you have to
set them up as open collectors!) with a pullup to 5 volts of 4k7 and
to connect the DS1820 Vss Pin to 5 volts.
There are also possibilities to work with only 2 wires to the DS1820
but then things get more complicated.

The data sheet and the app notes give a lot of details.

Good Luck Werner
mailto:whsw@whsw...


Hello ramsinsavra,

sorry - I made one error:
ramsinsavra> Also, does it matter (in terms of performance) if I connect a Vdd to
ramsinsavra> the power pin, instead of connecting it to GND?

Of cource you have to connect the DS1820 Gnd Pin to the HCxx Vss Pin -
and you can connect the DS1820 Vdd Pin to Power - 5 volts. The DS1820
required at least 3.0 volts for Vdd.

Sometimes I get confused with Vdd and Vss ... Werner mailto:whsw@whsw...



The 2024 Embedded Online Conference