PLEASE CORRECT MY CODE FOR I2C COPIER

Status
Not open for further replies.

the_kid25

Member level 3
Joined
Jul 30, 2009
Messages
56
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,288
Location
thailand
Activity points
1,610
i2c eprom copier

I experiment eeprom I2C Copier with this schematic
**broken link removed**

But verifiying data always error.
messages data error
Reading 0x000000 - 0x0003FF ...
Reading 0x002100 - 0x00213F ...
Reading 0x002000 - 0x002007 ...
Reading PIC ok.
Cannot verify at different voltages with this hardware.
Verifying...
Verifying CODE, 0x000000..0x000119
Verifying 0x000000..0x000119
Verify Error: 000004: read 000009, wanted 00001B
Verify Error: 000006: read 003C43, wanted 003CC7
Verify Error: 000007: read 00346F, wanted 003CFF
Verify Error: 000008: read 003470, wanted 003CF0
More Verify Errors, unable to list all (total=96)
Verifying DATA, 0x002100..0x00213F
Verifying 0x002100..0x00213F
Verify Error: 002103: read 003F60, wanted 000020
Verify Error: 002104: read 003F50, wanted 0000FE
Verify Error: 002105: read 003F69, wanted 0000FB
Verify Error: 002106: read 003F65, wanted 0000EF
More Verify Errors, unable to list all (total=53)
Verifying CONFIG, 0x002000..0x002007
Verifying 0x002000..0x002007
ERROR: Verifying FAILED !

please help me....correct my code in attachment, THANKS FOR ALL
 

i2c copier

I have not looked at your code as this appears to be a programming error.
You will have to check your programmer as it is failing to write to the Micro.
 
correct the code

You can find the original project here with source codes.
**broken link removed**
 

i2c eeprom copier

pranam77 said:
You can find the original project here with source codes.
**broken link removed**
Brother my code from **broken link removed** but why always verifiying data error,what is problem? u have code valid or u have same schematic project with u code.pls help me brother so i'm dizzy with my project.
 

code for i2c in basic

I have tried the same code. It is programming perfectly to PIC16F84A. May be your programmer or the Chip has some problem. Good luck
 

copier i2c

Hello!

I'm not sure about what the PIC does (i.e. if it is a hardware SPI or if you
emulate it with a GPIO). But this hardware seems against the I2C
philosophy.

Basically, the idea behind I2C is that you use only 2 wires and you can have
myriads of devices on the same 2 wires. And this hardware uses 2 different
clocks. This gives you potential strange behaviors.

- The data is common.
- You have 2 clocks A and B.

Suppose you're reading from device A. Device B is therefore idle (SCL high).
If while SCL is idle you change the status of the data (that you are already
using on the other channel), then it will create a start condition. Well, I know
this might not be a problem, but why complicating things that can be simple?

I don't know where this hard comes from, but I would rewire it the regular way:
SDA and SCL are common, and the address is different (for example
device A: A1A2A3 = (0,0,0) and device B (A1A2A3) = (0,0,1)

Dora.

the_kid25 said:
I experiment eeprom I2C Copier with this schematic

please help me....correct my code in attachment, THANKS FOR ALL
 

col2000.free.fr/copieur/cop_indx.htm

Hi The_kid25

Are you still looking for? i have thi full project to these memories, if you want i can
upload it.

Elson
 

Re: col2000.free.fr/copieur/cop_indx.htm

Elson said:
Hi The_kid25

Are you still looking for? i have thi full project to these memories, if you want i can
upload it.

Elson
please send me or upload here brother.thanks
 

please.... who have alternative schematic with source ?please upload here send for me.thanks....
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…