element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Forum Two way Single wire communication without CLK
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 44 subscribers
  • Views 1038 views
  • Users 0 members are here
  • Controllers
Related

Two way Single wire communication without CLK

moulirajesh
moulirajesh over 10 years ago

hi Ben,

i got a project for you can you interface two micro controllers to transmit and receive data with a single wire no clock line should be added as both the micro controllers should be able to transmit and receive

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 10 years ago +1
    It's not that hard to do, original (10MHz co-ax cable) Ethernet works like that, CAN works like that (although usually uses two wires in a differential mode but it doesn't have to). So one reasonably easy…
  • michaelkellett
    michaelkellett over 10 years ago in reply to clem57 +1
    CAN and Ethernet have no concept of Master or Slave. LIN does and One-Wire sort of does but it can be worked round (although I wouldn't use it except as an utter last resort.) If the OP can tell us what…
  • clem57
    clem57 over 10 years ago

    Pass because protocol depends on one master and one slave.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • michaelkellett
    michaelkellett over 10 years ago

    It's not that hard to do, original (10MHz co-ax cable) Ethernet works like that, CAN works like that (although usually uses two wires in a differential mode but it doesn't have to).

     

    So one reasonably easy way to do it is to use micros with CAN interfaces and some very simple non standard interface parts.

     

    There isn't much point - the extra wire doesn't cost much.

     

    There are lots of other single wire clockless interfaces in common use like LIN (automotive), Dalla One-Wire and so on.

     

    In fact they always use 2 wires or more - even the One-Wire protocol uses a signal wire and a return or earth (or common).

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 10 years ago in reply to michaelkellett

    But still one cpu master and 1 slave the device. Right?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gdstew
    gdstew over 10 years ago in reply to clem57

    No, as long as you can detect collisions (both trying to transmit at the same time) you can have multiple masters. That is how Ethernet and CAN work.

    Both of these protocols do use a clock however, it is "embedded" in the encoding of data stream.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • michaelkellett
    michaelkellett over 10 years ago in reply to clem57

    CAN and Ethernet have no concept of Master or Slave.

    LIN does and One-Wire sort of does but it can be worked round (although I wouldn't use it except as an utter last resort.)

     

    If the OP can tell us what he wants to do it would be possible to make a more specific suggestion.

     

    MK

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 10 years ago

    RS-485 is often used to daisy-chain a master to a bunch of slaves.  The master sends out a message that includes address bits and expects one of the slaves to respond.  RS-485 is differential pair (a good idea if you're going any distance) but you can go single wire if you like.  The UART has to ignore received data when it's transmitting -- this is called half duplex.

     

    IMO the OP is probably better off with UART (two signal wires) or SPI (2, 3, or 4 wires depending on what you want to do).

     

    As a footnote for your amusement, a lot of ARM processors use SWD (Single Wire Debug) in place of JTAG to talk to the chip's debug module.  I've only seen SWD implemented as two signal wires: clock and bi-directional data.  It's called SWD because there's an asynch version that uses a single data wire.  But since everyone implements the two-wire synchronous version, it's pretty silly calling it SWD image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube