Assuming your data is already written in your EEPROM, try
If you want to write data to your eeprom, then you'll need to add another pice of codeCode:@ device pic16F877, HS_osc, wdt_on, pwrt_on, protect_off define OSC 16 CS var portb.1 SCK var portb.2 SI var portb.4 SO var portb.5 trisb=%11101101 B0 var byte B1 var byte addr var byte cs=0 HIGH PORTD.7 pause 5000 addr = $01 CS = 1 Shiftout DI, CLK, MSBFIRST, [%100\3, addr\6] CS = 0 pause 50 for addr = 0 to 32 cs=1 shiftout sI,sck,1,[%110\3,addr\6] shiftin so,sck,2,[b0,b1] CS=0 serout portd.7,2, [b1,b0] next serout portd.7,2, [10,13] STOP end




Bookmarks