AnsweredAssumed Answered

EBI extension of XPC567XFKIT.

Question asked by Choi yu-rim on Feb 10, 2017
Latest reply on Feb 13, 2017 by David Tosenovjan

Hello!

 

I use the MPC5674 EBI with the MPC567xF-KIT (evaluation board).
This evaluation board currently has a CY7C1338 RAM connected.
 (CY7C1338 = 4Mbit memory i.e. 4-Mbit = 128Kbit×32 = 512kByte)

To control the wij830mj module I extended the wij830mj module to the MPC567xF-KIT. (Wij830mj Ethernet module)
(If you check the data sheet of this (wij830mj) module, you can control it as asynchronous memory type.)
Address(0x2007FFFF) after 512kByte of CY7C1338 RAM, I want to set the register to the area that controls wij830mj.

 

if setting as below,
(I am using the XPC567XFKIT-PinToggleStationery-V0_4 example code.)
1. It means address range is 0x2000_0000 - 0x2007FFFF for CY7C1338.
    /* Base Address: 0x20000000, 32-bit, Mux'd bus */
    EBI.CS[0].BR.R = 0x20000083;
    /* Address Mask: 512KBytes, Zero Wait States */
    EBI.CS[0].OR.R = 0xfff80000;

2. It means address range is 0x2008_0000 - 0x20100000 for wij830mj.
    /* Base Address: 0x20000000, 32-bit, Mux'd bus */
    EBI.CS[1].BR.R = 0x20080083;
    /* Address Mask: 512KBytes, Zero Wait States */
    EBI.CS[1].OR.R = 0xfff00000;

 

Question 1)
Is this the correct address to use for CY7C1338 and wij830mj?

 

Question 2)

Schematic CS part of MPC567xF-KIT (evaluation board).
Through the SRAM_SEL (JP4) connector, D_CS0 will be connected to CY7C1338, and D_CS1 pin will be connected to chip selection of wij830mj module.
Is the chip select setting correct?
If it is correct, D_CS0 is activated when accessing the address of the CY7C1338 area,
When accessing the address of the wij830mj area, is D_CS1 activated?

 

Although I am getting a lot of help from the "External_Bus_Interface_FAQs_draftC"(document)
I do not understand the relationship between EBI Base Registers (EBI_CAL_BR0-3) and EBI Option Registers (EBI_CAL_OR0-3) and D_CS0,1,2,3.


I sincerely look forward to your help with the above questions.

I really appreciate the people who helped me.

 

Thank you.

Outcomes