FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6356 Discussions

What is the polarity of DCLK signal in EPCS16 ?

Altera_Forum
Honored Contributor II
1,435 Views

I am using cyclone iii ep3c25 fpga in which I have designed an sopc system which has altera spi ip. I want to access EPCS16 flash using this SPI. For that, what polarity should i kept for the sclk signal of spi? From datasheet of EPCS16 I got that the phase of DCLK is 1. but i couldn't find the polarity of dclk.

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
310 Views

If you take a look at the timing diagrams in the datasheet you will see that EPCS devices set the DATA output on DCLK falling edge and latch ASDI input on DCLK rising edge.

0 Kudos
Altera_Forum
Honored Contributor II
310 Views

Yeah, but that determines the phase of dclk, which is 1 according to datasheet. But how can we figure out the polarity of dclk? By default, dclk is 0 or 1?

0 Kudos
Altera_Forum
Honored Contributor II
310 Views

I presume this is irrelevant.  

EPCS will sample the ASDI input and latch the first bit of the command code when it detects the first DCLK rising edge after nCS has gone low. 

Then, if DCLK is normally high, it needs to go low just before starting the command sequence; but this will have no effect, since the EPCS status machine is still inactive, until the next rising edge.
0 Kudos
Altera_Forum
Honored Contributor II
310 Views

 

--- Quote Start ---  

I presume this is irrelevant. 

--- Quote End ---  

 

Yes, as you can clearly see from the EPCS datasheet in Quartus config handbook. EPCS16 is also functionally compatible to industry standard SPI flash devices, e.g. M25P16, in case of doubt refer to the respective datasheets.
0 Kudos
Reply