FSHC之MCU接口部分理解
|_____________| |_____| |___________|
| |-----|AHB |-------------------------------winc------------>| |
| |-----| 2 |------------------------------------rinc-------->| |
| MCU |<=>|FIFO |<====================data=======>| |
| AHB | |____ | | FIFO |
| interface | | |
| | |______| |________| | wapper |
| | | AHB | | |<---wfull--------------------| |
| |<=>| to |<===>|fshc_reg |<----wdata------------------| |
| | | reg | | |<-----rempty----------------| |
| ___________ | |_____| |________|<------rdata-----------------|___________|
图:FSHC的MCU接口部分
1.如果对FSHC模式配置走AHB2REG模块。
比如:REG_FSHC_CMD_REG=0X32;
REG_FSHC_SEND_CTRL = 0X343;
REG_FSHC_MCU_ADRCMD_BIT_LEN =0X1D7;
2.对FLSH读写数据的访问走AHB2FIFO模块。
比如:while(i<512)
{
write_buf[i] = i;
i++;
}
REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j]);
REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j+4]);
REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j+8]);
REG_FSHC_SPDR_WR = *((unsigned long *)&write_buf[j+12]);