Page 1 of 1

EE Prom 24C32

Posted: Fri Dec 06, 2019 4:29 pm
by stefan.erni
Hi Ben

a long long time ago the EE prom was working nice for me.

http://www.matrixtsl.com/mmforums/viewt ... ilit=24c32

Now I can just write or read one adress. Thats mean I have to disable the rest. If not, the program is hanging.
With much patience, I can write and read ABC....

I use a PIC32MZ2048EFG100

eeprom.PNG
(36.21 KiB) Downloaded 570 times
eeprom2.PNG
(45.68 KiB) Downloaded 570 times

Re: EE Prom 24C32

Posted: Fri Dec 06, 2019 6:21 pm
by mnf
Hi Stefan,

I'm just working on a i2c eeprom component (actually for the 24lc256) - there is an early draft in my post here: viewtopic.php?f=26&t=21723 (as a program - but I tried as a component yesterday)

This allows block reads / writes and uses the chip features (multi-byte writes/reads - so is a lot faster esp on writes - the current component taking 5ms per byte!)

It doesn't quite work - there is a 'skipped' byte at page boundaries in the posted code - hope to fix that tonight. But have a look and any ideas on interface etc gratefully received. (Silly mistake - was skipping back to start of buffer every time it rewrote the address to the eeprom)

So: Fixed the problem and exported as component.

Try:
I2C_EEPROM.fcpx
(2.99 KiB) Downloaded 221 times
Note that this a 'barebones' component - there is no code to fill in default values - so just set all the properties.

Just tested reading 768 bytes to WS2812B array using
Capture.JPG
Capture.JPG (19.85 KiB) Viewed 2693 times
Which is a (slight) kludge to load the entire buffer without using another buffer, and in a single call (rather than doing it in a loop) - works well....

Not sure how the 24c32 differs - but should be possible to modify to suit?


Martin

Re: EE Prom 24C32

Posted: Tue Dec 10, 2019 2:25 pm
by stefan.erni
Hi Martin

Thank you for the support. I copied the component in both folder, but I can't see it in FC8.

C:\Program Files (x86)\Flowcode v8\DefaultData\FlowcodeV8\Component
C:\ProgramData\MatrixTSL\FlowcodeV8\Component


Yes I know I have to learn how to create a component...soon

I followed the Infos from the homepage
https://www.matrixtsl.com/wiki/index.ph ... _Component

regards
Stefan

Re: EE Prom 24C32

Posted: Tue Dec 10, 2019 8:37 pm
by mnf
To install the component - save to a directory (probably best not to use the FC component folder) - then tell FC where to look for new components.
(View - Global Options - Locations) - add the directory to the 'Look for Components In' box.. I usually do a 'Refresh Component Cache' - though I'm not sure if it is needed.

- I think you'll find the component under Misc - but easiest using Search (I2C_EEPROM)

The i2c address of the eeprom is hardcoded (as it is in the FC component) - with A2..A0 as a property. I'm sure I read some where that all the chips have the same basic address - but if this is not the case then it would be easy to add an extra property (or change the control bits to the whole address).

Martin

Re: EE Prom 24C32

Posted: Wed Dec 11, 2019 10:22 am
by stefan.erni
Hi Martin

Perfect, under Misc I found it.

regards

Stefan