SPI Flash chip not working as expected

I salvaged a flash chip from a digital photo frame this morning. I found the datasheet and made a sketch that should write a binary 01010101 to address 1000000 on the chip, then read it and output it to the serial monitor. However, It always returns 0. No matter what I read, address, status register, anything, it always comes up with 0. I have verified my wiring. I have spi through voltage dividers to the chip, with vcc to 3.3v and vss to GND. The chip is decoupled. That only leaves my code.

Datasheet:
http://pdf1.alldatasheet.com/datasheet-pdf/view/207658/EON/EN25F80-100HCP.html

Code

// inslude the SPI library:
#include <SPI.h>


// set pin 10 as the slave select for the digital pot:
const int slaveSelectPin = 20;
  long address1 = 1000000;
void setup() {
  Serial.begin(9600);
  SPI.setBitOrder(MSBFIRST);
  // set the slaveSelectPin as an output:
  pinMode (slaveSelectPin, OUTPUT);
  // initialize SPI:
  SPI.begin(); 
    digitalWrite(slaveSelectPin,LOW);
    SPI.transfer(6);
    digitalWrite(slaveSelectPin,HIGH);
    Write(address1, B01010101);
}

void loop() {
     digitalWrite(slaveSelectPin,LOW);
 //  send in the address and value via SPI:



Serial.println(Read(address1),BIN);


delay(10000);

}




void Write(long address, byte value){
     digitalWrite(slaveSelectPin,LOW);
 //  send in the address and value via SPI:
  SPI.transfer(2);
  SPI.transfer((address) & B11111111);
  SPI.transfer((address >> 8) & B11111111);
  SPI.transfer((address >> 16) & B11111111);
  SPI.transfer(value);
//   take the SS pin high to de-select the chip:
  digitalWrite(slaveSelectPin,HIGH); 
}
byte Read(long address)
{
    byte value;
     digitalWrite(slaveSelectPin,LOW);
 //  send in the address and value via SPI:
  SPI.transfer(3);
  SPI.transfer((address) & B11111111);
  SPI.transfer((address >> 8) & B11111111);
  SPI.transfer((address >> 16) & B11111111);
  value = SPI.transfer(0);
//   take the SS pin high to de-select the chip:
  digitalWrite(slaveSelectPin,HIGH); 
  return value;
}

Any help is appreciated,
ematson5897

Is this what is causing my problem? is the arduino doing this at the same time?
(from the datasheet)

