EveryCircuit
Contact
Reviews
Home
Karma247
modified 10 years ago

2 Wire Data Packet Transfer - TX - RX - MK-2

5
6
177
02:04:54
Data transfer via 2 wires LH side is TX & RH side is RX. Set the bits for the TX to display a number. That number will then be displayed on the RX side. The sequencers on each side are synchronised via a shared clock pulse wire. The TX sequencer reads the bits set for the TX display (4 clock pulses), and sequentially transmits them to the RX. The RX sequencer then reads the bits and sends them to the 4 latches (top right) (had to use counters to create the latches). This creates a latched bit set. A fifth pulse then loads this bit set into the counter that feeds the RX display. I initially used a 555 for the clock pulse, but had to ditch this due to space constraints. Then used a pulse generator, which caused everything to run very slowly, so there was a several second delay between setting the TX number and seeing it on the RX. Also, sometimes the wrong number is displayed if the the bits are set part way through the sequencer cycle. This will then correct is self next time the sequencer cycles. As recommended by roops1967, I replaced the pulse gen with a self clocking counter. This made a huge difference. A big thanks to roops1967 For the help with speeding things up.
published 10 years ago
thebugger
10 years ago
The circuit doesn't work correctly. Try changing the time frame. The oscillations don't change. Something's off about it.
Karma247
10 years ago
Working ok this end. what are you running it on? Did it work once you changed the time frame?
Karma247
10 years ago
I know what you mean now, it's because of the self clocking counter. I might do a 555 version to calm things down a bit.
Karma247
10 years ago
Does the number on the RX follow the TX correctly?
roops1967
10 years ago
Lol yeah that be the self clocking counter alright, it don't change with the the sim time frame . If you want adjustable time frame the you gotta use 555 as you know. The TX and RX does loose synch if you unlatch either clock or data , change value, and re-latch , but that's expected no? The RX an TX counters loose step with each other
roops1967
10 years ago
Actually it only looses synch if toggle the clock latch, but that's expected behaviour I would think with this design :)

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy