![]() |
图1 PIO连接FPGA |
PIO_DATA = ADDRESS; // Pass the address to write
PIO_CTROL = START | WR; // Send start of address cycle
PIO_CTROL = CLEAR; // Clear PIO ctrl, this ends the address cycle
PIO_DATA = DATA; // Set data to transfer
PIO_CTROL = START; // Data is ready in PIO
PIO_CTROL = CLEAR; // This ends the data cycle
PIO_DATA = ADDRESS; // Set the address to read
PIO_CTROL = START | RD; // Send start of address cycle
PIO_CTROL = CLEAR; // Clear PIO ctrl, this ends the address cycle
PIO_DATA_DIR = INPUT; // Set PIO-Data direction as input to receive the data
DELAY(WAIT_FOR_FPGA); // wait for the FPGA to send the data
DATA_FROM_FPGA = *PIO_DATA; // Read data from FPGA
![]() |
图2 PIO向FPGA 写数据 |
![]() |
图3 PIO从FPGA读取数据 |
![]() |
图4 EBI-SMC接口 |
![]() |
图5 EBI-SMC读周期 |
![]() |
图6 EBI-SMC写周期 |
![]() |
图7 MCU专用的FPGA接口 |
![]() |
图8 ARM7与FPGA接口 |
![]() |
图9 串行单配置 |
![]() |
图10 双串行配置 |
![]() |
表1 模式位 |
![]() |
图11 通过直接FPGA接口传输的读/写时间 |
欢迎光临 DIY编程器网 (http://diybcq.com/) | Powered by Discuz! X3.2 |