Hai all Now i am designing Annunciation system so i need to interface 42 input signals ( 5 volt inputs) to my PIC IC. So How can i connect this much inputs to PIC Any decoder/ encoder is available ? or any other methods ? Have anybody circuit diagram for the same
Please Help me...
the PIC IO-extender offers 16 IOs per package and three can operate on the I2C or SPI bus( https://www.digikey.com/en/articles...anders-offer-flexibility-in-mcu-based-designs ). If you use the 8 bit wide 74HC165 you need to decode the I2C/SPI bus and select the in series connected six HC165. Than 6x8 bit clock cycles are needed to read out the 48 inputs. In any case you need to think about input protection and make sure that no input is floating(best is to use a pull-up and a resitor in series). Maybe also clamping diodes if you have overvoltage swing on the incoming signals!