Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Multiplexer & demultiplexer, some hints please

Status
Not open for further replies.

ikalogic

Member
hi, here is a picture attached to that message where you can see the way i understand the use of a MUX and a DEMUX in a crcuit to control 4 channels.
the counters will be built from 2 555 timers each (or i may buy a ready made one, it is not the problem)

THE PROBLEM IS:
i dont know how to sycronize the 2 counters, in such a way that the 2 multiplexer select the same data pin at the same time. In other words i have to start the 2 timers at the same time,.... how to do that?


thx a lot

NB: i know the diagram is missing the enable pins and the strobe,etc,..

I know there are easier way to do it, but i want to learn to do it this way!
 

Attachments

  • mux_demux.gif
    mux_demux.gif
    4.4 KB · Views: 598
You can use Manchester coding to send a clock along with the data, but to synchronize the data "packets" , another signal is needed. If the modulation is FSK, then the carrier is always present. You can turn the carrier off between packets to synchronize.
 
i dont understand a lot of what you have said, sorry..i am a beginner, so please try to use more explanation. please! :)
 
do a Google search for Manchester code. If you reset both counters each time the carrier goes away, they will be in sync. Perhaps you are attempting too complex a project for a beginner?
 
There is an IC called a UART that will do all the work for you.

Incidentally, I would not use 555s as a counter. There are various binary counter packages available.

Len
 
Yes you could use the second channel to send a reset pulse so that both counters are reset before you start sending data. I suggest you use a long pulse, say 200 ms in order to prevent reset due to noise bursts.

However, it could be done with one channel. Simply send the long pulse before the data.

Len
 
ok till now it is gr8 but with only one BIG problem: In the receiver, how to make a difference between the 'long' reset pulse and the data pulses??
 
ikalogic said:
ok till now it is gr8 but with only one BIG problem: In the receiver, how to make a difference between the 'long' reset pulse and the data pulses??

You could use a 555 to detect the longer pulse, but you would need to make the pulse longer than any normal pulse it's going to see. The usual way to do this is some kind of coding on the data, as already mentioned Manchester coding is one kind which is commonly used for this purpose.
 
Nigel said "You could use a 555 to detect the longer pulse, but you would need to make the pulse longer than any normal pulse it's going to see."

The other way to do it is the feed the incoming data into a shift register and use an AND gate to detect the long pulse.

In order to avoid noise (ie. the occasional wrong bit in your "long pulse" due to noise) you could use an "analogue AND gate". This is comprised of resistors of the same value connected to the Shift Register outputs with their other ends connected together. This is then connected to a threshold detector. Set the threshold so that the TD output changes when say 70% or more of the bits are High.

Len
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top