Some clarifications about HT12E/HT12D circuits. :smile:
The HT12E is capable of encoding information which consists of 8-address bits and either 4 further address/data bits . For the HT12E encoders, transmission is enabled by applying a low signal to the TE pin. If a transmission enable signal is applied, the HT12E encoder scans and transmits the status of the 8 bits of address(A0 – A7) and 4 bits of data (AD8-AD11) serially in the order A0 to AD11. Each address/data input can be set to one of the two logic states. The programmed addresses/data are transmitted together with the header bits via an RF or an infrared transmission medium upon receipt of a trigger signal. Pins 1...8 of encoder are for setting the unique signal and important to set the same pins of decoder with identical settings, otherwise the receiver will not decode the signal.
Pins 10…13 are for data bits.
One bit gives us two combinations, two bits gives four, three bits gives eight, and four bits gives a total of sixteen combinations.
0000
0001
0010
0011
…
1100
1101
1110
1111
OK?
In order to transmit those combinations we need to provide each time a data word of 4 bits and a pulse on the TE pin.
If we leave the data pins not connected, this means logic high, data word = 1111, if we connect data pins to GND we change for logic low. This can be arranged using some external diodes. As for example
0000 = four diodes, each to one data input + one diode to the TE (transmit enable) pin
0001 = three diodes (D1, D2, D3) + one diode to the TE (transmit enable) pin
0010 = three diodes (D0, D2, D3) + one diode to the TE (transmit enable) pin
0011 = two diodes ( D2, D3) + one diode to the TE (transmit enable) pin
0100 = three diodes (D0, D1, D3) + one diode to the TE (transmit enable) pin
.....
1110 = one diode (D0) + one diode to the TE (transmit enable) pin
1111 = just a single diode to the TE (transmit enable) pin.
How many combinations we transmit it’s up to us to decide.
By the way, I have made some mistakes in the previous diagram. I was thinking sending 0000 status and end up by sending 1111 status for the STOP command. See the new diagram.