Dont everyone help at once now!
something is wrong in your hardware and/or configuration fuses... it's working here. Be sure you have place 4.7K or lower on the scl and SDA line and it should work... unless you have reverted the SDA and SCL
If at least you have serial communication, the PIC is working at the great and at the right speed wich reject the config fuses problem
but i don't have the LC512, as now i didn't have any requirement for those... just the LC128 so it can exist some difference between... wich i doubt after a really fast datasheet reading.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
The DIDNTWRITE and DIDNTREAD are never jumped to when it does not read or write. I have even removed the cables going to the eeprom but it never goes to the label. I have a 24LC512 and a pic 16f628. Has anyone seen this before?
You have a hardware problem... OR you don't have pull-resistor as shown in the PBP manual and in the datasheet, OR your PIC is defect, OR you have some short circuit somewhere.
EEprom with Pull up
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=968&stc=1&d=1152732703 ">
EEPROM no pull-up
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=967&stc=1&d=1152732703 ">
NoEEPROM With pul-ups
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=969&stc=1&d=1152732703 ">
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
NoEEPROM No Pull ups
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=970&stc=1&d=1152732703 ">
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I started playing around and found out that if I disconnect the ground wire, the things start working. I tried different chips, different slots in my breadboard and different connector wires. Its the damndest thing. pin 4 should be connected to ground, but spits out garbage when I connect it, works when I disconnect it.
Bookmarks