![]() | ![]() | ![]() |
| |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
![]() |
| | Tools |
| | #1 |
|
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? Last edited by Suraj143; 3rd June 2008 at 04:12 AM. | |
| |
| | #2 | |
| Quote:
The Serial A and B are the data inputs to the shift regs. Either A or B can be used as a 'gating' input in order to control the data input to the S/R. example: If 'A' is high then data is entered via the 'B' serial input, if 'A' is low, then any data on 'B' will not be shifted into the S/R. And vice versa, if 'B' is the high gate, then 'A' is the data input. Note: if you change the state of the gating pin it clears the Qa output. Do you follow.?
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 3rd June 2008 at 08:23 AM. | ||
| |
| | #3 |
|
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? I'm wondering why it needs two inputs (A & B) to change the state? One is more than enough. Ex:A = HIGH the output will be HIGH A = LOW the output will be LOW | |
| |
| | #4 | |
| Quote:
If you dont follow, I'll post a drawing..
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 3rd June 2008 at 09:20 AM. | ||
| |
| | #5 | ||
|
Hi Eric Quote:
Quote:
I'm sorry. | |||
| |
| | #6 |
|
hi suraj, A drawing to help you visualise, I have left the background 'grid' on the drawing to help in alignment.
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th July 2008 at 12:25 PM. | |
| |
| | #7 |
|
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. | |
| |
| | #8 | |
| Quote:
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.?
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 4th June 2008 at 07:58 AM. | ||
| |
| | #9 | |
![]() ![]() ![]() Quote:
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. 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? | ||
| |
| | #10 | |
| Quote:
Look at this drawing for debounce, any schmitt input type invertor/buffer ic will be OK. Dont let the 'A' input float. This is the DATA state 1 or 0 thats clocked in. Do you follow.?
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th July 2008 at 12:25 PM. | ||
| |
| | #11 |
|
Hi Eric thanks for the useful diagram.It will be all right after debouncing the SW. I see when giving inputs from micro controller they have tied both serial inputs together to a micro controller pin.And the clock pin to another micro controller pin. In this case first I'll set the serial inputs (Both) pins to high & give the clock pulse to clock pin & see. I hope the outputs wont latch.After working with a one S/R I'll try to combine another one to that to make 16 outputs. | |
| |
| | #12 |
|
Hi Eric after giving clock from a microcontroller everything was ok. ![]() 'B' input is working for both sides, means when 'B' is high QA output will be high & shifting. when 'B' is low QA output will be low & shifting. But my 'A' input is not working for 'high' side,means when 'A' is high QA output wont be high. I replaced 2 IC's also.But 'A' is functioning as low. So what I did was tied both A & B inputs together & gave serial data. Actually no need two A & B inputs.One input is enough. Last edited by Suraj143; 5th June 2008 at 04:00 AM. | |
| |
| | #13 |
|
hi Suraj, Thats good. ![]() Whats the project for.?
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | |
| |
| | #14 |
| | |
| |
|
| Tags |
| cascading, registers, shift |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| 16 bit serial in parallel out shift registers | forder | Electronic Projects Design/Ideas/Reviews | 14 | 2nd March 2009 09:17 AM |
| Load shift-registers via SPI? | Mike, K8LH | Micro Controllers | 14 | 14th February 2008 03:00 AM |
| Help loading shift registers... | jrz126 | Micro Controllers | 0 | 14th November 2005 01:13 PM |
| shift registers | jrz126 | Electronic Projects Design/Ideas/Reviews | 8 | 25th September 2004 02:35 AM |
| how to read serial data from input shift registers in 8051 | j3Riks | General Electronics Chat | 0 | 22nd May 2004 04:24 PM |