| Electronics > Projects, Designs, and Technical Stuff |
| MB85RC64TA FRAM Trouble Writing/Reading [SOLVED] |
| (1/3) > >> |
| ANTALIFE:
Hi all I have a MB85RC64TA FRAM module that I am trying to write/read to via I2C with an nRF52832. Here is the datasheet for it. The two commands I am trying to implement for now is "Byte Write" & "Random Read" (see pg8 & pg9 of datasheet). Here is my basic & messy code, all it does is attempt to write 0x30 to register 0x1510 (0x15 0x10) and then read the (hopefully) same value from the same register. But this does not work as all I read is 0x00 NOTE: The WP pin of the IC is always LOW meaning I should be able to write to the IC When I attach a logic analyser to the SDA/SCL pins I see that all but the read operation works correctly? So with that said could someone offer some advice? Cheers, Anton UPDATE 1: Turns out the x2 MB85RC64TA IC's I had were counterfeit. If I use the same code for the FM24CL64B-G (same memory & command structure) I can easily write and read values. Using my microscope (see below) proves this, as the MB85RC64TA surface looks to be polished and engraved with a laser (something IC manufacturers don't tend to do...) |
| iMo:
The writing/reading to/from a fram is identical to w/r with a flash. Mind there is an wr_enable bit required to send when writing, afaik (like i2c_adr_with_wren+address+data).. Thus your MB85RC64TA_ADDR differs in its LSB bit based on RD or WR operation. |
| ANTALIFE:
--- Quote from: imo on September 25, 2019, 06:53:44 am ---The writing/reading to/from a fram is identical to w/r with a flash. Mind there is an wr_enable bit required to send when writing, afaik (like i2c_adr_with_wren+address+data).. Thus your MB85RC64TA_ADDR differs in its LSB bit based on RD or WR operation. --- End quote --- Yup, thats what the logic analyser shows right? Write address is 0xA0, read is 0xA1 |
| Someone:
One step at a time, can you correctly read the Device ID? |
| ANTALIFE:
--- Quote from: Someone on September 25, 2019, 08:08:38 am ---One step at a time, can you correctly read the Device ID? --- End quote --- Yeah on the non-counterfeit IC |O |
| Navigation |
| Message Index |
| Next page |