Ft2232h provides an MCU host bus emulation mode, which is used to simulate a data interface of 8054/8051 single-chip microcomputer.
Cy7c131 is a dual-port RAM that provides 10-bit address lines and 8-bit data lines.
There are two types of connection:
1. When the address line is 8 bits
Because the ft2232h MCU host bus emulation mode adopts data and address multiplexing at the local address end (that is, ad0: 7), as shown in:
Therefore, if you do not want to use the address lock to separate low address from data, you can use high address as the address, and AD7: 0 serves as the data end completely. This avoids the access to latches in the circuit and simplifies the circuit.
The connection method is as follows:
|
Ft2232h |
Cy7c131 |
Data Line |
Ad0: AD7 |
I/O 0: 7 |
Address line |
A8: A15 |
A0: A7 |
Slice Selection |
CS |
CE |
Read enabling |
Rd |
OE |
Write enable |
WR |
WR |
Power Supply |
VCC |
VCC |
Location |
Gnd |
Gnd |
2. When the address line is 10 digits
If the address line of cy7c131 is fully used, the ft2232h MCU mode must use the address + high address method. In this case, you need to use the address register to separate the low address from the data.
In our experiment, we used the 74hc373 register to lock the data of the local address.
Connection method:
|
Ft2232h |
Cy7c131 |
74hc373 |
Data/address line |
Ad0: AD7 |
I/O 0: 7 |
D1: D8 |
Address line |
A8: A9 |
A8: A9 |
|
Slice Selection |
CS |
CE |
|
Read enabling |
Rd |
OE |
|
Write enable |
WR |
WR |
|
Power Supply |
VCC |
VCC |
VCC |
Location |
Gnd |
Gnd |
Gnd |
Lock address |
Ale |
|
Le |
In addition, the link of 74hc373 is grounded.
------------------
PS: the connection lines of data, address selected, read enabling, write enabling, and lock address must be long. The connection distance between VCC And Gnd is not required.