欢迎访问ic37.com |
会员登录 免费注册
发布采购

EPM240T100C5N 参数 Datasheet PDF下载

EPM240T100C5N图片预览
型号: EPM240T100C5N
PDF下载: 下载PDF文件 查看货源
内容描述: [暂无描述]
分类和应用: 可编程逻辑器件输入元件PC
文件页数/大小: 295 页 / 3815 K
品牌: ALTERA [ ALTERA CORPORATION ]
 浏览型号EPM240T100C5N的Datasheet PDF文件第144页浏览型号EPM240T100C5N的Datasheet PDF文件第145页浏览型号EPM240T100C5N的Datasheet PDF文件第146页浏览型号EPM240T100C5N的Datasheet PDF文件第147页浏览型号EPM240T100C5N的Datasheet PDF文件第149页浏览型号EPM240T100C5N的Datasheet PDF文件第150页浏览型号EPM240T100C5N的Datasheet PDF文件第151页浏览型号EPM240T100C5N的Datasheet PDF文件第152页  
9–16
Chapter 9: Using User Flash Memory in MAX II Devices
Software Support for UFM Block
Device Addressing
After the start condition, the master sends the address of the particular slave device it
is requesting. The four most significant bits (MSBs) of the 8-bit slave address are
usually fixed while the next three significant bits (A
2
, A
1
, A
0
) are device address bits
and define which device the master is accessing. The last bit of the slave address
specifies whether a read or write operation is to be performed. When this bit is set to
1, a read operation is selected. When this bit is set to 0, a write operation is selected.
The four MSBs of the slave address (A
6
, A
5
, A
4
, A
3
) are programmable and can be
defined on page 3 of the altufm MegaWizard Plug-In Manager. The default value for
these four MSBs is
1010.
The next three significant bits are defined using the three A
2
,
A
1
, A
0
input ports of the altufm_i2c megafunction. You can connect these ports to
input pins in the design file and connect them to switches on the board. The other
option is to connect them to V
CC
and GND primitives in the design file, which
conserves pins.
shows the slave address bits.
Figure 9–14.
Slave Address Bits
MSB
1- or 2-Kbit Memory Size
1
0
1
0
A
2
A
1
LSB
A
0
R/W
MSB
4-Kbit Memory Size
(1)
1
0
1
0
A
2
A
1
LSB
a8
R/W
MSB
8-Kbit
Memory Size
(2)
1
0
1
0
A
2
a9
LSB
a8
R/W
Notes to
(1) For the 4-Kbit memory size, the A
0
location in the slave address becomes the MSB (a8) of the memory byte address.
(2) For the 8-Kbit memory size, the A
0
location in the slave address becomes a8 of the memory byte address, while the
A
1
location in the slave address becomes the MSB (a9) of the memory byte address.
After the master sends a start condition and the slave address byte, the altufm_i2c
logic monitors the bus and responds with an acknowledge (on the SDA line) when its
address matches the transmitted slave address. The altufm_i2c megafunction then
performs a read or write operation to/from the UFM, depending on the state of the
bit.
Byte Write Operation
The master initiates a transfer by generating a start condition, then sending the correct
slave address (with the R/
W
bit set to 0) to the slave. If the slave address matches, the
altufm_i2c slave acknowledges on the ninth clock pulse. The master then transfers an
8-bit byte address to the UFM, which acknowledges the reception of the address. The
master transfers the 8-bit data to be written to the UFM. Once the altufm_i2c logic
acknowledges the reception of the 8-bit data, the master generates a stop condition.
The internal write from the MAX II logic array to the UFM begins only after the
master generates a stop condition. While the UFM internal write cycle is in progress,
the altufm_i2c logic ignores any attempt made by the master to initiate a new transfer.
shows the Byte Write sequence.