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
  • Hi Paul,

    would you please so kindly to inform me,
    if you have success with your setup.

    What I am interested in is especially for
    your EBCMOD1 = 001F setting.

    With this one we have serious problems,
    that's why my is 0000.
    This happens exactly, if we want to use
    P1H pins as GPIO or as alternate function
    pins.

    Thanks in advance
    Stefan
    Have a nice weekend

Reply
  • Hi Paul,

    would you please so kindly to inform me,
    if you have success with your setup.

    What I am interested in is especially for
    your EBCMOD1 = 001F setting.

    With this one we have serious problems,
    that's why my is 0000.
    This happens exactly, if we want to use
    P1H pins as GPIO or as alternate function
    pins.

    Thanks in advance
    Stefan
    Have a nice weekend

Children
  • Hi Stefan,

    Sorry for the delay - I have been away for the last week. I have just returned and I will be looking into this soon. For my project, I want to be able to use the GPIO on P1H. Also, I need the SPI which I think is on P1H as well.

    I'll let you know how things go!

    Paul.

  • Hi Paul,

    I wrote a simple SPI program for the Infineon board, which is using SSC0 on port 3

    If you want I can mail it to you for playing with its code.
    It is quite good documented.

    So you have the possibility to programm the on-board ATMEL EEPROM.

    Stefan

  • 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