Hi all.
Wanting to expand the number of outputs on a chip using the likes of a shift-register or latch.
What I need, is the ability to load all the bits into the register or latch, with all the output pins on the register/latch high(probably using external pull-ups unless the default for the pins is high), and then when commanded, the whole port goes active - similar to the pins=%10000100 command, where the whole port can be read or written at once.
Lets say that I loaded a high into bits 2 and 8 of an 8-bit latch such as a 74HC595, then pulsed the LATCH pin - would this make all pins on the latch switch to whatever was loaded into them from the PICAXE?
Shifting the binary through the cells is not suitable, as I want to control a voice-recorder chip, and the 8 inputs on that chip are held high, and you pull low one of the 8 pins to play a message. Shifting the 0's and 1's through an "Active all the time" shift register port will make the voice recorder play messages I don't want played.
Hopefully you can see what I mean...
So, will a latch allow me to do this, or do I have the wrong end of the stick?
Wanting to expand the number of outputs on a chip using the likes of a shift-register or latch.
What I need, is the ability to load all the bits into the register or latch, with all the output pins on the register/latch high(probably using external pull-ups unless the default for the pins is high), and then when commanded, the whole port goes active - similar to the pins=%10000100 command, where the whole port can be read or written at once.
Lets say that I loaded a high into bits 2 and 8 of an 8-bit latch such as a 74HC595, then pulsed the LATCH pin - would this make all pins on the latch switch to whatever was loaded into them from the PICAXE?
Shifting the binary through the cells is not suitable, as I want to control a voice-recorder chip, and the 8 inputs on that chip are held high, and you pull low one of the 8 pins to play a message. Shifting the 0's and 1's through an "Active all the time" shift register port will make the voice recorder play messages I don't want played.
Hopefully you can see what I mean...
So, will a latch allow me to do this, or do I have the wrong end of the stick?