Mux / Demux (by Andre Luiz (Brasil))
How to make program to mux 16 to 4, and demux 4 to 16?
(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.
(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.
(no subject) (by Andre Luiz)
yes, that's right 1 at a time
(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.