1 WProgramming
1 WProgramming
INTRODUCTION
Dallas Semiconductor offers hardware/software solutions for programming DS243x series EEPROM and
DS250x series EPROM devices (or the DS197x and DS198x iButton® form factors) in a PC-based
environment. While these devices are commonly programmed in an embedded application, it is often
desirable or necessary to preprogram devices with data for prototyping purposes. An easy-to-use PC-
based platform simplifies this task and is the scope of this document.
HARDWARE REQUIREMENTS
Shown in Figure 1 is a typical PC based Hardware configuration for 1-Wire® EEPROM and EPROM
programming. Required items include a WindowsÒ (98, 95, ME, 2K) based PC with a spare serial (COM)
port, a Dallas Semiconductor serial to 1-Wire port adapter, and cabling to attach 1-Wire devices for
programming.
DS9097U-E25
Adapter
AC Adapter or DC
Power for
DS9097U-E25
Dallas Semiconductor offers a variety of adapters that convert Serial COM port communication to 1-Wire
waveforms and protocol. See Table 1 for a comparison of port adapter capabilities relative to
EEPROM/EPROM reading and programming. The DS9097U are the current generation adapters. The
DS9097U-009 and the DS9097U-S09 are the recommended models for EEPROM programming. The
DS9097U-E25 is the recommended model for EPROM programming. Figure 2 shows the DS9097U-E25
package and the connector pinouts. The RJ-11 pinout applies to all port adapters in Table 1.
- Contact
+ Contact
1 2 3 4 5 6
A schematic for a serial port-based adapter similar to the DS9097U-E25 that supports EPROM
programming is shown in Figure 3. This schematic can be used as a reference for developing an adapter
that will operate from an RS232 serial port. If +12V EPROM programming is not a requirement,
components R5-R7, D5, D6, and D9 can be eliminated and the DS2480B VPP signal (pin 5) must be
connected to VDD (pin 4).
2 of 5
REFERENCE SCHEMATIC FOR SERIAL PORT 1-WIRE ADAPTER Figure 3
1
14
2
TXD
15
3 RXD
16
4 RTS
17
5
18
6
19
7
GND
20
DTR
21
3 3 3
22
D3 D1 D2
BAT54S BAT54S BAT54S
23 1 2 1 2 1 2
24
25 4 NC ON/OF 5
VCC
GND 2 1
3 VOU 1 + C4
13 1 1
VIN 10uF
C1 + C2 2 16V
J1 2 .1uF 2 10uF U2
DB25 16V MAX1726EUK50-T
Femal 1 1 1 2
D4 C3
R3 D7 33uF
4.7K BAT54S 12V + 16V
2 3 3 1
Vcc
1
R1
2.7K 1
2
R4
Q1 22K
2 2
2N7002
1
VCC 3
Vcc
1 8 3
GND RXD
1 2 7 1 Q2
DATA 3
1-W
U1 TXD
6 2
BSS84
3
NC DS2480B POL
4 5
VDD VPP
D8
15V
1
2
GND 1
3
C5 1 1
.1uF 2
P2 D5 R5 R6
BAT54C1 3.3K 51
2 2 2
3 3
P1 D9
9V
D6
bat54c
1 1 1
GND
R7
MSMD02
2 1 2
+12V
CABLING
A cable is required to apply adapter 1-Wire signals to the parts that are to be programmed or read. The
cable must have a RJ-11 on one end and an appropriate interface to the 1-Wire device or mounting board
on the other. The pinout for the RJ-11 is shown in Figure 2.
Important Note:
When using the DS9097E adapter, the 1-Wire return must be isolated from any other grounds or return
paths. Failure to follow this requirement may damage the DS9097E adapter and possibly the 1-Wire
device.
SOFTWARE REQUIREMENTS
Dallas Semiconductor provides several software utilities for programming 1-Wire devices; these are all
based on installation of the TMEX RunTime Environment (RTE). All Software, including TMEX, is free
of charge and available for download from:
§ http://www.ibutton.com/software/tmex/index.html
An easy to use GUI application called iButton Viewer is automatically installed when the TMEX RTE is
installed. When configured and launched this application provides a display as shown in Figure 4.
3 of 5
SCREEN PRINT OF iButton VIEWER OPENING SCREEN Figure 4
As 1-Wire devices are attached to the serial port adapter their 64-bit ROM values are displayed by the
viewer. Double clicking the ROM value launches device read/write utilities. The iButton Viewer supports
two formats for read/write EPROM/EEPROM data: 1-Wire File Structure and raw/user defined. The 1-
Wire File Structure format, defined in Application Note 114, stores data in a fashion similar to that found
in disk operating systems: directories with files of data. In the 1-Wire File Structure mode, data can be
programmed and read using the iButton Viewer. The raw/user-defined format is unconstrained and data is
written to individual byte locations. Operating in the raw/user-defined mode requires the iButton Viewer
to be set to debug mode. This is set from the menu tool bar by selecting FileàOptionsàDebug Enable.
At the time of this writing the debug mode of the iButton Viewer supports only reading raw EPROM
data. A future update to the iButton Viewer may support raw data programming.
In order to program EPROM devices with a raw data format, the utility TMEPROM.EXE needs to be
used. This program and the source code can be downloaded from the following link:
ftp://ftp.dalsemi.com/pub/auto_id/softdev/tmeprom.zip
4 of 5
Before TMEPROM can be run the TMEX-RTE must be installed with a DS9097U-E25 attached during
the installation process of the default 1-Wire port. This ensures that the correct COM Port and adapter
type are configured for TMEPROM operation. The utility will automatically exit if there is no DS9097U-
E25 and EPROM device attached. When configured and launched with a DS1982/DS2502 attached this
application provides a display as shown in Figure 5.
Two additional utilities for EPROM programming are available at the links listed below:
§ Copy hex file into EPROM 1-Wire devices (console, C, 32-bit) 1.03
ftp://ftp.dalsemi.com/pub/auto_id/softdev/eprom103.zip
Using a NVRAM iButton (the DS1992, DS1994, DS1995, or DS1996) and the iButton Viewer, it is
possible to program the raw data into the NVRAM device and then using the iButton Copy Machine to
copy from the NVRAM device to an EPROM device. These programs are not suitable to gang program
EPROM devices. Due to the 12V programming pulse, there must not be any non-EPROM devices on the
line when programming EPROM devices.
SUMMARY
Dallas Semiconductor enables pre-programming of 1-Wire EPROM/EEPROM devices with easy-to-use
serial port adapters and PC-based software. Using one of these low cost adapters and free software
enables the end-user to quickly setup a programming station to configure a device with the data necessary
for prototyping or for easy evaluation of changes to device data sets.
5 of 5