tinkerer73
Member level 3
- Joined
- Apr 5, 2011
- Messages
- 65
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Activity points
- 1,892
OK, I have a ciruit that I'm working on using 74HC595 shift registers in series to run a bar graph. This is my first time with shift registers in my circuit, but I thought I had a good understanding of how to use them.
Since my circuit was not working how I expected, I broke it down to a smaller setup in order to troubleshoot.
I'm using a PIC16F1829 and 2 shift registers. Each output of the shift registers is going to an LED, then a resistor to ground. RC0 is going to SER, RC1 is going to SCK, RC2 is going to RCK. I have SCLR pulled high, and OE pulled low. I have a capacitor between VCC and GND on all 3 ICs. Data out on the first register goes to SER on the second, and SCK, RCK, OE, SCLR are tied together between both of them.
I have set up a basic program which lights up all of the LEDs in sequence one second at a time. The first 8 LEDs light in sequence perfectly, but as soon as the first one on the second shift register lights up, they all begin to flicker, dim, and pulse each second. By the time 3 or 4 of the LEDs on the second register should be lit, they are all off, and they pulse each second that a new one should come on. Thinking that it might be some kind of current problem, I removed the connection between the Data Out on the first register and simply ran the SER in parallel between them, so each register was acting separately, but with the same serial data. Both sets of 8 LEDs lights up in sequence perfectly with zero dimming or flickering, so my concern that the current was falling seems false. I have swapped out new shift registers and it's acting the same. Can anyone shed some light on this? Where am I going wrong?
Since my circuit was not working how I expected, I broke it down to a smaller setup in order to troubleshoot.
I'm using a PIC16F1829 and 2 shift registers. Each output of the shift registers is going to an LED, then a resistor to ground. RC0 is going to SER, RC1 is going to SCK, RC2 is going to RCK. I have SCLR pulled high, and OE pulled low. I have a capacitor between VCC and GND on all 3 ICs. Data out on the first register goes to SER on the second, and SCK, RCK, OE, SCLR are tied together between both of them.
I have set up a basic program which lights up all of the LEDs in sequence one second at a time. The first 8 LEDs light in sequence perfectly, but as soon as the first one on the second shift register lights up, they all begin to flicker, dim, and pulse each second. By the time 3 or 4 of the LEDs on the second register should be lit, they are all off, and they pulse each second that a new one should come on. Thinking that it might be some kind of current problem, I removed the connection between the Data Out on the first register and simply ran the SER in parallel between them, so each register was acting separately, but with the same serial data. Both sets of 8 LEDs lights up in sequence perfectly with zero dimming or flickering, so my concern that the current was falling seems false. I have swapped out new shift registers and it's acting the same. Can anyone shed some light on this? Where am I going wrong?