Burst Read Mode is Not working - I2C

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Burst Read Mode is Not working - I2C

Post by pawow »

XDIMAX is not working at I2C EEPROM Burst Read mode.

My XDIMAX's Firmware is v0.2.8.(Recently Update)

It was read only 5 bytes.

I used Visual Basic 2010.

Please tell me.... why?

Image

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: Burst Read Mode is Not working - I2C

Post by xol »

HI,
I see the 16 bytes are read. The last 11 bytes are ff.
Where do you read from? What device are you communicating with?

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Re: Burst Read Mode is Not working - I2C

Post by pawow »

Okay i read the 16bytes, but read data is not correct.

i write ... 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff

but i read only 5 or 6bytes .... 00 11 22 33 44 55

the "ff ff ff ff .... " is not read data.... refer to next image

Image

i think that xdimax dll have a bug.

My EEPROM is ST 24C02(2048bit)

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Re: Burst Read Mode is Not working - I2C

Post by pawow »

I try another test.

Updated SUB-20 tool have I2C Mode and PROGRAMMER Mode.

Below PIC is SUB-20 I2C Mode Operation. It is not work.
Image

Below PIC is SUB-20 PROGRAMMER Mode Operation. It is Good Work. Unbelievable~~~~!
Image

I think SUB-20 Program is made of C or C++

but your sample program made of vb.net is not work.

I Think ... you ditn't test DLL File.

I Think .... you know the bug already. right?

Please Send me the Wonderful Solution. Thank you

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: Burst Read Mode is Not working - I2C

Post by xol »

HI,
The problem is not in software (SUB-20 Tool is only written in C++), not in SUB-20 DLL and not in SUB-20 hardware.
The problem IS in correct usage of the mentioned ST24C02 EEPROM. Someone had to read first it's datasheet.

Our wonderful solution is to reference you to the datasheet of ST24C02.

This is taken from datasheet:
BYTE and MULTIBYTE WRITE (up to 4 BYTES)
PAGE WRITE (up to 8 BYTES)
And it means that you can not write more then 4 bytes in a row.

Besides this EEPROM can work only at 100KHz max. So you have to reduce frequency to 100KHz.

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Re: Burst Read Mode is Not working - I2C

Post by pawow »

Sorry....

ST is not use word "MULTIBYTE"
ST is use word "PAGE Write" okay?

ST M24C02 DataSheet's URL is http://www.st.com/stonline/products/lit ... 4c02-w.pdf

Below PIC is some parts of Datasheet.
Image

Page Write Function is up to 16bytes and no speed limit (except Voltage Level).

Below PIC is another parts of Datasheet.
Image

See that Datasheet.

Who is worng ?

I can't find
" BYTE and MULTIBYTE WRITE (up to 4 BYTES)
PAGE WRITE (up to 8 BYTES)
" form ST M24C02 DataSheet.

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Re: Burst Read Mode is Not working - I2C

Post by pawow »

I think you may read old old old.... very old datasheet.

Humm HaHAHAHA~!

Please tell me Excellent Solution...... please....

xol
Site Admin
Posts: 241
Joined: Sat Aug 29, 2009 8:04 am

Re: Burst Read Mode is Not working - I2C

Post by xol »

What is exact part number of the EEPROM you use?
Read the writing on the IC bag and post it exactly as it written where.
ST has a number of different EEPROM types.

In any case to be sure I2C is working properly try to write 16 bytes byte by byte advancing all the time Memory Address and writing only one byte.
After that read all 16 bytes from the first address.

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Re: Burst Read Mode is Not working - I2C

Post by pawow »

My EEPROM's Exact Part Number is M24C02-WDW6TP.

pawow
Posts: 8
Joined: Fri Jun 04, 2010 3:50 am

Re: Burst Read Mode is Not working - I2C

Post by pawow »

Anyway, The XDIMAX Sample VB.NET Programs is not properly work..... I think .... kind of bug... of DLL.

4 or 5 bytes read is good, but 8bytes read, 16bytes read, 32 bytes read is not work.
(I have many EEPROM. 1kbit, 2kbit, 4kbit, 8kbit, 16kbit, 32kbit, 64kbit, 128kbit, 256kbit, 512kbit and 1Mbit)

I don't know ... In case of C or C++.

I don't think ... I have never mistake in my code.... but your sample program is not work at I2C Mode.

I don'nt know PROGRAMMER mode.

This Problem is not kind of EEPROM Type.

This Problem is Software Resource BUG.

Please Check your DLL and Correct the Sample VB.NET Program.
Last edited by pawow on Tue Oct 12, 2010 7:57 am, edited 2 times in total.

Post Reply