| |||
| Home > Device Driver > Sample device driver > Memory device initialization | |||
Memory initialization involves writing to the direct_cmd Register. See Direct Command Register. To initialize the mode registers in a memory device you must perform multiple writes to the direct_cmd Register, so that the controller generates the necessary sequence of commands that your specified memory requires.
A typical memory initialization sequence for each memory device is:
Program the direct_cmd Register so that the DMC issues a PRECHARGEALL command.
Set Extended Mode Register.
Set Mode Register.
Program the direct_cmd Register so that the DMC issues a PRECHARGEALL command.
Program the direct_cmd Register so that the DMC issues two AUTO REFRESH commands.
LPDDR device initialization shows a memory initialization example.