Author Topic: One-wire TMEX support for EEPROM function to read blocks is limited  (Read 426 times)

0 Members and 1 Guest are viewing this topic.

Offline basantabTopic starter

  • Contributor
  • Posts: 21
  • Country: fi
Modified and found solution:
Ok, I was unclear about the read write process and hence confusion. It is possible to read larger memory by using different start address to read and read in chunks of 1023 or any other size multiple times. Remember to reset in between multiple reads.

Hello,
 I am, trying to read and write EEPROM (DS28EC0) using TMEX library support. There is function call called "TMBlockStream " that supports only 1023 byte of data which was fine for older memory with 4 Kb. but his DS28EC0 has 20KB and it looks like there is problem reading the whole (2,560 Kb) of memory.
Is there any way out or anyone has experience regarding this ? It works fine if i want to read only 1023 byte of mem.

Function call:
https://files.maximintegrated.com/sia_bu/softdev/owdocs/Docs/TMEX/bloc0zou.html

TMEX overview:
https://files.maximintegrated.com/sia_bu/softdev/owdocs/Docs/TMEX/tmwi5ur7.html



Sample code for reference:
Code: [Select]
       
//num_pgs is 80 for DS28EC0..
//fill in the 0xFF's in the buf to use as a read buffer
    len = (num_pgs * 32);
            for (i = 0; i < len; i++)
              buf[i] = 0xFF;

            // perform the block to start the read and return is equal read byte length which is limited to 1023 byte
            if (TMBlockStream(session_handle,buf,len) == len)
               rt = 1;



« Last Edit: February 20, 2020, 03:49:13 am by basantab »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf