8 Input Shift Registers and Pulse Dialing
On the Arduino I have only a limited amount of IO pins, 20 in all. This would probably be enough pins if I just wanted 4 inputs for call sensing, 2 for pulse and off hook detection and the rest to operate the relays but I want to add a DTMF transceiver and to connect to an outside line so I'm going to need quite a few more. Enter stage right the 74HC165 shift in register for the inputs. This has 8 inputs which will be configured as per the map below... #define ShIn_L1_OH_Pin 128 // call sense line 1 #define ShIn_L2_OH_Pin 64 // line 2 #define ShIn_L3_OH_Pin 32 #define ShIn_L4_OH_Pin 16 #define ShIn_OH_Pin 8 // source phone off hook and used for the pulse dial train #define Dest_Phone_OH_Pin 4 // call answered, ie destination phone off hook //#define Call_Progress_Pin 2 // not used #define External_Ring_Pin 1 // incoming call from outside exchange #define SHIN_CLEAR 0 // used to check no inputs are active With the shift register IC at the top right, below shows t...