App Nand

Download as pdf or txt
Download as pdf or txt
You are on page 1of 30

APPLICATION NOTE

for NAND Flash Memory


(Revision 2.0)

Memory Product & Technology Division


1999. 12. 28

Product Planning & Application Engineering

The Leader in Memory Technology


1
ELECTRONICS

TABLE OF CONTENTS

INTRODUCTION 1. SYSTEM INTERFACING


1-1. NAND Flash Architecture 1-2. Designing for Systems with O/S 1-3. Designing for O/S-less System 1-4. ECC Design Guide 1-5. Development Tool

5. UTILIZING THE DEVICE IN THE SAME SYSTEM DESIGN


5-1. Pin Assignment(4Mb,8Mb,16Mb, 32Mb,64Mb) 5-2. Pin Assignment(128Mb,256Mb) 5-3. Device ID Information 5-4. Addressing Map : 4Mb ~ 256Mb 5-5. Specification Comparison : 4Mb ~ 256Mb 5-6. Upgrading to 512Mb and 1Gb

2. INVALID BLOCK(S) MANAGEMENT


2-1. Identifying Initial Invalid Block(s) 2-2. Management of Additional Invalid Block(s) 2-3. Wear- Leveling Algorithm 2-4. Data Retention 2-5. Effect of P/E Cycling on Performance

6. HARDWARE DESIGN CONSIDERATIONS


