K22F FlexBus SRAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

K22F FlexBus SRAM

879 次查看
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 回复

737 次查看
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 项奖励
回复