MD2241-D128-V3 M-Systems Inc., MD2241-D128-V3 Datasheet - Page 42

no-image

MD2241-D128-V3

Manufacturer Part Number
MD2241-D128-V3
Description
Diskonchip Dimm Plus
Manufacturer
M-Systems Inc.
Datasheet
Appendix A: Example Code
This appendix provides example code to verify basic DiskOnChip DIMM Plus operations in the system, mainly
useful at first integration stages.
/*------------------------------------------------------------------------------*/
/*
/*
/* The target of this sequence is to make sure that DiskOnChip DIMM Plus
/* is alive and responds to basic commands.
/*
/* Returns: TRUE if DiskOnChip DIMM Plus responds, otherwise FALSE.
/*------------------------------------------------------------------------------*/
/* Release from Power-Down mode (just in case) by performing 3 consecutive reads
/* from anywhere + 1 from 0x1fff
/* If DiskOnChip DIMM Plus was in Power-Down mode, it is now in Normal mode
/* If DiskOnChip DIMM Plus was in any other mode, it will remain so.
/* Set DiskOnChip DIMM Plus to Reset mode
/* Set DiskOnChip DIMM Plus to Normal mode
/* Verify that DiskOnChip is in Normal mode.
/* Check Chip ID
/* Check toggle bit
/* The toggle bit should toggle on each consecutive read.
42
for(i = 0;( i < 4 ); i++ )
read from offset 0x1fff
Write 0x1c to offset 0x1006 /* to DiskOnChip Control Register
Write 0xe3 to offset 0x1076 /* to DiskOnChip Control Confirmation Register
Write 0x1d to offset 0x1006 /* to DiskOnChip Control Register
Write 0xe2 to offset 0x1076 /* to DiskOnChip Control Confirmation Register
Read from offset 0x1006 into temp
if (temp&0x01) != 1 return (FALSE)
Read from offset 0x1000 into temp
if temp!=0x40 return(FALSE)
Read from offset 0x1046 into temp1
Read from offset 0x1046 into temp2
Read from offset 0x1046 into temp3
Identify DiskOnChip DIMM Plus
Preliminary Data Sheet, Rev. 1.2
DiskOnChip DIMM Plus
94-SR-002-08-8L
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Related parts for MD2241-D128-V3