Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

EPCS4 serial eeprom

Hi,

I am finding it very hard to make epcs4 serial eeprom work. Code is very simple but I dont know where Im going wrong. Can this serial eeprom work using SPI?

Thanks

9 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don't see any reason to start a new thread in this topic. Generally, it's difficult to decide from a distance, if you're facing a misunderstanding of EPCS datasheet, wrong operation of your microprocessors peripheral or a trivial hardware problem. Any of these issues can happen, even to an experienced developer. You have to find a way (a debug strategy) to check your design's hard- and software operation yourself.

    EPCSx are basically serial SPI flash devices, compatible devices are manufactured by other vendors. e.g. Winbond (although not officially supported by Altera).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I have checked with the SPI peripherals and hardware connections aswell. Eveything seems to be fine. I wonder if any delay should be given before or after the op-code instructions.

    Thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi,

    Can EPCS4 only be interfaced with Stratix® III, Stratix II GX, and Stratix II FPGAs, Arria™ GX FPGAs, and the Cyclone® series FPGAs or can it be interfaced even with other MCU's???
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Plz .. i need help, i wrote a VHDL code that can write using I2C protocol ,and it work correctly, but when i try to read from the eeprom it give me nothing

    ... and i want to know in the reading of the data(n) should i generate the i2c clock signal or the slave will do ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You should have created another thread, your question has nothing to do with the EPCS serial eeprom.

    To answer your question, yes, the master is always generating the clock in the I2C protocol.