6-1. Acceptable Don`t-Care Area in Each Operation 6-2. VccQ/ Vcc Power Configuration 6-3. Data Protection 6-4. R/B : Termination for the R/B Pin

3. PROGRAM/ERASE ALGORITHM
3-1. Erase Algorithm 3-2. Program Algorithm 3-3. Status Read Operation 3-4. Partial Page Program

7. MISCELLANEOUS
7-1. Device Behavior for WP/ Signal 7-2. Device Behavior for Excess Data Input Cycles 7-3. Reset Operation

4. OPERATING WITH COMMANDS


4-1. Prohibition of Unspecified Commands 4-2. Pointer Control for '00H', '01H', '50H 4-3. Device Status after Read/Program/ Erase/Reset and Power-on 4-4. Acceptable Commands after Sequential Input Command of '80H

Product Planning & Application Engineering

The Leader in Memory Technology


2
ELECTRONICS

INTRODUCTION
The need for nonvolatile data Flash Memory storage is ever increasing as the computer systems are shifting toward the mobile domain. Ruggedness, low power consumption, small and light forms are the obvious advantage of Flash-based storage over disk-based technology. As the bit-cost of Flash decreases continuously, the Flash storage is poised to benefit the performance and functionality of portable platforms and equipment. NAND Flash is becoming the core of this Flash disk technology.

1. SYSTEM INTEFACING
This section provides a brief overview of implementing NAND Flash Memory into the system. It covers the following. NAND Flash Architecture Designing for systems with O/S Designing for O/S-less systems ECC design guide 1-1. NAND Flash Architecture NAND Flash is optimized for storage applications. 16 neighboring cells are serially connected without any contact area in-between to offer high density. Electron tunneling is used for both programming and erasing, providing low power consumption. This cell structure provides high scalability, making NAND Flash as the leader in the capacity race. Because the electron tunneling occurs across the whole channel area of cell, charge trapping density per unit area is lower than other Flash technologies, resulting in superior endurance in Program/Erase cycles. Programming and reading are performed on a sector or a page unit of 512 byte to emulate the popular sector size. 1.2 Designing for systems with O/S Samsungs NAND Flash provides the highest performance and the most cost-effective solution for solid-state mass storage. When the host system has an operating system , the Flash disk operates as one of standard peripheral components and thus be connected to a host CPUs system bus through I/O interface like a IDE-disk drive. Since the host sees the Flash disk no different from hard disk drive, the native file system such as FAT (File Allocation Table) resides on the host operating system and a translator of host requests to the Flash disk is needed. The translator, embedded into the firmware of a controller directly interfacing Flash Memory, is commonly called Flash-Translation-Layer (FTL) and includes the following features. Converts the sector addresses addressed by the host to physical addresses of Flash Memory Converts host requests into the programming/erasing algorithms of associated Flash technology Detects the error and replaces the encountered bad sectors with the good by mapping them out
Product Planning & Application Engineering

The Leader in Memory Technology


3
ELECTRONICS

NOR-type Flash requires a very long erasing time. Block-erasure of NOR-type Flash takes about several-hundreds of millisecond while less than 2 ms with NAND Flash. To reduce the time overhead, FTL for NOR-type Flash normally includes the background erasure and garbage collection. When data of a block needs to be updated, the block is copied to another free or erased block with the updates. The new block is mapped as valid and the old as deleted. The deleted blocks are not actually erased. As the remaining erased blocks are decreased and below the pre-defined limit, the deleted blocks need to be reclaimed as free by being erased. Since the erasing takes too much time, it is processed as background operation when the controller is free from other tasks. This reclaiming process is called garbage collection. Because of its fast erasing time, the garbage-collection is not usually used with NAND Flash unless a very high performance is required. Figure 1-1 shows a typical block diagram of Flash disk as I/O device. FIG. 1-1 TYPICAL BLOCK DIAGRAM of FLASH DISK as I/O DEVICE

FSB Memory Processor

System Controller PCI Bus South Bridge

Host Bus Master-IDE Slave-IDE

Controller (KS32P6632)

NAND Flash components

Controller (KS32P6632)

1.3 Designing for O/S-less systems When the Flash Memory is used as storage disk for embedded systems, FTL incorporating a complete file system is necessary. The translation table from logical to physical address - necessary for FTL with O/S environment - is not necessary. Thus FTL could be in much smaller footprint. Figure 1-2 is a comparison in architecture of Flash file system between for O/S system and O/S-less.

Product Planning & Application Engineering

The Leader in Memory Technology


4
ELECTRONICS

FIG. 1-2 FILE SYSTEM COMPARISON for O/S and O/S-less SYSTEM

APPLICATION Open/ Close File Read/ Write File Find/ Delete File NATIVE FILE SYSTEM Read/ Write Sector FTL (Flash Translation Layer) Flash Socket Control FLASH MEDIA

APPLICATION Open/ Close File Read/ Write File Find/ Delete File FTL (Flash Translation Layer) Flash Socket Control

FLASH MEDIA

( O/S System )

( O/S-less System )

For its implementations, host MCU interfaces Flash directly and executes FTL using the working RAM. The FTL is stored in the firmware ROM. Figure 1-3 illustrates a typical structure of Flash disk in embedded systems. FIG. 1-3 FLASH DISK TYPICAL STRUCTURE in EMBEDDED SYSTEM ROM FTL CPU Main Code Working RAM

Host Bus

I/O Logic I/O Logic NAND Flash components

May include ECC for high performance, or altogether be merged into other ASIC

Product Planning & Application Engineering

The Leader in Memory Technology


5
ELECTRONICS

The interface and associated timings for NAND Flash and the features of FTL need to be customized depending on the CPU performance and system requirements. NAND Flash requires only eight I/Os and five control clocks for operation. Standard WE/ and OE/ available from MCU may be also easily used for WE/ and RE/ of NAND Flash. CE/, CLE and ALE may be controlled by spare addresses. Because CE/ may be inactive during the sequential data-loading or burst-reading, interleaving between NAND Flash and other memory devices can be easily implemented. Spare 16 bytes of each page of NAND Flash can be utilized for keeping block status information such as good or bad status of each page, ECC parity and the number of P/E cycles. FTL for NAND Flash can be developed by system developers to tailor the system need or can be purchased from several companies including from M-Systems, Phoenix Technologies and TokyoElectron Device. 1.4 ECC Design Guide To ensure highly reliable Flash disk, ECC is required for NAND Flash. One bit error correction per each page or sector would serve the purpose given the failure modes of long-term life test. Two types of failures could occur : write-failure or read-failure. Writefailure is the case when the programming of a page or erasing of a block returns the failure status. This is easily detected by checking the write status bit from Flash. Readfailure is the case when the written data changes after the successful writing. The failure mode is single bit error, mostly due to leakage of the oxide surrounding floating gate of cell. Hamming code ECC is recommended to recover the error. If the target system has the right performance, the algorithm can be implemented in software. A reference algorithm can be found in the Samsung Flash web-site. Since it only requires a few thousand gates, ECC may be integrated into other ASIC. A recommended block diagram is shown in Figure 1-4 where ECC block interfaces host MCU in parallel with NAND Flash, providing minimal footprint and flexibility for supporting multiple NAND Flash chips. The operating timing diagram is shown in Figure 1-5 and 1-6. VHDL model of this reference architecture may be provided by Samsung. In addition, an ASIC for this ECC is also available from Samsung. FIG. 1-4 ECC BLOCK DIAGRAM NAND Flash MCU

ECC Chip ECC chip executes only parity generation and Flash/ SmartMedia is directly controlled by MCU.
Product Planning & Application Engineering

The Leader in Memory Technology


6
ELECTRONICS

FIG. 1-5 OPERATING TIMING DIAGRAM (PROGRAM)


CLE ALE

CE/ WE/

RE/
256Byte 3Byte Fetch Parity Activate ECC 256Byte Data loading 3Byte Fetch Parity 16Byte Spare Data 10H

I/O

80H

Add

Activate ECC

Data loading

Read Parity from ECC Chip

Read Parity Program Parity from ECC Chip to Flash Memory

FIG. 1-6 OPERATING TIMING DIAGRAM (READ)


CLE ALE CE/ WE/ RE/

256Byte I/O
00H Add Activate ECC Data Output

3Byte
Fetch Parity Activate ECC

256Byte
Data Output

3Byte
Fetch Parity

16Byte
Spare Data

Read Parity from ECC Chip

Read Parity Read from ECC Chip Original Parity from Flash

1.5 Development Tool In order to help development of the software to be used in a system, Samsung is providing ISA board and sample source code which can control a Flash Memory in basic operations such as erase, program and read. For the details, please refer to the Flash section of Samsung`s web site (www.intl.samsungsemi.com) which branched to memory\flash\application note\available software.
Product Planning & Application Engineering

The Leader in Memory Technology


7
ELECTRONICS

2. INVALID BLOCK(S) MANAGEMENT


The SAMSUNG NAND Flash may contain invalid blocks. The maximum number of invalid blocks is 3 to 35 depending on the device density(Refer to the Data Sheet). The system allowing imperfect memory cells is to maximize manufacturing yield and minimize the die costs. The devices with invalid blocks have the same quality levels as devices with all valid blocks and have the same all AC and DC characteristics. The system designer must be able to mask out the invalid block(s) from address mapping. An invalid block(s) do not affect the performance of valid block(s) because it could be isolated from the bit line and the common source line by a select transistor. 2-1. Identifying Initial Invalid Block(s) All device locations are erased(FFh) except locations where the invalid block information is written prior to shipping. Since the invalid block information is also erasable in most cases, it is impossible to recover the information once it has been erased. Therefore, the system must be able to recognize the invalid block(s) based on the original invalid block information and create the invalid block table via the following suggested flow chart(Fig.2-1). Any intentional erasure of the original invalid block information is prohibited. FIG. 2-1 FLOW CHART TO CREATE INVALID BLOCK TABLE
Start

Set Block Address to 0

Increment Block Address

For the 1st and the 2nd page

Check `FFh` ?

No

Create(or update) invalid block(s) table

Yes No

Last Block ?

Yes End

Product Planning & Application Engineering

The Leader in Memory Technology


8
ELECTRONICS

2-2. Management of Additional Invalid Block(s) Failure Modes The bad blocks other than those identified by factory can be increased at the customer side. The system should be designed to replace some additional failing blocks with the reserved blocks. As described in the datasheet, the error-detection mechanism is needed for both write (program/erase) and read. After program or erase, the cells must be verified to detect any write-related failure. The following possible failure modes should be considered when implementing a highly reliable system. TABLE 2-1 FAILURE MODE AND COUNTERMEASURE Failure Mode
Erase Failure Write Program Failure Read Single Bit Failure Status Read after Program Verify ECC Block Replacement ECC Correction

Detection and Countermeasure sequence


Status Read after Erase Block Replacement

Countermeasure Erase Failure When an error occurs after an erase operation, prevent future accesses to this bad block by creating a table within the system or by using other appropriate scheme. Program Failure (Page) FIG. 2-2 BLOCK REPLACEMENT DURING OPERATION
error occurs

When an error happens in block A,


Block A try to reprogram the data into Buffer memory

another block B by loading it from an external buffer. Then, prevent further system access to block A by creating a 'Bad Block' table or other appropriate scheme. Block B

Program Failure (Single Bit) After write, a single bit can be changed due to the loss of charge, which should be detected and corrected by ECC. Regarding ECC, we generally recommend single bit correction for a sector (512bytes). Sample ECC based on Hamming Code is available. ECC : Error Correcting Code Hamming Code etc. Example : 1 bit correction & 2 bit detection

Product Planning & Application Engineering

The Leader in Memory Technology


9
ELECTRONICS

2-3. Wear-Leveling Algorithm In NAND flash memory, erase/ program operation is accomplished by the F-N (Fowler Nordheim) tunneling algorithm using high voltage of about 20V. Erase/ program operation by the high voltage can cause oxide degradation and a failure if it is repeated without limit. By this reason, the number of program/ erase cycling(called as endurance) is guaranteed up to 1E6 cycles if the system adopts an ECC and a real time mapping algorithm. The designer should be careful not to exceed the endurance. Most applications would not need this much endurance. For write-intensive applications, a popular wear-leveling algorithm like monitoring erase/ program cycles per block or spreading write algorithm may be utilized. Updating data of a block into a physically different block with the new link list also help alleviates repetitive cycling. FIG. 2-3 WEAR-LEVELING RAM Update page data

Block 5 Block 6 Block 7 Block 8 Block 9

002 Cluster 005 Cluster Bad Block Empty Block 003 Cluster

002 Cluster Erased

Copy updated data to the empty block

Bad Block 005 Cluster(new) 003 Cluster

The controller should monitor each block counter not to use specific blocks repeatedly.

2-4. Data Retention Data retention, in flash memory, is classified by two modes. One is pure data retention without any bias and the other is read retention without erase/ program operation. Pure data retention of NAND Flash products is guaranteed for more than 10 years as documented by HTS (High Temperature Storage Test) data contained in Samsung`s qualification report. Repetitive reading, without erasing the blocks, hardly affects the data integrity. The number of read retention test is verified up to 1E6 cycles during qualification. The readout cycles may be reduced with high density products due to the excessively long test time. For the details, please refer to the qualification report.

Product Planning & Application Engineering

The Leader in Memory Technology


10
ELECTRONICS

2-5. Effect of P/E Cycling on Performance NAND Flash goes through internal qualification process with endurance up to 1E6 cycles. The erase time does not change at all regardless of endurance up to 1E6 cycles. FIG. 2-4 Cell Vth Shift vs. No of P/E Cycles 1.5 1.0 0.5 0.0 -0.5 Cell Vth (V) -1.0 -1.5 -2.0 -2.5 -3.0 -3.5 1.E0 1.E1 1.E2 1.E3 1.E4 1.E5 1.E6 1.E7 Erased Cell Programmed Cell

Number of P/E Cycles FIG. 2-5 Program/ Erase Time Variation vs. No of P/E Cycles 1.E+4

1.E+3 Time ( uS)

Erase Time

1.E+2 Program Time

1.E+1 1.E+0

1.E+2

1.E+4

1.E+6

Number of P/E Cycles


Product Planning & Application Engineering

The Leader in Memory Technology


11
ELECTRONICS

3. PROGRAM/ERASE ALOGORITHM
3-1. Erase Algorithm
START WRITE 60H

FIG. 3-1 ERASE ALGORITHM

WRITE BLOCK ADD. ( 2 CYCLE ) WRITE D0H

WRITE 70H

SR 6 = 1 ? or R/B =1 ? YES SR 0 = 0 ? YES ERASE COMPLETED

NO

ERASE ERROR If erase operation results in an error, map out the failing block and replace it with another block.

3-2. Program Algorithm


START WRITE 80H WRITE ADD. ( 3 CYCLE ) WRITE DATA ( 0 to 527 BYTE ) WRITE 10H VERIFY DATA WRITE 70H YES PROGRAM COMPLETED PROGRAM ERROR : If program operation results in an error, map out the block including the page in error and copy the target data to another block If ECC is used, this verification Operation is not needed WRITE 00H

WRITE ADDRESS

WIAT FOR TR TIME

NO

PROGRAM ERROR

NO

SR 6 = 1 ? or R/B =1 ? YES

PROGRAM ERROR

NO SR 0 = 0 ? YES

FIG. 3-2 PROGRAM ALGORITHM

Product Planning & Application Engineering

The Leader in Memory Technology


12
ELECTRONICS

3-3. Status Read Operation The device automatically implements the execution and verification of the program and erase operations. The status read function is used to monitor the Ready/Busy status of the device, determines the pass/fail result of a program or erase operation. The device status is can be read through the I/O port using the RE/ clock after a 70H command input. The Pass/Fail status on I/O 0 is only valid when the device is in the ready state. The resulting information is outlined in Table 3-1. TABLE 3-1 STATUS REGISTER DEFINITIION
Status Register I/O0 I/O1 I/O2 I/O3 I/O4 I/O5 I/O6 I/O7 Device Operation Write Protect 0 : Busy Reserved for Future use Status Program/Erase Definition 0 : Successful Program / Erase(Pass) 1 : Error in Program / Erase(Fail) 0 0 0 0 0 1 : Ready

0 : Protected 1 : Not Protected

Command CE/ WE/ R/B

00H

70H Status read command

00H

N address RE/

Data output N N+1

FIG. 3-3 STATUS READ TIMING

S.R.6=0

The Ready/Busy(S.R.6) status can be read by inputting the status read command 70H during the Read Mode. Once the device is set to the status Read Mode after '70H command input, the device does not return to the read mode. In order to restore the device to the read mode after the device changes from Busy to Ready state, the read command 00H without address input must be written. In this case, the data output starts from address N. The status bit "0" indicates that the internal verification circuit did not find error in programming. But, the internal verification circuit inside Flash detects only "1"s that are not successfully programmed to "0". If a cell is to retain the erase state of "1" but changed to 0" by any reason, this error is not detected by the internal circuit. This is called program-disturb, very rare cases. If it occurs, it is single bit error in a page. Therefore, if single bit error-detection and correction (ECC) is adopted, compare after programming is not needed. And in case of voice or graphic application, single bit error may be ignored : so for those application, neither comparing nor ECC is needed. However, if the data integrity is very critical, comparing is recommended, otherwise ECC should be used.
Product Planning & Application Engineering

The Leader in Memory Technology


13
ELECTRONICS

An application example with multiple devices is shown in Figure 3-4 : FIG. 3-4 STATUS READ TIMING APPLICATION EXAMPLE
CE 1 CE 2 CE 3 CE N

CLE ALE WE/ RE/ I/O R/B

Device 1

Device 2

Device 3

Device 4

R/B CLE ALE WE/

Busy

CE1/

CEN/

RE/

I/O 70H 70H

Status on Device 1

Status on Device N

System Design Note : If the Ready/Busy pin signals of multiple devices are commonwired as shown in the diagram, the status read function can be used to determine the status of each individually selected device.

Product Planning & Application Engineering

The Leader in Memory Technology


14
ELECTRONICS

3-4. Partial Page Program The flash memory allows a page to be divided into several segments. The number of segmentation is limited and varies by product densities as follows : FIG. 3-5 PARTIAL PAGE PROGRAM for 4Mb/ 16Mb/ 32Mb/ 64Mb
1st programming 2nd programming
Data pattern 1 Data pattern 2

1 or may be skipped

10th programming Result


Data pattern 1 Data pattern 2

Data pattern 10 Data pattern 10

Regarding the data for unprogrammed or previously programmed page segments, there are two ways to take care of this. First is to input 1 for all the other bytes than the currently selected segment. Second is to skip this dummy data input cycles by specifying the column address to the start of selected segment. Upon the command input of 80H(Sequential Data Input command) the internal circuitry of NAND Flash sets the data of all page buffers to 1 by default. The page buffers with no data input keep the 1 state.Therefore only the bytes to be programmed need to be loaded and the others bytes outside data pattern do not need to be loaded,with the data of 1. If the start column address is higher than 255(as explained in Section 3-2),an appropriate pointer command should be inputted before 80H command. FIG. 3-6 PARTIAL PAGE PROGRAM for 128Mb/ 256Mb Main Array ( 512B Column)
1st Data pattern 1 Programming 2nd Programming 3rd Programming 4th Programming 5th Programming Result
Data pattern 1 Data pattern 2 Data pattern 3 Data pattern 4 Data pattern 2

Spare Array ( 16B Column) 1 or may be skipped

Data pattern 3

Data pattern 4 Data pattern 5

Data pattern 5

The number of consecutive partial page programming operation within the same page without an intervening erase operation should not exceed 2 for main array and 3 for spare array. If some parts of spare array were used during the main cell being programmed, the additional NOP of spare array should be restricted by 2.
Product Planning & Application Engineering

The Leader in Memory Technology


15
ELECTRONICS

4. OPERATING WITH COMMANDS


4-1. Prohibition of Unspecified Commands The operation commands are listed in Table 4-1. Input of a command other than those specified in Table 4-1 is prohibited. Stored data may be corrupted if an unspecified command is entered during the command cycle. Table 4-1 COMMAND SETS
Function Sequential Data Input Read 1 Read 2 Read ID Reset Auto Page Program Auto Block Erase Read Status 1st. Cycle 80H 00/01H 50H 90H FFH 10H 60H 70H
(1) (2)

2nd. Cycle D0H -

Acceptable Command during Busy State

Note : 1) The 00H Command defines starting Address on the 1st half of Registers. The 01H Command defines starting Address on the 2nd half of Registers. After data access on the 2nd half of register by the 01H command, the status pointer is automatically moved to the 1st half register (00H) on the next cycle. 4Mb,8Mb and 16Mb NAND Flash do not support 01H command. 2) The 50H command is valid only When the SE/ is low level.(4Mb NAND Flash do not support 50H command.)

4-2. Pointer Control for '00H', '01H', '50H' Three Read Modes are available with 32Mb~256Mb to set the destination of the pointer in either the main memory area of a page or the spare area. The pointer can be designated at any location between 0 and 255 in Read Mode 1 and between 256 and 511 in Read Mode 2 and between 512 and 527 in Read Mode 3. Figure 4-1 shows the block diagram of pointer operation for 32Mb,64Mb, 128Mb and 256Mb NAND Flash. FIG. 4-1 POINTER CONTROL : 32Mb~256Mb
0 A(00H) 255 256 B(01H)* 511 512 527 A,B : Main Memory Area C : Spare Area *Because 01H command is temporary, the device is set to 00H at the next page sequential read.

C(50H)

00H 01H 50H

Pointer control

Product Planning & Application Engineering

The Leader in Memory Technology


16
ELECTRONICS

The pointer is set to region 'A' by the '00H' command and to region B by the 01H command, and to region 'C' by the '50H'command. The '00H command must be input to set the pointer back to region 'A' when the pointer is in region 'C'. FIG. 4-2 EXAMPLE FOR POINTER SET : 32Mb~256Mb
50H C area 00H A area 80H Add DIN Start point A area 00H A area 01H B area 80H Add DIN Start point B area 00H A area 50H C area 80H Add DIN Start point C area 10H C area 80H Add DIN Start point C area 10H B area 80H Add DIN Start point A area 10H C area 10H A area 80H Add DIN Start point A area 10H A area 10H A area

Operation
Program/Erase

Pointer status after operation


With previous 00H, Device is set to 00H Plane With previous 01H, Device is set to 00H Plane (1) With previous 50H, Device is set to 50H Plane 00H Plane(A area) 00H Plane(A area)

Reset Power Up

Note 1 ) 01H command is valid just one time when it is used as a pointer for program/erase.

8Mb and 16Mb do not have 01H pointer and 4Mb has no pointer. Figure 4-3 shows the block diagram of pointer operation for 8Mb and 16Mb NAND Flash. FIG. 4-3 POINTER CONTROL : 8Mb,16Mb
0 A(00H) 255 256 263 A: Main Memory Area B : Spare Area B(50H)

00H 50H Product Planning & Application Engineering

Pointer control

The Leader in Memory Technology


17
ELECTRONICS

4-3. Device Status after Read/Program/Erase/Reset and Power-on TABLE 4-2. STATUS DESCRIPTION Execution Command Read 1(00H or 01H) Read 2 (50H) Program Erase Reset Power on Device Status after executed CMD. Read 1 (00H Plane) * (1) Read 2 (50H Plane) Wait * Wait * Wait *
(2) (2) (2)

Read 1(00H Plane)

*(1) : 01H Command is valid just one time when it is used as a pointer for program/erase. *(2) : After execution of Program/Erase/Reset command, '00H' '01H' or '50H' read commands are required to select either Read 1 or Read 2 mode.

4-4. Acceptable Commands after Sequential Input Command of '80H' After the sequential input command (80H) input, do not input any commands other than the program execution command (10H) or the reset command (FFH) during programming. FIG. 4-4 RIGHT USING OF PROGRAMMING COMMAND
80H FFH

WE/ Address Input RB/

If any commands other than '10H' are inputted, the program operation is not performed.
80H XX Other command 10H Programming cannot be executed.

In case of this operation, FFH(Reset) command is needed.

Product Planning & Application Engineering

The Leader in Memory Technology


18
ELECTRONICS

5. UTILIZING THE DEVICE IN THE SAME SYSTEM DESIGN


5-1. Pin Assignment(4Mb,8Mb,16Mb,32Mb,64Mb) SAMSUNG has been manufacturing the 4Mb,8Mb,16Mb, 32Mb and 64Mb NAND Flash in the same package, 44(40) TSOP 2. It allows the system developer to utilize the 4Mb~64Mb NAND devices in Flash design boards without any hardware changes. The following is a pin assignment comparison between the SAMSUNG`s 4Mb~64Mb NAND Flash devices. FIG. 5-1 PIN ASSIGNMENT for 4Mb,8Mb,16Mb,32Mb,64Mb

4Mb,8Mb,16Mb 32Mb & 64Mb


Vss CLE ALE WE/ WP/ NC NC NC NC NC 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 Vcc CE/ RE/ R/B SE/* GND NC NC NC NC NC

44-TSOP II

NC NC NC NC NC I/O0 I/O1 I/O2 I/O3 Vss

NC NC NC NC NC I/O7 I/O6 I/O5 I/O4 Vcc

SE* :Low Level Input : 528 Byte/Page Operation High Level Input : 512 Byte/Page Operation

Product Planning & Application Engineering

The Leader in Memory Technology


19
ELECTRONICS

5-2. Pin Assignment(128Mb ~ 256Mb) FIG. 5-2 PIN ASSIGNMENT for 128Mb ~ 256Mb N.C N.C N.C N.C N.C SE/ R/B RE/ CE/ N.C N.C Vcc Vss N.C N.C CLE ALE WE/ WP/ N.C N.C N.C N.C N.C 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 N.C N.C N.C N.C I/O7 I/O6 I/O5 I/O4 N.C N.C N.C Vcc Vss N.C N.C N.C I/O3 I/O2 I/O1 I/O0 N.C N.C N.C N.C

48-TSOP I -1220F

5-3. Device ID Information TABLE 5-1. DEVICE ID


Density 4Mb 8Mb 16Mb 32Mb 64Mb 128Mb 256Mb SAMSUNG 3.3V A4H EAH E3H E6H 5.0V A4H 64H E5H 2.7V~3.6V E6H 73H 75H 2.7V~5.5V A4H 6EH EAH E3H -

Device Part Number => 3.3V : KM29V ~, 5.0V : KM29N ~, 2.7V~3.6V : KM29U ~, 2.7V~5.5V : KM29W ~ Device ID of 256Mb and beyond may be changed according to their feature.
Product Planning & Application Engineering

The Leader in Memory Technology


20
ELECTRONICS

5-4. Addressing Map : 4Mb ~ 256Mb The address map for the 4Mb ~ 256Mb devices are shown in table 5-2 : TABLE 5-2. ADDRESS MAP for 4Mb ~ 256Mb - 4M Flash
I/O0 1st Cycle 2nd Cycle 3rd Cycle A0 A8 A16 I/O1 A1 A9 A17 I/O2 A2 A10 A18 I/O3 A3 A11 X* I/O4 A4 A12 X* I/O5 A5 A13 X* I/O6 A6 A14 X* I/O7 A7 A15 X*

Col. Add.(A0~A4) Frame Add.(A5~A6) Row Add.(A7~A11) Block Add.(A12~A18)

X* : Can be High or Low.

- 8M,16M Flash
I/O0 1st Cycle 2nd Cycle 3rd Cycle A0 A8 A16 I/O1 A1 A9 A17 I/O2 A2 A10 A18 I/O3 A3 A11 A19 I/O4 A4 A12 A20 I/O5 A5 A13 X* I/O6 A6 A14 X* I/O7 A7 A15 X*

Col. Add.(A0~A7) Row Add.(A8~A11)

8M 16M
8M Block Address : A12 ~ A19(A20 : X*), 16M Block Address : A12 ~ A20 X* : Can be High or Low.

- 32M,64M,128M,256M Flash
I/O0 1st Cycle 2nd Cycle 3rd Cycle A0 A9 A17 I/O1 A1 A10 A18 I/O2 A2 A11 A19 I/O3 A3 A12 A20 I/O4 A4 A13 A21 I/O5 A5 A14 A22 I/O6 A6 A15 A23 I/O7 A7 A16 A24

Col. Add.(A0~A7)

32M 64M 128M 256M


32M Row Address : A9 ~ A12, 32M Block Address : A13 ~ A21(A22 ~ A24 : X*) 64M Row Address : A9 ~ A12, 64M Block Address : A13 ~ A22(A23, A24 : X*) 128M Row Address : A9 ~ A13, 128M Block Address : A14 ~ A23(A24 : X*), 256M Row Address : A9 ~ A13, 256M Block Address : A14 ~ A24 A8 : Initially set to "Low" or "High" by the 00H or 01H Command Product Planning & Application Engineering

The Leader in Memory Technology


21
ELECTRONICS

5-5. Specification Comparison : 4Mb ~ 256Mb TABLE 5-3. SPECIFICATION COMPARISON for 4Mb ~ 16Mb
4Mb Page size Organization Block size Number of page per block Operating voltage Package tPROG Main characteristics tBERS tR Cycle time 32 Byte(Frame size)* 4K Byte 32 pages 3.3V,5V,2.7V~5.5V 8Mb (256 + 8) Byte (4K + 128) Byte 16 pages 2.7V~5.5V 16Mb (256 + 8) Byte (4K+128 ) Byte 16 pages 3.3V,5V,2.7V~5.5V

44 (40) Pin 400 mil Width 0.8mm Pitch TSOP Type II 0.5 ms Typ. 6.0 ms Typ. 15 us Max. 120 ns Min. 0.25 ms Typ. 2.0 ms Typ. 10 us Max. 80 ns Min. 0.25 ms Typ. 2.0 ms Typ. 10 us Max. 80 ns Min.

Note * : 1 Page = 4 Frames = 128 Byte

TABLE 5-4. SPECIFICATION COMPARISON for 32Mb ~ 256Mb


32Mb Page size Organization Block size Number of page per block Operating voltage Package tPROG Main characteristics tBERS tR Cycle time (512 + 16) Byte (8K + 256) Byte 16 pages 3.3V,5V,2.7V~5.5V 64Mb (512 + 16) Byte (8K + 256) Byte 16 pages 2.7V~3.6V 128Mb/256Mb (512 + 16) Byte (16K+512 ) Byte 32 pages 2.7V ~ 3.6V 48 TSOP I 0.2 ms Typ. 2.0 ms Typ. 10 us Max. 50 ns Min.

44 (40) Pin 400 mil 0.8mm Pitch TSOP Type II 0.25 ms Typ. 2.0 ms Typ. 10 us Max. 50 ns Min. 0.2 ms Typ. 2.0 ms Typ. 7 us Max. 50 ns Min.

Product Planning & Application Engineering

The Leader in Memory Technology


22
ELECTRONICS

5-6. Upgrading to 512Mb ~ 1Gb All for 256Mb except following items, hardware and software conditions, is effective in 512Mb to 1Gb flash memory. TABLE 5-5. EXLPANSION for 256Mb/1Gb - Address Map
I/O0 1st Cycle 2nd Cycle 3rd Cycle 4th Cycle 512Mb 1Gb A0 A9 A17 A25 I/O1 A1 A10 A18 A26 I/O2 A2 A11 A19 I/O3 A3 A12 A20 I/O4 A4 A13 A21 I/O5 A5 A14 A22 I/O6 A6 A15 A23 I/O7 A7 A16 A24

A8 : Initially set to "Low" or "High" by the 00H or 01H Command

- Device ID
512Mb ID 76h 1Gb 79h

Product Planning & Application Engineering

The Leader in Memory Technology


23
ELECTRONICS

6. Hardware Design Considerations


6-1. Acceptable Don`t-Care Area in each Operation The device allows any don`t-care states during read, program and erase operation as follows. Read Operation
CLE CE/ WE/ ALE RE/ R/B I/O 0~ 7 00H Start Add. (3Cycle) Data Output (Sequential) don`t-care

FIG. 6-1 DON`T CARE AREA

Program Operation
CLE CE/ WE/ ALE

don`t-care

RE/ tPROG R/B I/O 0~ 7 80H Add. Input Data Input don`t-care 10H

Block Erase Operation


CLE CE/ WE/ ALE RE/ tBERS R/B I/O 0~ 7 60H Add. Input D0H

70H

Dout

Dout

Product Planning & Application Engineering

The Leader in Memory Technology


24
ELECTRONICS

6-2. VccQ/Vcc Power Connecting The NAND Flash can be utilized on either 3.3V or 5.0V interface by connecting 3.3V or 5.0V power supply on the VccQ. The VccQ for I/O interface power line is electrically isolated from main chip's power line. It is not required to shift logic level between the 5V system and 3.3V NAND Flash. The Vcc power line has to be connected to 3.3V power supply on the system side. If system Vcc could change between 3.3V and 5V depending on its host system power, wide range products(2.7V~5.5V) available from 4Mb ~ 32Mb NAND Flash can be proper choices to eliminate DC-DC converter. Some densities and generations do not support 5V I/O interface. To get exact information for a specific product, refer to the specifications on Flash section of Samsung`s web-site. FIG. 6-2 POWER CONNECTING If System VCC=3.3V System VCC(3.3V)

VCC

VCCQ

VCC

MCU

NAND Flash

If System VCC=5V System VCC(5V)


DC/DC

3.3V
VCC VCCQ VCC

MCU

NAND Flash

System VCC(5V) 3.3V


DC/DC

VCC

VCC

MCU

NAND Flash

Product Planning & Application Engineering

The Leader in Memory Technology


25
ELECTRONICS

VccQ/Vcc Power Start Up Sequence When the system is started up, Flash device may be powered with each of VccQ and Vcc at different instant. At this case, DC power under 20mA range may be consumed until the power reach their final level. It is recommended to start each Vcc and VccQ power simultaneously. FIG. 6-3 POWER SEQUENCE

Vcc VccQ DC power consumed

Vcc VccQ DC power consumed

Vcc VccQ No DC path occurred

6-3. Data Protection NAND Flash is designed to offer protection from any involuntary program/ erase during power transitions. An internal voltage detector disables all functions whenever Vcc is below about 2V. WP/ pin provides hardware protection and is recommended to be kept at VIL during power-up and power down as shown following figure. The 2step command sequence for program/ erase provides additional software protection. FIG. 6-4 DATA PROTECTION ~ 2.5V Vcc WP/ VIL AC Waveform for Power Transition VIH ~ 2.5V

Product Planning & Application Engineering

The Leader in Memory Technology


26
ELECTRONICS

6-4. R/ B : Termination for the Ready/Busy Pin A pull-up resistor needs to be used for termination because the Ready/Busy buffer consist of an open drain circuit. FIG. 6-5 READY/BUSY SIGNAL SIMULATION
Vcc R Device R/B CL

Ready

Vcc 2.0V 0.8V Busy tr

Vss

tf

1.5us
4.25

Vcc=3.3V Ta=25'C CL =100pF tf


4.23 4.22 4.21

5ns tf 4ns Falling time (ns)


ELECTRONICS

tr 1.0us Rising time (ns) 0.5us

tr
0.096

0.189

0.290 0.381

3ns

1K

2K

3K

4K

R:(ohm)

Falling time(tf) may vary a little by device. We recommend that you use this data as a reference when selecting a resistor value.

Product Planning & Application Engineering

The Leader in Memory Technology


27

7. Miscellaneous
7-1. Device Behavior for WP/ Signal Erase and program operations are compulsively reset if WP/ goes low when the command sets are given as following Fig. 7-1 and 7-2. FIG. 7-1 WP/ GOES LOW DURING COMMAND INPUT Program Operation I/O WP/ Program operation does not start Erase Operation I/O WP/ Erase operation does not start Read Operation I/O WP/ Read operation can be executed normally regardless of WP/ status. 00h Add1 Add2 Add3 60h D0h I/O WP/ Erase operation start normally 60h D0h 80h 10h I/O WP/ Program operation start normally 80h 10h

FIG. 7-2 WP/ GOES LOW DURING ERASE/PROGRAM OPERATION Timing Diagram Erase Program R/B WP/ Compulsive Reset The previous operation is aborted even if WP/ returns to the high state and the device is ready for the next command.
Product Planning & Application Engineering

D0h 10h

The Leader in Memory Technology


28
ELECTRONICS

7-2. Device Behavior for Excess Data Input Cycles In erase/program/read operation, the extra data are ignored if extra data are given as following Fig. 7-3. FIG. 7-3 EXCESS DATA INPUT Read
ALE I/O 00H Add1 Add2 Add3 Add4 Add5

Ignored (~ 256Mb) Ignored (512Mb ~ )

Programming (Address Input)


ALE I/O 80H Add1 Add2 Address input Add3 Add4 Add5

Programming (Data Input)


WE/

Data input Ignored (~ 256Mb) Ignored (512Mb ~ )

ALE 80H I/O Address Data 528 Ignored


D0 D1 D2 D527 D528 D529

10H

Instead of 528 toggles with 32Mb and beyond, 8Mb and 16Mb NAND Flash function the same way after 264 toggles.

Erase
ALE I/O 60H Add2 Add3 Add4 Add5 D0H

Block Address input Ignored (~ 256Mb) Ignored (512Mb ~ )

Product Planning & Application Engineering

The Leader in Memory Technology


29
ELECTRONICS

7-3. Reset Operation Reset mode stops all operations compulsorily. For example, in the case of Program or Erase operation, the regulated voltage is discharged to 0 volts and the device will go to the wait state. The address and data registers are set after a reset as follows. Address Register : All '0 Data Register : All '1 Operation Mode : Wait State The response after 'FFH' reset command input during each operation is as follows : FIG. 7-4 RESET OPERATION (1) In the case that reset command is input during programming.
80H Internal Vpp R/B About 10us 10H FFH 00H

(2) In the case that reset command is input during erasing.


D0H Internal Vpp R/B About 500us FFH 00H

(3) In the case that reset command is input during read operation.
00H R/B About 5us FFH 00H

Product Planning & Application Engineering

The Leader in Memory Technology


30
ELECTRONICS

You might also like