MD3331-D64 ETC-unknow, MD3331-D64 Datasheet - Page 71

no-image

MD3331-D64

Manufacturer Part Number
MD3331-D64
Description
Diskonchip Millennium Plus
Manufacturer
ETC-unknow
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MD3331-D64-V3
Manufacturer:
M-SYSTEMS
Quantity:
334
Part Number:
MD3331-D64-V3-X
Manufacturer:
SANDISK
Quantity:
18 135
Part Number:
MD3331-D64-V3-X
Manufacturer:
TI
Quantity:
699
Part Number:
MD3331-D64-V3-X
Quantity:
1 000
Part Number:
MD3331-D64-V3-X
Manufacturer:
M-SYSTEMS
Quantity:
20 000
Company:
Part Number:
MD3331-D64-V3-X
Quantity:
24
Company:
Part Number:
MD3331-D64-V3-X
Quantity:
1 545
Appendix A: Example Code
This appendix provides example code to verify basic DiskOnChip Millennium Plus 32MB operations in the system,
mainly useful at first integration stages.
/*------------------------------------------------------------------------------*/
/*
/*
/* The target of this sequence is to make sure that DiskOnChip Millennium Plus
/* is alive and responds to basic commands.
/*
/* Returns: TRUE if DiskOnChip Millennium Plus responds, otherwise FALSE.
/*------------------------------------------------------------------------------*/
/* Release from Power Down Mode (just in case) by performing 3 consecutive
/* reads from anywhere + 1 from 0x1fff
/* If DiskOnChip Millennium Plus was in Power-Down mode, it is now in Normal mode*/
/* If DiskOnChip Millennium Plus was in any other mode, it remains in that mode.*/
/* Set DiskOnChip Millennium Plus to Reset mode
/* Set DiskOnChip Millennium 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.
/* Check Test Register
71
for(i = 0;( i < 4 ); i++ )
read from offset 0x1fff
Write 0x1c to offset 0x1006
Write 0xe3 to offset 0x1076
Write 0x1d to offset 0x1006
Write 0xe2 to offset 0x1076
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
If ((temp1&0x04) = (temp2&0x04)) return (FALSE)
If ((temp2&0x04) = (temp3&0x04)) return (FALSE)
If (temp1&0x04) != (temp1&0x04) return (FALSE)
Identify DiskOnChip Millennium Plus 32MB
/* to DiskOnChip Control Register */
/* to DiskOnChip Control Register
/* to DiskOnChip Control Confirmation Register */
/* to DiskOnChip Control Confirmation Register */
Data Sheet, Rev. 1.7
DiskOnChip Millennium Plus 16/32/64MByte
93-SR-002-03-8L
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Related parts for MD3331-D64