FX3 GPIO pin interface with 1-wire 11AA160 EEPROM Chip

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
prchc_3505471
Level 2
Level 2
First like given

Hi All,

However I'm using FX3 controller for USB3.0 functionality at connected FPGA using 32-bit sync-slave fifo implementation, I need to read/write 1-wire EEPROM chip which is connected with one of GPIO pin of FX3. Idea is like user can read or write some info from/into 1-wire EEPROM using vendor commands.

I've implemented 1-wire communication protocol on GPIO to read/write EEPROM, but it is not consistent result, out of 10 times wire 16 bytes data into EEPROM and read back same data, 5 times it gets failed. I have used following APIs for making GPIO input/out and for timing purpose:

[1] CyU3PGpioSetSimpleConfig() for pin direction, input or output.

[2] CyU3PGpioSetValue() to transmit 0 or 1 when pin is in output

[3] CyU3PGpioGetValue() to read pin state when it is used in input to read data & ack from EEPROM.

[4] CyU3PBusyWait() to emulate timing need as per protocol.

However, I have doubt that there might be due to timing criteria related issue, sometime EEPROM doesn't respond properly. And these issue might be because of I'm using these library calls which itself can give some overhead.

So my question is that is there any way to resolve/implemente this protocol using very low level programming along with my original firmware for slave-fifo ? Can I mix threadex RTOS based slave-sync fifo implementation and any low level GPIO toggle and timing need ?

I hope that any help will make me move ahead.

Thanks,

Premji

0 Likes
1 Reply
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hello Premji,

- Can you please provide the datasheet of the EEPROM.

- How do you achieve synchronization between FX3 and EEPROM?

Regards,

Hemanth

Hemanth
0 Likes