In the case of a Page Program (PP), Sector Erase (SE), Block Erase (BE), Chip Erase (CE), Write Status
Register (WRSR), Write Enable (WREN), Write Disable (WRDI) or Deep Power-down (DP) instruction,
Chip Select (CS#) must be driven High exactly at a byte boundary, otherwise the instruction is rejected,
and is not executed. That is, Chip Select (CS#) must driven High when the number of clock pulses after
Chip Select (CS#) being driven Low is an exact multiple of eight. For Page Program, if at any time the
input byte is not a full byte, nothing will happen and WEL will not be reset.

I made code that reads the addresses and status register and prints them via serial. You can tell the results are gibberish because the status register byte should stay constant. Here is the data in this format: address -- status register -- Address byte value

0 -- 0 -- 0
1 -- 0 -- 0
2 -- 0 -- 0
3 -- 0 -- 0
4 -- 0 -- 0
5 -- 11111111 -- 11111111
6 -- 11111111 -- 11111111
7 -- 11111111 -- 11111111
8 -- 11111111 -- 11111111
9 -- 11111111 -- 0
10 -- 0 -- 0
11 -- 0 -- 0
12 -- 0 -- 0
13 -- 0 -- 0
14 -- 0 -- 0
15 -- 0 -- 0
16 -- 0 -- 0
17 -- 0 -- 0
18 -- 0 -- 0
19 -- 0 -- 0
20 -- 0 -- 0
21 -- 0 -- 0
22 -- 11111111 -- 11111111
23 -- 11111111 -- 11111111
24 -- 11111111 -- 11111111
25 -- 11111111 -- 11111111
26 -- 11111111 -- 0
27 -- 0 -- 0
28 -- 0 -- 0
29 -- 0 -- 0
30 -- 0 -- 0
31 -- 0 -- 0
32 -- 0 -- 0
33 -- 0 -- 0
34 -- 0 -- 0
35 -- 0 -- 0
36 -- 0 -- 0
37 -- 0 -- 0
38 -- 11111111 -- 11111111
39 -- 11111111 -- 11111111
40 -- 11111111 -- 11111111
41 -- 11111111 -- 11111111
42 -- 11111111 -- 0
43 -- 0 -- 0
44 -- 0 -- 0
45 -- 0 -- 0
46 -- 0 -- 0
47 -- 0 -- 0
48 -- 0 -- 0
49 -- 0 -- 0
50 -- 0 -- 0
51 -- 0 -- 0
52 -- 0 -- 0
53 -- 0 -- 0
54 -- 0 -- 0
55 -- 11111111 -- 11111111
56 -- 11111111 -- 11111111
57 -- 11111111 -- 11111111
58 -- 11111111 -- 11111111
59 -- 11111111 -- 0
60 -- 0 -- 0
61 -- 0 -- 0
62 -- 0 -- 0
63 -- 0 -- 0
64 -- 0 -- 0
65 -- 0 -- 0
66 -- 0 -- 0
67 -- 0 -- 0
68 -- 0 -- 0
69 -- 0 -- 0
70 -- 0 -- 0
71 -- 0 -- 0
72 -- 11111111 -- 11111111
73 -- 11111111 -- 11111111
74 -- 11111111 -- 11111111
75 -- 11111111 -- 11111111
76 -- 11111111 -- 0
77 -- 0 -- 0
78 -- 0 -- 0
79 -- 0 -- 0
80 -- 0 -- 0
81 -- 0 -- 0
82 -- 0 -- 0
83 -- 0 -- 0
84 -- 0 -- 0
85 -- 0 -- 0
86 -- 0 -- 0
87 -- 0 -- 0
88 -- 0 -- 11111111
89 -- 11111111 -- 11111111
90 -- 11111111 -- 11111111
91 -- 11111111 -- 11111111
92 -- 11111111 -- 11111111
93 -- 0 -- 0
94 -- 0 -- 0
95 -- 0 -- 0
96 -- 0 -- 0
97 -- 0 -- 0
98 -- 0 -- 0
99 -- 0 -- 0
100 -- 0 -- 0
101 -- 0 -- 0
102 -- 0 -- 0
103 -- 0 -- 0
104 -- 11111111 -- 11111111
105 -- 11111111 -- 11111111
106 -- 11111111 -- 11111111
107 -- 11111111 -- 11111111
108 -- 11111111 -- 0
109 -- 0 -- 0
110 -- 0 -- 0
111 -- 0 -- 0
112 -- 0 -- 0
113 -- 0 -- 0
114 -- 0 -- 0
115 -- 0 -- 0
116 -- 0 -- 0
117 -- 0 -- 0
118 -- 0 -- 0
119 -- 0 -- 0
120 -- 11111111 -- 11111111
121 -- 11111111 -- 11111111
122 -- 11111111 -- 11111111
123 -- 11111111 -- 11111111
124 -- 0 -- 0
125 -- 0 -- 0
126 -- 0 -- 0
127 -- 0 -- 0
128 -- 0 -- 0
129 -- 0 -- 0
130 -- 0 -- 0
131 -- 0 -- 0
132 -- 0 -- 0
133 -- 0 -- 0
134 -- 0 -- 0
135 -- 0 -- 0
136 -- 11111111 -- 11111111
137 -- 11111111 -- 11111111
138 -- 11111111 -- 11111111
139 -- 11111111 -- 11111111
140 -- 0 -- 0
141 -- 0 -- 0
142 -- 0 -- 0
143 -- 0 -- 0
144 -- 0 -- 0
145 -- 0 -- 0
146 -- 0 -- 0
147 -- 0 -- 0
148 -- 0 -- 0
149 -- 0 -- 0
150 -- 0 -- 0
151 -- 0 -- 11111111
152 -- 11111111 -- 11111111
153 -- 11111111 -- 11111111
154 -- 11111111 -- 11111111
155 -- 11111111 -- 0
156 -- 0 -- 0
157 -- 0 -- 0
158 -- 0 -- 0
159 -- 0 -- 0
160 -- 0 -- 0
161 -- 0 -- 0
162 -- 0 -- 0
163 -- 0 -- 0
164 -- 0 -- 0
165 -- 0 -- 0
166 -- 0 -- 0
167 -- 0 -- 11111111
168 -- 11111111 -- 11111111
169 -- 11111111 -- 11111111
170 -- 11111111 -- 11111111
171 -- 11111111 -- 0
172 -- 0 -- 0
173 -- 0 -- 0
174 -- 0 -- 0
175 -- 0 -- 0
176 -- 0 -- 0
177 -- 0 -- 0
178 -- 0 -- 0
179 -- 0 -- 0
180 -- 0 -- 0
181 -- 0 -- 0
182 -- 0 -- 0
183 -- 11111111 -- 11111111
184 -- 11111111 -- 11111111
185 -- 11111111 -- 11111111
186 -- 11111111 -- 11111111
187 -- 0 -- 0
188 -- 0 -- 0
189 -- 0 -- 0
190 -- 0 -- 0
191 -- 0 -- 0
192 -- 0 -- 0
193 -- 0 -- 0
194 -- 0 -- 0
195 -- 0 -- 0
196 -- 0 -- 0
197 -- 0 -- 0
198 -- 0 -- 11111111
199 -- 11111111 -- 11111111
200 -- 11111111 -- 11111111
201 -- 11111111 -- 11111111
202 -- 11111111 -- 0
203 -- 0 -- 0
204 -- 0 -- 0
205 -- 0 -- 0
206 -- 0 -- 0
207 -- 0 -- 0
208 -- 0 -- 0
209 -- 0 -- 0
210 -- 0 -- 0
211 -- 0 -- 0
212 -- 0 -- 0
213 -- 0 -- 0
214 -- 0 -- 0
215 -- 11111111 -- 11111111
216 -- 11111111 -- 11111111
217 -- 11111111 -- 11111111
218 -- 11111111 -- 11111111
219 -- 0 -- 0
220 -- 0 -- 0
221 -- 0 -- 0
222 -- 0 -- 0
223 -- 0 -- 0
224 -- 0 -- 0
225 -- 0 -- 0
226 -- 0 -- 0
227 -- 0 -- 0
228 -- 0 -- 0
229 -- 0 -- 0
230 -- 11111111 -- 11111111
231 -- 11111111 -- 11111111

Here is my code

#include <SPI.h>
byte writeEnable = 6;





const int slaveSelectPin = 20;




  long address1 = 0000000;
  
  
  
void setup() 
{
  
  Serial.begin(9600);
  SPI.setBitOrder(MSBFIRST);
  SPI.setClockDivider(SPI_CLOCK_DIV128);
   SPI.setDataMode(0);
  // set the slaveSelectPin as an output:
  pinMode (slaveSelectPin, OUTPUT);
  digitalWrite(slaveSelectPin,HIGH);
  // initialize SPI:
  SPI.begin(); 
  
    digitalWrite(slaveSelectPin,LOW);
    SPI.transfer(writeEnable);
    digitalWrite(slaveSelectPin,HIGH);
    delay(1000);
    Write(address1, B01010101);
    delay(1000);
    
}

void loop() {
   
 //  send in the address and value via SPI:


for(long a=0; a<1000000; a++){
Serial.print(a);
Serial.print("  -_-   ");
Serial.print(ReadSR(),BIN);
Serial.print("  -_-   ");
Serial.println(Read(a),BIN);


delay(50);
}
}




void Write(long address, byte value){
     digitalWrite(slaveSelectPin,LOW);
 //  send in the address and value via SPI:
  SPI.transfer(2);
  SPI.transfer((address >> 16) & B11111111);
  SPI.transfer((address >> 8) & B11111111);
  SPI.transfer((address) & B11111111);
  SPI.transfer(value);
//   take the SS pin high to de-select the chip:
  digitalWrite(slaveSelectPin,HIGH); 
}
byte Read(long address)
{
    byte value;
     digitalWrite(slaveSelectPin,LOW);
 //  send in the address and value via SPI:
  SPI.transfer(3);
  SPI.transfer((address >> 16) & B11111111);
  SPI.transfer((address >> 8) & B11111111);
  SPI.transfer((address) & B11111111);
  value = SPI.transfer(0);
//   take the SS pin high to de-select the chip:
  digitalWrite(slaveSelectPin,HIGH); 
  return value;
}
byte ReadSR()
{

     digitalWrite(slaveSelectPin,LOW);
 //  send in the address and value via SPI:
  SPI.transfer(5);
  byte value = SPI.transfer(0);
//   take the SS pin high to de-select the chip:
  digitalWrite(slaveSelectPin,HIGH); 
  return value;
}

I believe you need to declare D10, the SS pin associated with the internal SPI hardware, as an output also, otherwise I think the chip may think it is an SPI slave, vs being the master. You can still use this for chip select.

const int slaveSelectPin = 20;

You are using a Mega? There is no 20 on an Uno. I think SS on the Mega is 50, but confirm that.

I am using the teensy++ so I think I am using the correct pin. Here is the pin info Teensy and Teensy++ Pinouts, for C language and Arduino Software

Forgot to mention that output B0 the ss pin corresponds to pin 20 in arduino software

And a logic probe connected to the data out pin doesn't return anything, but all other pins are pulsing as usual

Wait i have data. I connected the hold pin to 3.3v. It was floating before. I'll check it to see if it is constant

EDIT
The data has been the same the last 3 runs, so I am going to erase it and try to write

I can read, but not write.

Heres what I have so far:
(keep in mind that all of the commands that don't work rely on write enable to be executed first, so that could be the only problem)

Commands that work:
Write enable
Write
Read
Read status register
Fast read
Enter/exit deep power down
Write Status Register
Chip Erase
Sector/block erase

Commands that I haven't tried yet:
Read manufacturer/device ID
Read ID
Enter OTP mode

I will update this as I go. Once I get everything, I will release a library if asked

Edit1
Fast read works
I believe the deep power down stuff works, but I'm not quite sure

Edit2
Verified that deep power down stuff works
Block and sector erase dont work

EDIT3
Finally got write enable and write, haven't tried erases yet

EDIT4
Erases now work. Probably going to skip ID stuff and OTP for now. Write status register should work, not tested yet.
And forgot to mention, this all started to work after a power cycle on the chip

Aparrenty chips like this are everywhere. I found a pcb from a cd drive and it had a chip that was the exact same except it had twice the flash and supports quad spi. Can I utilize quad spi with arduino?

Datasheet is here
http://www.winbond.com.tw/hq/enu/ProductAndSales/ProductLines/FlashMemory/SerialFlash/W25Q16V.htm

And the chip I mentioned above refuses to be written to. I can chip erase but not write. Don't know whats wrong with it