Skip to content

Firmware plus GUI for the MAX32630FTHR that exposes a raw 1-Wire interface so customers can use the system as a tool to help read and decipher 1-Wire data sheet commands for the 1-Wire and iButton devices sold by Maxim.

License

Notifications You must be signed in to change notification settings

analogdevicesinc/MAX32630FTHR_Raw_One_Wire_Interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAX32630FTHR Raw 1-Wire Interface

Firmware plus GUI for the MAX32630FTHR that exposes a raw 1-Wire interface so customers can use the system as a tool to help read and decipher 1-Wire data sheet commands for the 1-Wire and iButton devices sold by Maxim.

Required Components:

  • MAX32630FTHR (FTHR) + USB Cable + MAX32625PICO (to load the Firmware). Please note that the MAX32625PICO connects to the PC with a separate USB cable and connects to the FTHR board through a supplied ribbon cable
  • MAX32630FTHR GUI and Firmware
  • Any number of 1-Wire devices
  • Hardware to create a 1-Wire device bus

Software Download/Install:

  1. Click the "Clone or Download" button and click "Download ZIP" above (from the main GITHUB repo page). After the download finishes, unzip the archive to the directory of choice. All the files needed to run the board can be found in the Firmware and Software directories
  2. Program the FTHR board with the .bin file found in the Firmware directory. Once the MAX32625PICO is plugged into the PC, this is a simple drag and drop of the file onto the hard drive labeled "Daplink" or "mbed"
  3. Install the GUI by double-clicking setup.exe located in the .\Software\Publish directory.

Setup:

  • The 1-Wire devices can be either Parasite Powered or supplied with 3.3-5V
  • A logic analyzer or oscilloscope is helpful to connect to the bus and see the waveforms being generated by the One Wire Master and Slaves
  • The FTHR must be loaded with the distributed firmware and the GUI must be installed on your PC
  • When the GUI process begins, the Maxim Splash Screen will appear.
  • After 3 seconds, the Maxim Splash Screen will disappear and the 'Connect to Serial Port' screen will appear. This screen is where you will connect your serial port to the FTHR
  • Press the 'Search' button to populate the list of COM ports. Select the COM port that the FTHR is connected to, and press the 'Connect' button
  • Once you are connected to a Serial port, the Main Program will appear and specify the COM port and Baud rate, as well as the firmware version

Usage:

  • On the Left side of the Screen are all of the ROM layer commands
    • Standard Search: Populates the dropdown list with ROM ID's of devices on the bus
    • Alarm Search: Populates the dropdown with ROM ID's of actively alarming devices
    • When a device is selected in the dropdown, that device's ROM ID will be used in any ROM Command that must specify the device (Match ROM and OD Match ROM)
    • To issue a ROM Command, simply select the command and press 'Send ROM Command'
      • Note: Not all ROM commands will work at all times (Read ROM on a multi-device bus). Ensure that the command you are trying to issue is within the 1-Wire specs
  • Once a ROM command is issued and a specific device is selected, then any of the device's Function Commands can be issued by entering the command's Hex values in the Text box and pressing 'Send Data + Pullup Option'
    • If the Function Command requires more than 1 byte, then the string can be issued all at once (1 press of the send button) or separately (More than 1 press of the send button)
    • If the Function Command requires a strong pull up on the bus, then write the command to the text box but before pressing send, change the selection in the box to Strong Pull-up After Writing Bit/Byte.
      • To get back into normal power mode, just change the selection back to normal and press 'Send Data + Pull-up Option' again
  • Output from the bus and the firmware is displayed in the Text Box on the right side of the screen
  • LED Indicator on the FTHR will blink red while the board initializes the 1-Wire Master
  • LED will cycle from Blue to Green when commands are received

Screenshot

Example:

Following along with the DS18B20 datasheet on page 18, this will demonstrate how to use this program to mirror the operations DS18B20 Operation Example 1:


    • Standard Search (to obtain ROM ID's)
    • Select a ROM ID from the dropdown
    • Select 'Reset + Match ROM'
    • 'Send ROM Command'

    • Enter '44' into 'Data to Send'
    • Change the selection from Normal to Strong Pull-Up after Writing Byte
    • 'Send Data + Pull-Up Option'
    • Change selection back to 'Normal'
    • 'Send Data + Pull-Up Option'

    • Select the same ROM ID from the list
    • 'Reset + Match ROM'
    • 'Send ROM Command'

    • Enter 'BE' into 'Data to Send'
    • Select 9 in the 'Number of Bytes to Read' +/- box
    • 'Read Bytes'
      • Output from reading: 9 bytes of scratchpad data, 1st byte is LSB of Temperature; 9th byte is CRC
      • Note: Should not be a sequence of F's, which indicates unsuccessful communication

Decoding:

This program relies on an arbitrary ASCII set of codes that was created by the developer and is hidden from the user when interacting with the GUI. However, if only using the firmware and not the GUI, then you will need these codes to keep the firmware functional by sending them through the serial port to the FTHR via a serial port terminal program. Each code stands for a 1-Wire command.

  • ROM Commands:
    • 'RMT': Match ROM
    • 'ROM': Overdrive Match ROM
    • 'ROS': Overdrive Skip ROM
    • 'RRI': Read ROM
    • 'RRS': Resume
    • 'RRI': Standard Bus Search
    • 'RSK': Skip ROM
    • 'RAS': Alarm Search

  • Speed Commands:
    • 'SNL': Normal Speed
    • 'SOD': Overdrive Speed

  • Read/Write Commands
    • 'WWI' + '1/0': Write Bit (1 | 0)
    • 'WRI': Read Bit
    • 'WWY' + data: Write Bytes and the data to write
    • 'WRY' + numBytes: Read Bytes and the number of bytes to read

  • Pullup Commands
    • 'PNO': Normal Pullup
    • 'PWI' + '1/0': Strong Pullup after Writing Bit (1 | 0)
    • 'PWY' + byte: Strong Pullup after Writing Byte and the byte to write

About

Firmware plus GUI for the MAX32630FTHR that exposes a raw 1-Wire interface so customers can use the system as a tool to help read and decipher 1-Wire data sheet commands for the 1-Wire and iButton devices sold by Maxim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages