This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM48L952ZWT: Enabling SDRAM and discrete in/out

Other Parts Discussed in Thread: HALCOGEN

Am I right that HalCoGen enables SDRAM and follow the timing instructions, as HalCoGen does that automatically? I did not see any appropriate tab. I figured HalCoGen would list this setting underneath the main RM48L952ZWT tab.

1.10.2 Enable the SDRAM by writing 0x00004721 to SDRAM Configuration Register (SDCR) 0xFCFFE808. This sets the SDRAM interface to normal mode, 16 bit data bus, CAS latency of 3, four internal SDRAM banks, nine column address bits. Writing this registers causes an automatic initialization of the SDRAM, and it should not be written to or read from for at least 200 micro-seconds.

I saw a reference to DOUT and DIN in the ECLK sub-tab underneath the main RM48L952ZWT tab, however I am not sure that is the right area. Is that where I would make these configuration changes, and if not where?

1.10.3 Enable the discrete input strobe (EMIF_nCS2 which goes to external signal nDSINENA) by writing 0x889244AC to 0xFCFFE810.

1.10.4 Enable the discrete output strobe (EMIF_nCS3 which goes to external signal nDSOUTENA) by writing 0x889244AC to 0xFCFFE814.

  • HI Sarah,

     In HalCoGen there is a EMIF tab. You need to configure EMIF module to interface with SDRAM. See below screenshots. Once configured, HalCoGen will setup EMIF for you. As far as SDRAM timing as shown in the second screenshot you will need to come up with your values based the type of SDRAM you are interfacing with. Please consult your SDRAM device datasheet.

      

      

  • Thanks Charles, what about the Discrete In/Out area.
  • Hi Sarah,
    I think your EE is asking to also setup two asynchronous chip selects; nCS2 and nCS3. In the screenshots I captured, you will also find the EMIF ASYNC2 and EMIF ASYNC3 tabs. You will configure these two tabs for the asynchronous memories. I don't know what is nDSINENA and nDSOUTENA. They are probably the signals of the external asynchronous devices you are interfacing with, correct?
  • Hi Charles,

    nDSINENA and nDSOUTENA are signal names, which expanded, if I read the acronym correctly, is:

    nDSINENA: (active low) DiScrete INput ENAble
    nDSOUTENA: (active low) DiScrete OUTput ENAble

    I am not sure why Enable.

    Do I have to ask the EE for the timing settings?

    Am I correct that I check "Select Strobe Mode"? The EE mentions "discrete input/output strobe", so hence I checked both strobe boxes, but there are quite a few other settings: NOR flash, extended wait, page delay, page size, and all the timing settings.
  • Hi Sarah,

     Please also talk to your EE for asynchronous chip nCS2 the register starts at 0xFCFFE814, not 0xFCFFE810 and nCS3 starts at 0xFCFFE818 not 0xFCFFE814. See the excerpt from the EMIF userguide in the TRM where the address offset for asynchronous 2 configuration register is 0x14.