K22F FlexBus SRAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K22F FlexBus SRAM

891件の閲覧回数
martindusek
Contributor V

This is my configuration of FlexBUS for IS61LV256AL SRAM (http://www.mouser.com/ds/2/198/61LV256AL-258426.pdf) and MK22FN512VLL12

    FB->CS[0].CSCR  =   FB_CSCR_PS(1)      // 8-bit port7
      | FB_CSCR_ASET(0x0)
   | FB_CSCR_RDAH(0x0)
   | FB_CSCR_WRAH(0x0)
      | FB_CSCR_AA_MASK    // auto-acknowledge
   | FB_CSCR_WS(0x0)   // 2 wait states
   | FB_CSCR_BSTR_MASK
   | FB_CSCR_BSTW_MASK
;
    FB->CS[0].CSMR = FB_CSMR_BAM(0x7)  //Set base address mask for 512K address space
      | FB_CSMR_V_MASK    //Enable cs valid signal
;
With this code, read of 8-bit wide data takes 5 FlexBus cycles. However, reference manual (http://www.nxp.com/assets/documents/data/en/reference-manuals/K22P121M120SF7RM.pdf , page 711) states that it should take only 4 FlexBus cycles.
Is it possible to improve performance of FlexBus read in my case?
ラベル(1)
0 件の賞賛
返信
1 返信

749件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

First of all, sorry for the later reply.

Could you check the Flexbus clock frequency setting?

From the K22 reference manual, the FlexBus clock Max. frequency is 50MHz:

pastedImage_1.png

Please check System Clock Divider Register 1 SIM_CLKDIV1[OUTDIV3] bits value, which related to Flexbus clock frequency.


Wish it helps.

Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信