Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi I’m driving 16 leds from two 74HCT164 shift registers.
From the data sheet I can only understand about the CLEAR pin (RESET).It must stay HIGH when giving CLOCK.
What is this A & B data inputs?
How can I shift LEDs one by one?
Hi Eric Thanks for the reply.
I understand a bit.
Eric to shift the bit it needs a CLOCK, but to change the state of the current bit it needs the A & B inputs state am I right?
The 'A or B' input is used as a gating signal for the other serial input.
Let 'B' be low for example, then as the S/R is CLOCKED, whatever the state of 'A' the data pin, it dosnt get clocked into the S/R, as the low on 'B' has inhibited the data bit from being clocked in.
If now 'B' is high, whenever the S/R is CLOCKED, the state of the 'A' pin is shifted into the S/R.
I'm wondering why it needs two inputs (A & B) to change the state? One is more than enough.
It dosnt need two input to change the state, BUT one of the inputs has to be high in order the DATA on the other serial input to be CLOCKED in.Ex:A = HIGH the output will be HIGH
A = LOW the output will be LOW
If now 'B' is high, whenever the S/R is CLOCKED, the state of the 'A' pin is shifted into the S/R.
The 'A or B' input is used as a gating signal for the other serial input.
Let 'B' be low for example, then as the S/R is CLOCKED, whatever the state of 'A' the data pin, it dosnt get clocked into the S/R, as the low on 'B' has inhibited the data bit from being clocked in.
Hi Eric I tested in a Vero board attached the circuit also.
When power up it won’t show anything. When I press the clock SW it won’t do anything.
Case 1
Now I tied the ‘B’ input to Vdd (5V) & keep the ‘A’ input floating.
When I give clock (press switch) the LEDs lights up & latch it.
But it counts in a messy way, not one by one. It means when I press the SW LED1 & LED2 both turn on. Again when I press the SW LED3, 4, 5 turns on.
I need to light up LEDs one by one without latching.
hi Sarma,
The problem you are describing is classic 'switch bounce'.
The mechanical switch will give multiple CLOCK pulses.
You MUST debounce the switch output before it inputs to the S/R/
Do you follow.?
Hi Eric after denouncing will it shift nicely?
It should be OK.
Is it ok if I place a cap between the SW? or better give clock from another IC.
Eric is it ok my diagram I'm floating the 'A' input.& tie the 'B' input to Vdd.
Dont float the SERIAL DATA input, if you want to clock in '1s' tie it high or low if you want to clock in '0s'
Is there any serial data input time? I mean to make 'B' input high do I need to make it high all the time? or just a high pulse & keep it floating & make clocks will it work like that?
hi Suraj,
Thats good.
Whats the project for.?