I am going to order a couple of these and would like to get started coding on it. The Pinout that I got from TI looks different that those listed by Mircea below, and I am trying to get some things clear. (T/F) 1.I must use 3 IO to control the shift register. (data, srclr, clock) 2. Any time I adjust a bit, I must set/reset them all (shifting). 3. To code for this puppy, I will need a delay, clock routine of 5khz a clock line low (for not yet determined amount of time) a data send routine a clock high (for a not yet determined amount of time) 4. I only have to clock when updating register 5. If I used 2 shift registers, I could use the same line for clock on both since clock by itself won't affect register. Am I close to right so far? I realize that using a different PIC would save trouble, but if I wasn't half doing this for educational reasons, I would take up basket weaving or something. ;-) Anyone have any code to share on this subject using a 16f84a or compat? Preferably at 20mghz (no small counters)? --- just thought I would ask. Thanks Mircea wrote on another topic: (Thanks Mircea) >Wire the HC959 (shift register) as follows: >- pin 14. is the data line >- pin 11 wired to pin 12 are clock line >- pin 10 is reset line >- pin 13 wired to pin 8 is GND >- pin 16 is +5V >- pin 15 is bit0 >- pin 1 is bit1 >- pin 2 is bit2 >- pin 3 is bit3 >- pin 4 is bit4 >- pin 5 is bit5 >- pin 6 is bit6 >- pin 7 is bit7 >- pin 9 is used for cascading two or more left NC >To "talk" to HC595 (shift register) you have to: >1. generate a reset pulse to clean up the register (that's optional, but >recommanded, so you'll bee shure that next data will start from 0) >2. get clock line low >3. put the data line coresponding to the bit you want to send >4. get the clock line high >5. repeat steps 2,3 and 4 eight times to set all 8 outputs >Simple as that. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu