Shop OBEX P1 Docs P2 Docs Learn Events
One Wire Communication with Maxim/Dallas Semiconductor IC — Parallax Forums

One Wire Communication with Maxim/Dallas Semiconductor IC

JDOhioJDOhio Posts: 72
edited 2007-05-25 01:20 in General Discussion
Greetings,

I am attempting to communicate with a Maxim/Dallas Semiconductor IC DS2438 (Smart Battery Monitor, http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2919). So far, when I attempt the reset, the return code indicates no devices on the 1 wire bus. Here is the SX/B:

OneWireInitialize:
    OWRESET OneWireDQ,OneWireLow0
RETURN




After this executes, the memory at OneWireLow0 contains 3 (no devices on the bus). I have included a schematic.

I have been checking the obvious things like wiring and Maxim/Dallas application notes but so far nothing leaps out. Anything else I might check? Anyone using 1 wire devices? Anyone using Maxim/Dallas 1 wire devices?

How should the port be initialized? I've tried both as an input and an output.

Thanks!

Comments

  • BeanBean Posts: 8,129
    edited 2007-05-25 01:09
    Just connect Vdd directly to +5V, and +5V through the 4.7K to the DQ line, and the DQ line to the SX pin.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • JDOhioJDOhio Posts: 72
    edited 2007-05-25 01:17
    Thanks, Bean! I'll give that a try. I have it wired as shown in the schematic because the documentation indicates that the chip can run off of parasitic power. I should have tried the direct route as you suggested first just to help prove things out.

    Joe
  • BeanBean Posts: 8,129
    edited 2007-05-25 01:20
    Yes, but parasitic power comes from the DQ line when you don't have +5V available at the device. The diodes and cap are built into the device, you just leave Vdd unconnected.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
Sign In or Register to comment.