The SN74HC595N is a simple 8-bit shift register IC. Simply put, this shift register is a device that allows additional inputs or outputs to be added to a microcontroller by converting data between parallel and serial formats. Your chosen microprocessor is able to communicate with the The SN74HC595N using serial information then gathers or outputs information in a parallel (multi-pin) format. Essentially it takes 8 bits from the serial input and then outputs them to 8 pins.
My instinct is that I will need an OR gate between A&B and the Serial pin.
However… maybe I can use diodes? As in, a diode from A to serial and a diode from B to serial.
Perhaps instead some kind of opt-isolator between A&B and the serial pin?
Hi Pix
Used to be called “Diode ORing”. Don’t know what it is called in these enlightened days.
Cheers Bob
Be aware of the diode forward voltage drop though.