Other Parts Discussed in Thread: F28M36P63C2, CONTROLSUITE
Hello,
I have a Concerto F28M36P63C2 and I want to use the EPI module in 8-Bit Host Bus mode.
I have based the code on the ControlSuite example "F28M36x/epi_sram_8bit" with some minor alterations, as I need to address two devices separately.
The registers are set up according to the following:
- EPICFG (0x0): 0x12 (Block enabled, MODE=2)
- EPIBAUD (0x4): 0x1 (With this EPI Frq will be 37.5MHz according to example code.)
- EPIHB8CFG (0x10): 0xC1 (ADNONMUX, 3 WR wait states)
- EPIH8CFG2 (0x14): 0x02000000 (WORD=0, CFCFG=0x2)
- EPIADDRMAP (0x1C): 0x15 (ERSZ=0x1, ERADR=0x1, EPSZ=0x0, EPADR=0x1)
Everything looks fine except for one thing: the WR signal goes low at the exact same time the data is written on the data bus. (I am using a logic signal analyser with a sampling period of 2ns.) With a EPI clock at 37.5MHz and 3 wait states I would expect a delay of 160ns. (1/37.5Mhz * 3 * 2).
I must be doing something wrong.
Any ideas anybody?
Anders.