Hello,
I am using the Hercules RM48 HDK, and HalCoGen 03.06.00.
The value of VCLK3 is 80MHz, and, I am setting the following SDRAM parameters:
tRFC = 63ns
[...]
Refresh Period = 64ms
Refresh Cycles = 4096
The resulting value for RR (in register SDRCR) is 31, which means that my parameters have not been used (since it is less than 0x20, see SPNU503 section 17.3.4), and RR will be automatically set to (2 × T_RFC) + 1 = 11.
Is there any reason why HalCoGen is not using the following formula?
RR = fEMIF_CLK × tRefresh Period / ncycles
Thanks,
-Emiliano