logo资料库

STM32F103ZET6.pdf

第1页 / 共3页
第2页 / 共3页
第3页 / 共3页
资料共3页,全文预览结束
Flexible static memory controller (FSMC) RM0008 Table 123. FSMC_BCRx bit fields Bit No. Bit name Value to set 31-16 15 14 13-10 9 8 7 6 5-4 3-2 1 0 0x0000 ASYNCWAIT Set to 1 if the memory supports this feature. Otherwise keep at 0. EXTMOD WAITPOL BURSTEN FACCEN MWID MTYP MUXEN MBKEN 0x0 0x0 Meaningful only if bit 15 is 1 0x0 - 0x1 As needed 0x2 (NOR) 0x1 0x1 Table 124. FSMC_BTRx bit fields Bit No. Bit name Value to set 31-20 0x0000 19-16 BUSTURN 15-8 DATAST Duration of the last phase of the access (BUSTURN+1 HCLK) Duration of the second access phase (DATAST+3 HCLK cycles for read accesses and DATAST+1 HCLK cycles for write accesses). This value cannot be 0 (minimum is 1) 7-4 3-0 ADDHLD Duration of the middle phase of the access (ADDHLD+1 HCLK cycles).This value cannot be 0 (minimum is 1). ADDSET Duration of the first access phase (ADDSET+1 HCLK cycles). WAIT management in asynchronous accesses If the asynchronous memory asserts a WAIT signal to advise that it's not yet ready to accept or to provide data, the ASYNCWAIT bit has to be set in FSMC_BCRx register. If the WAIT signal is active (high or low depending on the WAITPOL bit), the second access phase (Data setup phase) programmed by the DATAST bits, is extended until WAIT becomes inactive. Unlike the data setup phase, the first access phases (Address setup and Address hold phases), programmed by the ADDSET and ADDHLD bits, are not WAIT sensitive and so they are not prolonged. The data phase must be programmed so that WAIT can be detected 4 HCLK cycles before the data sampling. The following cases must be considered: 510/1096 Doc ID 13902 Rev 14
RM0008 Flexible static memory controller (FSMC) 1. Memory asserts the WAIT signal aligned to NOE/NWE which toggles: data_setup phase >= 4 * HCLK + max_wait_assertion_time 2. Memory asserts the WAIT signal aligned to NEx (or NOE/NWE not toggling): if max_wait_assertion_time > (address_phase + hold_phase) data_setup phase >= 4 * HCLK + (max_wait_assertion_time - address_phase - hold_phase) otherwise data_setup phase >= 4 * HCLK Where max_wait_assertion_time is the maximum time taken by the memory to assert the WAIT signal once NEx/NOE/NWE is low. The Figure 199 and Figure 200 show the number of HCLK clock cycles that memory access is extended after WAIT is removed by the asynchronous memory (independently of the above cases). Figure 199. Asynchronous wait during a read access Memory transaction A[25:0] NOE D[15:0] Doc ID 13902 Rev 14 511/1096
Flexible static memory controller (FSMC) RM0008 Figure 200. Asynchronous wait during a write access Memory transaction A[25:0] NEx NWAIT NWE D[15:0] address phase data phase don’t care 1HCLK data driven by FSMC 3HCLK ai15797 512/1096 Doc ID 13902 Rev 14
分享到:
收藏