74HC165 chip has cascading function, in this experiment, two 74HC165 chip adopts cascading mode to read two 8-bit dip switches, a total of 16 bits of data. The microcontroller adopts Arduino MEGA 2560 module to obtain 74HC165 cascade circuit data from IO12 pin and display it on the serial assistant. The circuit simulation software is Proteus, and the programming software is Arduino IDE.