Chapter 9: Using User Flash Memory in MAX II Devices
9–21
Software Support for UFM Block
Figure 9–19. Random Address Read Sequence
Slave
Address
Byte
Address
Slave
Address
Data
S
A
A
Sr
A
P
R/W
R/W
‘1’ (read)
‘0’ (write)
From Master to Slave
From Slave to Master
S – Start Condition
Sr – Repeated Start
P – Stop Condition
A – Acknowledge
Sequential Read
Sequential read operation can be initiated by either the current address read operation
or the random address read operation. Instead of sending a stop condition after the
Slave has transmitted one byte of data to the master, the master acknowledges that
byte and sends additional clock pulses (on SCL line) for the slave to transmit data
bytes from consecutive byte addresses. The operation is terminated when the master
generates a stop condition instead of responding with an acknowledge. Figure 9–20
shows the sequential read sequence.
Figure 9–20. Sequential Read Sequence
Slave
Address
Byte
Address
Slave
Address
Data
Data
S
A
A
Sr
A
A
P
R/W
R/W
…
‘1’ (read)
Data (n - bytes) + Acknowledgment (n - 1 bytes)
‘0’ (write)
From Master to Slave
From Slave to Master
S – Start Condition
Sr – Repeated Start
P – Stop Condition
A – Acknowledge
© October 2008 Altera Corporation
MAX II Device Handbook