DS1701K
1-Wire Temperature Sensor Evaluation Kit
www.dalsemi.com
Kit Instructions And Operating Procedures
Features:
•
•
•
Full-Featured Evaluation Kit for the DS1701K
with Temperature Sensor reading.
Compatible with
Windows
TM
95,
Windows
TM
98, and
Windows
TM
NT Operating Systems.
Complete read/write access to all registers
within the DS1701K devices and temperature
reading for the DS1820, DS18B20, DS18S20,
DS1821 and DS1822 devices.
Measures temperatures from the full range of
the devices -55°C to +125°C. Fahrenheit
equivalent is -67°F to +257°F.
Celsius and Fahrenheit temperature readings.
Introduction:
The One-Wire board as shown in Figure 1.0
allows the user to test the functional capabilities of
the
Dallas Semiconductor thermal devices
featuring the 1-wire interface.
The circuitry allows the user to read the
temperature,
and to read and write the appropriate registers of
the socketed device.
Figure 1.0 1-Wire Board Block Diagram
•
•
Kit Contents:
1. Programming Software CD ROM containing
DS1701K.exe Installer.
2. 87-1701K-000 Demo board.
3. DS1701K Demo Kit documentation on CD
ROM.
4. DS1820, DS18B20, DS18S20, DS1821 and
the DS1822 Demo Devices.
5. DS9123
Universal Brick
and cable.
TM
Setup and Installation
The DS1701K program is a 32-bit application
which is designed to run under Windows
TM
95,
Windows
TM
98 or Windows
TM
NT.
The DS1701K installer is designed to be loaded
directly onto the user’s PC. The Setup.exe file is a
compressed executable which prompts the user for
the location and drive for installation, then the
“Setup” files are placed on the user’s hard drive.
You must run the “Setup” files to execute the
DS1701K program files. Typically, the user will
run Setup.exe from the
Windows
TM
95
“Start”
menu.
Typically, you can begin the installation process
from
the
“Run”
menu
by
opening
Web site:www.dalsemi.com
Page 1 of 7
serial port device
To use the kit, you will also need:
1. An available Serial Port to connect the
DS9123
Universal Brick
TM
modular data
cable.
2. A +3 to +5 volt regulated power supply with
banana jack leads.
Revision 1.0 2/99
Dallas Semiconductor
Tech Support 972-371-4448
“D:\Setup\Setup.exe” located on the CDROM
drive then follow the installation instructions.
The program will prompt for the desired location
on your hard disk. The program is set up for
“C:\Program
Files\Dallas
Semiconductor\DS1701K”. However, you may
change this directory by choosing the Browse
function and the appropriate directory, then click
on the Setup Icon. Run the DS1701K application
and the screen shown in Figure 1.1 should appear.
The Temperature Sensor Tab
Upon successful loading of the software, the
Temp. Sensor screen as shown in Figure 2.0
should appear. The Temperature Sensor screen is a
tabbed user interface. All functions of the device
may be accessed through this screen.
Evaluating the DS1821 (Single Drop)
The user must populate the board with the
DS1821 Programmable Digital Thermostat device
in the socket provided. The user may simply click
the “On” button to begin immediately reading the
device temperature in both Celsius and Fahrenheit.
Note: To avoid data collisions with the single-
drop device, no other device should be socketed
while the DS1821 is under test.
Figure 2.0 The Temperature Sensor Tab
Using The DS1701K Evaluation Kit
Once the 1-wire cable is connected to the serial
port, you may then turn on the +3v to +5v
regulated power supply to power the board. Next,
run the DS1701K.exe executable to view the
following screen.
Figure 1.1 DS1701K Start-up Splash Screen
The splash screen will appear if the DS9123
module is connected to the serial port. The
evaluation board does not need to be present to
run the software. However, upon loading the
software some registers are initialized, therefore it
is recommended that the evaluation board be
present and powered upon software startup. Power
for the DS9123 module is obtained via the serial
port.
If the DS9123 module is not present, the
software will not load.
The only way to escape
this mode is to reboot or Ctrl-Alt-Del to End Task.
If problems occur during the program start-up,
check the DS9123 to make sure it is properly
connected. Remove and reconnect if necessary.
Multi-Drop Device Access
Note: The device count is performed during
program start-up and at no other time. If you add
or remove devices you should re-start the
program.
Upon activation of each tab, the program performs
a device initialization routine that automatically
reads the Search ROM of each multi-drop device
on the bus and performs a temperature reading of
all devices.
Revision 1.0 2/99
Dallas Semiconductor
Tech Support 972-371-4448
Web site:www.dalsemi.com
Page 2 of 7
The temperature resolution for the DS18B20 and
the DS1822 can be set via the "Preferences" menu,
along with the COM port settings. Because the
program "learns" the ports settings, you should not
change the COM port once a connection is made.
If you experience difficulty getting the program to
initialize, it may require that you change COM
ports to see if this is the problem.
Figure 3.0 COM Port and Resolution Menu
The user is required to write the appropriate
setting to the device before the device returns the
appropriate temperature resolution. The menu
command does not write the resolution setting to
the device. The menu setting changes the format
of the data so that up to 12-bit resolution can be
read from the device. The selection menu also
places the appropriate data in the config. text box.
The user must then select the device and issue the
'write registers' command so that the device will
begin reporting the appropriate data resolution
(Figure 5.0).
Figure 5.0 Resolution Selection
Once the COM port is selected (Figure 3.0), the
DS9123 should remain connected to that port. The
COM port selected by the program must always
match the COM port location of the DS9123 serial
adapter (Figure 4.0).
The DS1701K Alarm Reporting
Figure 4.0 COM Port Selection
The user should take note here that the alarm
command (ECh) is not used to perform the alarm
search because only devices in alarm respond to
this command. This evaluation kit uses the
DS9123 which requires a response for each
command. Instead of using this command we read
the TH and TL values of the device and determine
through software if these settings exceed the
device limits. Using the 'write registers' command
the user can set limits, then apply temperature
changes to the devices to monitor which limits
have been exceeded (Figure 6.0).
The DS18B20 and DS1822 resolution settings can
be made through the menu selection. Because
both the DS1820 and DS18S20 have a
predetermined 9-bit resolution, the menu selection
has no effect on these temperature readings.
Revision 1.0 2/99
Dallas Semiconductor
Tech Support 972-371-4448
Web site:www.dalsemi.com
Page 3 of 7
Figure 6.0 Temperature Alarm Settings
There are also documentation and software folders
available on the CDROM. The CDROM
information can be obtained via the File->Browse
function using Windows
TM
95 or File->Explore
through Windows
TM
98.
Figure 8.0 Datasheet Selection
Parasite Power Usage
Click "Read Power Supply" list item to turn on the
strong pullup for parasite power.
Figure 9.0 WinHelp Help Files
The DS1701K Help Files and
DataSheets
Figure 7.0 Help Menu Selections
There are three methods of help available to the
user:
1. Device datasheets can be obtained by linking
to the Dallas Semiconductor web pages
(Figure 8.0).
2. Win Help provides help with definitions ,
command codes and provides sample software
(Figure 9.0).
3. Merlin Help provides command codes and
glossary term definitions (Figure 10.0).
Revision 1.0 2/99
Dallas Semiconductor
Tech Support 972-371-4448
Web site:www.dalsemi.com
Page 4 of 7
Figure 10.0 Merlin Help Files
Stop Convert T "22h"
Stop Convert T command = 22 hexadecimal. This
command stops a temperature conversion. This
command may be used to halt a DS1821
continuous conversion after the current conversion
is completed. The DS1821 will remain idle until a
Start Convert T command is issued to resume
continuous operation.
Read Temperature “AAh”
Read Temperature command = AA hexadecimal.
This command reads the contents of the register
that contains the last conversion result.
Write TH “01h”
Write TH command = 01 hexadecimal. After
issuing this command, the user writes 8 bits of
data to the TH (high temp) Register.
Write TL “02h”
Write TL command = 02 hexadecimal. After
issuing this command, the user writes 8 bits of
data to the TL (low temp) Register.
Read TH “A1h”
Read TH command = A1 hexadecimal. After
issuing this command, the user reads 8 bits of data
present in the TH (high temp) Register.
Figure 11.0 About Selection
User system information may be obtained through
the About menu, as well as Company contact info.
Device Command Codes
The following is a list of command codes for the
DS1821 single-drop device, as well as the
DS1820, DS18S20, DS18B20 and DS1822 multi-
drop devices.
Start Convert T "EEh"
Start Convert T command = EE hexadecimal. This
command initiates a temperature conversion. In
One-Shot Mode, the temperature conversion will
be performed then the DS1821 will remain idle. In
Continuous Mode this command will initiate
continuous conversions.
Read TL “A2h”
Read TL command = A2 hexadecimal. After
issuing this command, the user reads 8 bits of data
present in the TL (low temp) Register.
Write Status “0Ch”
Write Status command = 0C hexadecimal. This
would be used for clearing the values of the THF
and TLF flags as well as setting polarity and mode
bits in the Configuration Register. After issuing
this command, the user writes 8 bits of data to the
Configuration Register.
Read Status “ACh”
Read Status command = AC hexadecimal. After
issuing this command, the user reads 8 bits of data
present the Status and Configuration Register.
Revision 1.0 2/99
Dallas Semiconductor
Tech Support 972-371-4448
Web site:www.dalsemi.com
Page 5 of 7