westaust55
Moderator
I am putting together a small module using a 74HC595 shift register to drive 8 LED’s via 3 PICAXE outputs (with my 40X1).
In searching on this forum, it seems that the usual method is to use a For … Next loop and shift the bits and toggle the data pin accordingly and also toggle the clock line.
In looking at the Shiftout command, this seems to be associated primarily with SPI serial comms but in reading up on SPI it is not essential to use all the signal lines (clock, serial out, serial in, slave select).
Therefore my question is:
Can the PICAXE shiftout command be used to drive the clock and serial data out lines to drive the 74HC595 requiring only a following Pulsout command to latch the data to the 74HC595 outputs?
Will likely get into trying code on the weekend but any prior comments would be appreciated.
In searching on this forum, it seems that the usual method is to use a For … Next loop and shift the bits and toggle the data pin accordingly and also toggle the clock line.
In looking at the Shiftout command, this seems to be associated primarily with SPI serial comms but in reading up on SPI it is not essential to use all the signal lines (clock, serial out, serial in, slave select).
Therefore my question is:
Can the PICAXE shiftout command be used to drive the clock and serial data out lines to drive the 74HC595 requiring only a following Pulsout command to latch the data to the 74HC595 outputs?
Will likely get into trying code on the weekend but any prior comments would be appreciated.