how to use 74hc595

Aleph(0)

Joined Mar 14, 2015
597
And we have no idea what you are trying to do with the IC ;). Please explain in detail.
74HC595 is shift register so I say TS wants to build UART or USRT circuit for like he says serial to parallel? RRITESH KAKKAR since you already have data sheet how can we help you?
 
Last edited:

MrAl

Joined Jun 17, 2014
11,389
Hello,

SCK (11) for serial clock just like any other serial clock, SER (14) for serial data input,
RCK (12) to transfer parallel data to output latches, G' (13) low to enable outputs, SCLR' (10) high to NOT clear the serial registers.

The 595 is a lightly better version of the 164 in that it has separate output latches. That means when you are piping in the serial data the 8 outputs do not change right away, which allows your output states to stay the same until you get all 8 bits piped in serially. Then you can transfer the new data to the output with RCK (pin 12) when you are ready.

This would be for applications that are sensitive to the input data changing little by little instead of all at the same time. With the 164 the outputs change all the time as the serial data is being input, but with this 595 chip you can avoid that. If you are running something that already has an input clock to clock all 8 bits in at once then you dont need this chip as the 164 is adequate.

If you dont need the new functionality but dont have any 164 chips (only 595 chips) then you might get a similar functionality by tying the two clocks together, but you probably have to pipe in one extra 'do nothing' bit to get the real parallel data to transfer to the output, and keep the output pins enabled all the time. For example, if your serial stream is 11001111 (8 real bits) then you would probably have to pipe in 011001111 or 111001111 instead (9 bits) where the MSB (last bit piped in) does nothing: X11001111 (assuming you are sending LSB first).
 

be80be

Joined Jul 5, 2008
2,072
OK you say so it's got a latch you clock in the data then latch it.
The Op ask
how to give clock
It's that simple you send a bit toggle the clock then latch it.
He didn't ask how to latch it.
He said
how to give clock

This is even better sch.
 
Last edited:

MrAl

Joined Jun 17, 2014
11,389
OK you say so it's got a latch you clock in the data then latch it.
The Op ask
It's that simple you send a bit toggle the clock then latch it.
He didn't ask how to latch it.
He said
Hello again,

Yes that's right, and i answered him. Except for one thing, the 'latch' signal is not a set logic level it is also a clock, so there are two clocks not one and he saw this that's why he asked about the 'other' clock. For another thing, it seems apparent that he already knows how to use a 164 chip.
Plus, i also explained how he could use it almost like a regular 164 chip. I dont see how this could be misinterpreted.
 

be80be

Joined Jul 5, 2008
2,072
I'm not saying your wrong. I'm just saying I don't see why he doesn't understand how to use it. MrAI your right In all you said.
RK I bet has been told how to use these chips a 100 times I bet and every time he uses one he starts all over asking the same thing.
I wish I new where he lived I'd send him a box of note books to write down what he did last time.

You can actually overcome problem with 74hc164 like ghosting of led displays by not turning on the display till your 164 is done loaded.
 
Last edited:

MrAl

Joined Jun 17, 2014
11,389
Hi,

Yes good idea with the 74xx164 chip.
Nice drawings too, i did not see them last time i was here.
Just one question, what is that 1uf cap for? Is that drawn in the right place?
I ask because normally we dont load digital lines of any kind with a direct connection to a capacitor, even a small value capacitor because for one it draws a lot of peak current from the pin and this will be repetitive if it's a clock signal. At some point I was going to suggest a small RC network to delay the latch signal so that only one uC line would be needed to drive the chip, unless he wants to stuff that extra bit i talked about in post #8.
 
Top