I tried all sample codes and circuits for eeproms posted here
none seems to work for me.
for 1 wire device, haven't bought any yet, just deciding
For experiments i have DS2501-U chip at hands.
I tried all sample codes and circuits for eeproms posted here
none seems to work for me.
for 1 wire device, haven't bought any yet, just deciding
For experiments i have DS2501-U chip at hands.
The I2C works just fine. Used many times the I2CREAD and I2CWRITE commands.
When there was a problem, was always my mistake in address, wrong use of commands (variable vs constant).
Complete diagram along with your misbehaving code would help.
Ioannis
I have posted all that here already.
And this topic is about 1wire eeprom![]()
Perhaps you should provide a link to where you have posted it. Not everybody reads every thread posted everywhere. The 1-wire devices tend to be about the same level of complexity as I2C with a few extra limitations, but are only available in a couple sizes and from a single vendor. If you only need 1K or so to identify a board you should be able to get it going easily. We are trying to steer you towards I2C because they are far more popular and if your project needs change, you won't have a lot of options. Not to mention your next project. I2C is easy and works well in PBP, but hey it's your project. You are less likely to find a code example if you need one for 1-wire, that's all.
here is onePerhaps you should provide a link to where you have posted it.
http://www.picbasic.co.uk/forum/showthread.php?t=587
felt like i was like pulling teeth
Warning I'm not a teacher
DS28EC20 has 20KB of EEPROM, and already available from Chinese vendors, for around $1 per IC
I actually need 2KB for font and 256 bytes for each language text (have 8 languages so far) so even 4KB would be ok![]()
I would:
1) Use a PIC with enough FLASH to store what needs to be stored (if possible).
2) Use a FLASH-chip with SPI-interface (easier and faster than I2C IMHO)
3) Use a FLASH/EEPROM with I2C interface
4) Wind my own core-memory.
5) Write down the information on paper, have a RaspberryPi with a camera and OCR software and then interface that to the PIC via CAN-bus.
6) Use a fake/clone 1-wire device from China costing less than 1/3 of the original, able to store just half of what I need*, only to find it doesn't work at all.
But hey, that's me :-)
* The DS28EC20 is 20kbit, not kbyte so your 4kbyte of data won't fit - in case you got that mixed up.
/Henrik.
Bookmarks