cancel
Showing results for 
Search instead for 
Did you mean: 

FMC controller configuration for STM32F7 MCU

Edwin kaus
Associate II
Posted on January 30, 2018 at 11:14

Hello.,

I am working on STM32F7 microcontroller , need to access external memory device through parallel bus (8 bit bus width). The external memory doesn't support RDY signal so that I need to add internal wait state , But I don't find which parameter need to set add internal wait state. 

Can anyone suggest me which register I need to configure.

Presently I configure FMC controller as fallows ;-

  hnor1.Instance = FMC_NORSRAM_DEVICE;

  hnor1.Extended = FMC_NORSRAM_EXTENDED_DEVICE;

  /* hnor1.Init */

  hnor1.Init.NSBank = FMC_NORSRAM_BANK4;

  hnor1.Init.DataAddressMux = FMC_DATA_ADDRESS_MUX_DISABLE;

  hnor1.Init.MemoryType = FMC_MEMORY_TYPE_NOR;

  hnor1.Init.MemoryDataWidth = FMC_NORSRAM_MEM_BUS_WIDTH_8;

  hnor1.Init.BurstAccessMode = FMC_BURST_ACCESS_MODE_DISABLE;

  hnor1.Init.WaitSignalPolarity = FMC_WAIT_SIGNAL_POLARITY_LOW;

  hnor1.Init.WaitSignalActive = FMC_WAIT_TIMING_BEFORE_WS;

  hnor1.Init.WriteOperation = FMC_WRITE_OPERATION_ENABLE;

  hnor1.Init.WaitSignal = FMC_WAIT_SIGNAL_DISABLE;

  hnor1.Init.ExtendedMode = FMC_EXTENDED_MODE_ENABLE;

  hnor1.Init.AsynchronousWait = FMC_ASYNCHRONOUS_WAIT_DISABLE;

  hnor1.Init.WriteBurst = FMC_WRITE_BURST_DISABLE;

  hnor1.Init.ContinuousClock = FMC_CONTINUOUS_CLOCK_SYNC_ASYNC;

  hnor1.Init.WriteFifo = FMC_WRITE_FIFO_ENABLE;

  hnor1.Init.PageSize = FMC_PAGE_SIZE_NONE;

  /* Timing */

  Timing.AddressSetupTime = 15;

  Timing.AddressHoldTime = 15;

  Timing.DataSetupTime = 255;

  Timing.BusTurnAroundDuration = 15;

  Timing.CLKDivision = 16;

  Timing.DataLatency = 17;

  Timing.AccessMode = FMC_ACCESS_MODE_A;

  /* ExtTiming */

  ExtTiming.AddressSetupTime = 15;

  ExtTiming.AddressHoldTime = 15;

  ExtTiming.DataSetupTime = 255;

  ExtTiming.BusTurnAroundDuration = 15;

  ExtTiming.CLKDivision = 16;

  ExtTiming.DataLatency = 17;

  ExtTiming.AccessMode = FMC_ACCESS_MODE_A;

Thank you.,

#parallel #fmc #stm32f765bit
0 REPLIES 0