I'm having some difficulty with writing to the 256 eeprom. If I link pin 8 of the 74HC595 to GND the eeprom erases but won't write the test data. When I remove these the correct number of test bytes are written but they are all set to the value of the last byte of the test string. Any help would be appreciated.