help on OWIN and OWOUT fucntion


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2010
    Location
    Lebanon
    Posts
    3

    Default help on OWIN and OWOUT fucntion

    I have to make communication with 1 wire, using DS2404 protocol and speed, to communicate with DS2781 fuel gauge IC, communication speed around 16Khz, I use to communicate before using pauseus to do the function, I knew that OWIn and OWOUT could do the transmission protocol, but not much information available , about setting speed, initializing configuration,
    I have to use PIC16F690, 8mHz internal oscillator,
    could any one help ? thanks
    eddy45

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I have not used a one wire device but I will take a shot.

    I think the speed is something you do not worry about, it is part of the OWOUT command.
    From the data sheet.
    TRANSACTION SEQUENCE
    The protocol for accessing the DS2781 through the 1-Wire port is as follows:
    􀂃 Initialization
    􀂃 Net Address Command
    􀂃 Function Command
    􀂃 Transaction/Data
    This makes me think Mode 0 would be used.

    Does that sound correct to anyone?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2010
    Location
    Lebanon
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Owin owout

    eddy45

    i have tested the function today, and i have checked the timing on the scope, in fact the timg was good, I did set 1 instead of 0 to send a rest first.
    I think it woudl work, I have communicate with the slave, I will try it later on.
    if you have any information about the initialisation, or more details how OWIN or OWOUT work, I woudl appriciate it,
    thanks Mackrackit

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I posted all I know
    Like I said, never used it before...

    Hook it up and try it out, post the results. Maybe you will get lucky?
    Dave
    Always wear safety glasses while programming.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts