This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using external RAM on the XC164 development board

Hi,

Has anyone been able to use the external RAM on the Infineon XC16x development board in 16 bit multiplexed mode?

I've wrote a small RAM test application that will read and write all memory, but the external RAM always trips up after a few seconds.

I suspect the timings may be out on this, since it works most of the time, but will fail eventually. I have the following values:

Phase A = 0 cycles
Phase B = 0 cycles
Phase C = 1 cycle
Phase D = 0 cycles
Phase E = 0 cycles
Phase F read = 1 cycle
Phase F write = 0 cycles

Does anyone know a set of timing values that work? The micro is an XC164CS running at 40MHz, and the memory chip is a Samsung K6R4016C1D.

Incidentally, the RAM test program shows the memory working perfectly in non-multiplexed mode. The timings are different for non-multiplexed, but give worse results when used in multiplexed mode.

Any help appreciated!

Thanks,
Paul.

Parents Reply Children
  • I've now managed to get things working in multiplexed mode, and I am also using the SPI on P1H. Thank you for your offer of software but I don't think it will be necessary since we are programming an EEPROM via this SPI. SSC0 is already being used for another purpose.

    As for EBCMOD1, we have this set to 0x001F as per the documentation, to allow P1H to be used as GPIO. Although we haven't tested this GPIO yet, we have got the SPI working so things look good so far.

    Paul.

  • Hi Paul,

    thanks for this information, which is
    usefull to me.
    May I get your startupfile or an exctract concerning the EBC settings ?
    This would be very helpfully to me, since
    I have not yet solved the problem
    to use EBC and P1H as GPIO
    (or alternate function).

    If you would be so kindly,
    please mail it to
    stefan_fricke@rutronik.com

    Best regards and many thanks in advance
    Stefan