This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Using regular GPIO for OneWire

Other Parts Discussed in Thread: TM4C129XNCZAD

Hello,

According to the PinMux utility for TI's TM4C129XNCZAD, PP4 can be used for OWIRE and PP4 can be used for OWALT.

Can we use another port (e.g PK0) for one wire ?

Thanks,

Zvika

  • Would not your review of the driver lib. - specifically any/all gpiopinconfigure() and gpiopintype() functions which include/reference, "OWIRE" & "OWALT" point the way to any required/suggested, "special pin handling?"

    Suggest that as your, "problem solving" beginning...

    Reading the driver lib selectively, "unlocks" many mysteries - makes you stronger, less dependent...  Amit, vendor others, outsiders - may not always be here or arrive exactly as/when needed...

  • Hello Zvika,

    The Pins mentioned in the Signal description or PinMux for a particular device is the only set of options that can be selected.

    An arbitrary GPIO cannot be used.

    Regards

    Amit

  • Let the record show - long before there existed a "Stellaris" (may they rest in peace) nor a "Tiva" we regularly & effectively "talked" w/ "1-Wire devices" via plain vanilla, GPIO...

    Have 1-Wire devices changed - now limiting their interface?

    What Amit may be implying is that your use of vendor's library (targeting such 1-Wire) may limit your usage to specified MCU pins.  But - if you're willing to bit-bang some timer & data code (not too hard) suspect almost any vanilla gpio pin may well serve...  After all - that's just how we did it in the, "olde (pre-driver lib) days."  And - I'd bet - 1-Wire vendors still supply detailed App Notes - showing clearly how to massage gpio into 1-Wire conformance...  (no special pins, required!)

  • Hello,

    Is it possible to get from TI the source code of the one wire driver ?

    Thanks,

    Zvika

  • Hello Zvi

    The onewire driver file is at

    C:\ti\TivaWare_C_Series-2.1.0.12573\driverlib\onewire.c and onewire.h

    However they call the hw_onewire.h file from the inc directory which is not there in the latest release of TIVAWare 2.1.0 and is planned for the next release

    I did mention quite a few posts back that we can help build it for forum members till the official release is out.

    Regards

    Amit

  • Please send me a copy of hw_onewire.h for the tiva connected launchpad. email would work?
  • Oswald,
    Simply download Tivaware for TM4C from TI's web site - but I assume you've already did it, right? If so, it's there on your PC already.
    Bruno
  • Hello Oswald

    The hw_onewire.h was missing in the 2.1.0 release. I believe it has been added in TivaWare 2.1.1 onward (and do use the latest one);