Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Mux / Demux

(you are viewing a thread; or go back to list of threads)

Mux / Demux (by Andre Luiz (Brasil))
How to make program to mux 16 to 4, and demux 4 to 16?
Sat Nov 5 2022, 12:09:08
(no subject) (by MGP)
Like a 74154 TTL IC ? there is always only 1 output active, is that what you want?

Attached in samplesV2.zip you can see the beginning how to decode that, look at binairy-in.ld and binairy-out.ld files, you can build a program on that.
Sat Nov 5 2022, 15:14:21, download attachment Samples_V2.zip
(no subject) (by André Luiz (Brazil))
thank you.
if possible check the files and tell me if they are correct or if there is another way to do it.
16 inputs to 5 outputs
4 inputs for 12 outputs.
Sat Nov 5 2022, 17:02:26, download attachment bcd.zip
(no subject) (by MGP)
You didn't answer my question!

Keep in mind that you should never make more than 1 of the 16 inputs high, that is a 16 to 4 encoder.

Think about whether that's what you want to make.
Sat Nov 5 2022, 20:32:23
(no subject) (by Andre Luiz)
yes, that's right 1 at a time
Sun Nov 6 2022, 11:18:48
(no subject) (by MGP)
Ok then your programs are well made, maybe the program codificator16x5.LD can be shorter by using the #PORTA, #PORTB or the instruction BINTOBCD instruction, but for that you need to know the controller used in advance.

But it will work as it is.
Sun Nov 6 2022, 13:20:23
(no subject) (by Andre Luiz)
Thanks!
Sun Nov 6 2022, 17:33:14
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):