/*** @brief FSMC NOR/SRAM Init structure definition*/typedefstruct{uint32_tFSMC_Bank;/*设置要控制的Bank区域 */uint32_tFSMC_DataAddressMux;/*设置地址总线与数据总线是否复用 */uint32_tFSMC_MemoryType;/*设置存储器的类型 */uint32_tFSMC_MemoryDataWidth;/*设置存储器的数据宽度*/uint32_tFSMC_...
FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Enable; FSMC_NORSRAMInitStructure.FSMC_MemoryType = FSMC_MemoryType_SRAM; FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_16b; FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; FSMC...
们采取的读写不同时序,所以设置值为 FSMC_ExtendedMode_Enable。 上面的这些参数是与模式 A 相关的,下面我们也来稍微了解一下其他几个参数的意义吧: 参数FSMC_DataAddressMux 用来设置地址/数据复用使能,若设置为使能,那么地址的低 16 位和数据将共用数据总线,仅对 NOR 和 PSRAM 有效,所以我们设置为默认值不复用...
FSMC_NORSRAMInitStructure.FSMC_DataAddressMux=FSMC_DataAddressMux_Disable; FSMC_NORSRAMInitStructure.FSMC_MemoryType=FSMC_MemoryType_SRAM; FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth=FSMC_MemoryDataWidth_16b; FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode=FSMC_BurstAccessMode_Disable; FSMC_NORSRAMInit...
uint32_t FSMC_AddressHoldTime; /*!< Defines the number of HCLK cycles to configure the duration of the address hold time. This parameter can be a value between 0 and 0xF. @note This parameter is not used with synchronous NOR Flash memories.*/ ...
p.FSMC_DataLatency=0; p.FSMC_AccessMode=FSMC_AccessMode_A;/*Color LCD configuration --- LCD configured as follow: - Data/Address MUX = Disable - Memory Type = SRAM - Data Width = 16bit - Write Operation = Enable - Extended Mode = Enable...
FSMC_NORSRAMInitStructure.FSMC_DataAddressMux=FSMC_DataAddressMux_Disable;// 不复用数据地址FSMC_NORSRAMInitStructure.FSMC_MemoryType=FSMC_MemoryType_SRAM;// FSMC_MemoryType_SRAM;FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth=FSMC_MemoryDataWidth_8b;//存储器数据宽度为8bitFSMC_NORSRAMInitStructure....
FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Disable; FSMC_NORSRAMInitStructure.FSMC_MemoryType =FSMC_MemoryType_SRAM; FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth= FSMC_MemoryDataWidth_16b; FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode=FSMC_BurstAccessMode_Disable; ...
p.FSMC_DataLatency = 0; p.FSMC_AccessMode = FSMC_AccessMode_A;/* Color LCD configuration ---LCD configured as follow:- Data/Address MUX = Disable- Memory Type = SRAM- Data Width = 16bit- Write Operation = Enable- Extended Mode = Enable- Asynchronous Wait = Disable */FSMC_NORSRAMInit...
fsmc_config.FSMC_DataAddressMux=FSMC_DataAddressMux_Disable; fsmc_config.FSMC_ExtendedMode=FSMC_ExtendedMode_Disable; fsmc_config.FSMC_MemoryDataWidth=FSMC_MemoryDataWidth_16b; fsmc_config.FSMC_MemoryType=FSMC_MemoryType_PSRAM; fsmc_config.FSMC_ReadWriteTimingStruct=&p; ...