This template class supports one SIPO chip, connected to the MCU through 3 pins.
These 3 pins are described below (different chips may have different naming for each pin but you should expect the 3 pins in all SIPO chips):
- CLOCK pin: this is used to clock data input to DATA pin: one cycle per bit.
- DATA pin: this is used to pass serial in data to the chip, one bit per CLOCK cycle.
- LATCH pin: this pin is used to let the chip know that all data bits have been transferred and should now be made available to the actual output pins of the chip.
Some SIPO chips (e.g. the 74HC595) allow daisy-chaining, allowing you to use several chips but only 3 pins on the MCU. Daisy-chained SIPO are transparently supported by this class.
- Template Parameters
-
CLOCK_ | the output pin that will send the clock signal to the chip |
LATCH_ | the output pin that will tell the chip to copy its shift register content to its output pins |
DATA_ | the output pin that will send serial data to the chip |
Definition at line 57 of file sipo.h.