O.K.... your connections are not correct.
A pull-up resistor must be connected between the EEPROM pin and +5V.
look to your PBP manual in the I2Cread and i2CWRITE section.
O.K.... your connections are not correct.
A pull-up resistor must be connected between the EEPROM pin and +5V.
look to your PBP manual in the I2Cread and i2CWRITE section.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi again!
Sorry,i have tested my connections and they must be correct.
Because i have found a hexfile(loader.hex).
And when i burn it in my Pic,My Pic read 's and write's the 24LC16B perfect.
Here are my original Connections:
http://www.xg-midifiles.de/24LC16B.jpg
(I have made an Error,sorry for that)
So it MUST be a Software Error!
My Problem is,i have only this hexfile(that work's perfect).
But i want to write my own Program with PBP.
I have try many Sample Codes not only your's.
And i have read many Tutorials also the Datasheed's(but if you think,
then i will read them again)
My Question is:
Wy work's this hexfile perfect and all sample Code written with PBP
does not?
By'e
RON
Are you 100% sure you're setting your config fuse for RC_OSC before programming your PIC?
The RC values shown in your schematic should give you roughly 4MHz, but don't count on super accurate timing with any external RC osc circuit.
You could also try substituting a 10K pot for the fixed 5K resistor you have now. You can tweak the potentiometer to fine tune your RC osicllator circuit until you get it close enough to 4MHz for the I2CWrite & I2CRead timing to work.
Of course, you could always drop in a 4MHz crystal or resonator, and be done with it.
The pull-up resistors, as mentioned previously, would also be a nice twist if you're getting tired of fighting this thing. Your manual shows you the super simple pull-up resistor circuit. It really does make a difference.
Bookmarks