Auxiliary functions – Maxim Integrated OneWireViewer, Version 1.5 User Manual

Page 18

Advertising
background image

Sample File Tab with Directory and File Data Displayed

Notes:

The 1-Wire File Structure allows multiple devices to be formatted as one cluster. For this reason when formatting a device, the device needs to be selected
again, even if the File viewer already accesses it.

Before data can be written to a file, the file must first be created as a new file.

The file size is a multiple of 28 bytes (59 bytes with the DS1977). Changing the file size through Resize File automatically updates the file size in the display's
directory area. Changing the file size to 0 bytes is equivalent to first deleting and then creating the same file again.

A new file is filled with 00h bytes and has a size of 28 bytes (59 bytes with the DS1977).

To create a file inside a directory, first click on the directory and then use the Create New File function.

To change the contents of a file (hex as well as ASCII format), select the section (bytes/characters) to be changed, type the new contents, and click on Write
File. If the file is edited on the ASCII tab, there will be an automatic resize when the file is written back to the device. See Auxiliary Functions, and sections
Hex Editor with File Viewer and ASCII Editor for more details.

Writing to an EPROM device requires a port adapter that supports 12V programming pulses.

When accessing another device, the file contents area still shows data from the most recently accessed file.

To copy data from a disk file to the File viewer and vice versa, use the editing, copy, and paste functions of the operating system.

Auxiliary Functions

Hex Editor

The Memory viewer allows the user to enter data in hex format. The File viewer expects hex input when the Hex tab is selected. There are three ways to use the
hex editor:

1. Change: select one or more bytes and replace them with the same number of new bytes.

2. Delete: select one or more bytes and delete them.

3. Insert: position the cursor between bytes in the contents field and enter one or more bytes.

With special function registers or EPROM devices one should only change (overwrite) bytes, but not insert or delete bytes.

Hex Editor with Memory Viewer

Editing
area

All fields with white background that are displayed in the Contents area of the viewer. Each field is treated as an independent entity. More than
one field can be updated before committing the changes.

Changing
data

Using the cursor, select a range of adjacent bytes in the editing area and type as many new bytes as are selected. Entering data overwrites the
selected range and changes the background color of the field to yellow. When finished, click on Commit Changes.

Deleting
data

Using the cursor, select one or more adjacent bytes in the editing area and press the "delete" key on the keyboard. This removes as many
bytes as are selected in the editing area and changes the background color of the affected field to yellow. When finished, click on Commit
Changes. The viewer will ask for permission to pad the affected field(s) in the editing area with 00h bytes. This padding, however, does not
happen and data at the end of the affected field(s) remains unchanged. All other data in the field(s) is shifted to the left (lower address)
according to the number of bytes deleted.

Inserting
data

Position the cursor in a field of the editing area and type the data to be inserted. This changes the background color of the field to yellow and
shifts existing data to the right of the cursor out of the field, where it is lost. When finished, click on Commit Changes.

Verifying
data

Click the Refresh button and scroll to the updated field in the editing area.

Error
handling

Numbers from 0 to 9 and characters (upper/lower case) from A to F are accepted. Other characters can be entered in the editing area, but are
not written to the device. Spaces are optional between bytes; they are taken as delimiters.

Page 18 of 21

Advertising