Page 20
EPCS Device Memory Access
Write Status Operation
The write status operation code is b'0000 0001and it lists the MSB first. Use the write
status operation to set the status register block protection bits. The write status
operation does not affect the other bits. Therefore, you can implement this operation
to protect certain memory sectors, as listed in Table 9 through Table 13. After setting
the block protect bits, the protected memory sectors are treated as read-only memory.
You must execute the write enable operation before the write status operation so the
device sets the status register’s write enable latch bit to 1.
The write status operation is implemented by driving the nCSsignal low, followed by
shifting in the write status operation code and one data byte for the status register on
the ASDIpin. Figure 10 shows the instruction sequence of the write status operation.
The nCSmust be driven high after the eighth bit of the data byte has been latched in,
otherwise the write status operation is not executed.
Immediately after the nCSsignal drives high, the device initiates the self-timed write
status cycle. The self-timed write status cycle usually takes 5 ms for all EPCS devices
and is guaranteed to be less than 15 ms. For more information, refer to the tWS value in
Table 16 on page 29. You must account for this delay to ensure that the status register
is written with desired block protect bits. Alternatively, you can check the write in
progress bit in the status register by executing the read status operation while the
self-timed write status cycle is in progress. The write in progress bit is
1during the
self-timed write status cycle and
0
when it is complete.
Figure 10. Write Status Operation Timing Diagram
nCS
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
DCLK
ASDI
DATA
Operation Code
Status Register
7
6
5
4
3
2
1
0
MSB
High Impedance
Read Bytes Operation
The read bytes operation code is b'0000 0011and it lists the MSB first. To read the
memory contents of the EPCS device, the device is first selected by driving the nCS
signal low. Then, the read bytes operation code is shifted in followed by a 3-byte
address (A[23..0]). Each address bit must be latched in on the rising edge of the DCLK
signal. After the address is latched in, the memory contents of the specified address
are shifted out serially on the DATApin, beginning with the MSB. For reading Raw
Programming Data files (.rpd), the content is shifted out serially beginning with the
LSB. Each data bit is shifted out on the falling edge of the DCLKsignal. The maximum
DCLKfrequency during the read bytes operation is 20 MHz.
Serial Configuration (EPCS) Devices Datasheet
April 2014 Altera Corporation