⟩ What are encoder and the decoder? What are the uses of these two devices? Also, write about how it works with circuit diagram.
There are zillions of things in electronics called encoders. You can look up LCDs and NAND gates as well and this is really basics.