Shop OBEX P1 Docs P2 Docs Learn Events
One-Wire using UART - Driver chip — Parallax Forums

One-Wire using UART - Driver chip

John A. ZoidbergJohn A. Zoidberg Posts: 514
edited 2012-02-27 06:21 in General Discussion
Hey there ladies and gentlemen,

I'm reproducing one of the example circuits in an old book by Myke Predko "Programming and Customizing the PIC Microcontroller", and found a simple temperature sensor based on the DS18S20.

However, due to the RTOS inside in the particular system, bit-banging is a no-go, I tried doing that and it stalled the system pretty badly.

So, by using hardware UART, I may be able to sample the temperature easily, but in the Maxim's application note: http://www.maxim-ic.com/app-notes/index.mvp/id/214 I need a open-drain buffer.

Unfortunately I may not be able to get 2N7002 in my place, or those specialized drivers mentioned inside. Could I just use a non-inverting buffer (CD4010) to replace these instead?

Comments

  • jmgjmg Posts: 15,185
    edited 2012-02-27 00:38
    Unfortunately I may not be able to get 2N7002 in my place, or those specialized drivers mentioned inside. Could I just use a non-inverting buffer (CD4010) to replace these instead?

    Sure. Speed is not really an issue, just check the drive margin, as Voh may be on the minimal side. Depends on the Brand, NXP were better IIRC at minimal drives.

    If you have spares in the package, I'd parallel them.
  • John A. ZoidbergJohn A. Zoidberg Posts: 514
    edited 2012-02-27 04:00
    jmg wrote: »
    Sure. Speed is not really an issue, just check the drive margin, as Voh may be on the minimal side. Depends on the Brand, NXP were better IIRC at minimal drives.

    If you have spares in the package, I'd parallel them.

    Hello,

    I got that, and the Atmel's application note seemed to use only two transistors: www.atmel.com/Images/doc2579.pdf.

    However, since the one-wire routines are not RTOS-friendly, I guess I may have to use a seperate microcontroller (like a PIC12F) to control the DS18B/S20 instead. :D
  • OppaErichOppaErich Posts: 48
    edited 2012-02-27 06:21
    There are OneWire bus masters for UART, I²C and SPI. I was looking for a I²C one but didn't want to buy 1900 :( Maybe you can find the UART one in smaller quantittes.
Sign In or Register to comment.