I am trying to read EEPROM(93c46) with PIC16F628. I had 93c46's datasheet and wrote a firmware. But it didn't work.
Now I want to explain that I did. Where is my fault?
In the datasheet, READ insturuction is given --> " SB-->1 + OP CODE-->10 + (for 8 BIT)ADRESS-->A6-A0 "
According to datasheet, I used this infos like that:
* HIGH CS pin (Chip Select)
* HIGH DI pin (Data Input) and set CLKpin two times.
* LOW DI Pin AND set CLK pin
thus, I sent "110". (Those bits are SB-->"1" + OP CODE-->"10" )
* Then send adress bits. (A6-A0 is given. Why is not A7-A0(8 bits)? I did that in this way: when I sent "1" or "0" to DI, I set CLK one by one.
* After of those CLKs(Adress CLKs), with each CLK, i receive a bit. And I constituted a byte with those bits. Later, I wrote down this byte to a register.
* HIGH CS and LOW CS
With this way, I could not success. Where is the problem?
or
If is there an another solution and you share with me, i will be happy.
Thanks....