APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash Cross Reference Part Number Macronix SST 4Mb serial flash MX25L4005A SST25LF040A 8Mb serial flash MX25L8005 SST25LF080A Introduction Macronix offers a family of serial flash products from 1Mb to 128Mb densities. Of these products, two of the popular densities are the 4Mb and 8Mb that have compatible pin-out with SST 4Mb and 8Mb serial flash products. Users can migrate from these SST products into Macronix 4M, MX25L4005A or the 8M, MX25L8005 serial flash products. Comparison between Macronix and SST serial flash products Differences Macronix (MX25L4005A) SST (25LF040A) 4Mb serial flash ●Manufacturer ID (C2h)/ Device ID (12h) ●Manufacturer ID (BFh)/ Device ID (44h) ●Block size: 64KB ●Block size: 32KB ●Does not need EWSR command for ●Needs “Enable Write Status Register” (EWSR) protected bits for protected bits ●Serial clock: 33MHz or 85MHz (Fast mode) ●Serial clock: 20MHz or 33MHz (Fast mode) Differences Macronix (MX25L8005) SST (25LF080A) 8Mb serial flash ●Manufacturer ID (C2h)/ Device ID (13h) ●Manufacturer ID (BFh)/ Device ID (80h) ●Block size: 64KB ●Block size: 32KB ● D o e s n o t n e e d E W S R c o m m a n d f o r ●Need “Enable Write Status Register” (EWSR) protected bits for protected bits ●Serial clock: 33MHz or 85MHz (Fast mode) ●Serial clock: 20MHz or 33MHz (Fast mode) Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 1 APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash Hardware Migration Macronix 4Mb and 8Mb serial flash provides the same package type as SST 4Mb and 8Mb serial flash and are pin-to-pin compatible. The signals CS# and SCLK on the Macronix parts perform the same function as the signals CE# and SCK on the SST parts. Hence the Macronix parts own the same function with SST parts and are pin-compatible to them. Both companies offer the product in an 8-pin SOP (200mils wide) and 8-pin SON packages. Macronix also offers the products in an 8-pin SOP package in 150mils width for applications that need the parts to be squeezed into a smaller area. Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 2 APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash Software Migration The minor differences shown below are (i) Manufacturer ID/ Device ID, (ii) SST®’s additional command - Enable Write Status Register (EWSR), (iii) Block size, and (iv) Serial clock rate. Macronix SST MX25L8005/ MX25L4005A SST25VF080/040, SST25LF080A/040A WREN 06 Hex 06 Hex WRDI RDSR WRSR READ 04 05 01 03 Part Number Fast READ Sector Erase (4KB) Block Erase (Macronix: 64KB, SST: 32KB) Bulk / Chip Erase Auto Increment(AAI) Page/ Byte Program Enable Write Status Register(EWSR) Deep Power Down Release from Deep Powerdown(RDP) Read Electronic ID Hex Hex Hex Hex 20 Hex 04 Hex 05 Hex 01 Hex 03 Hex 0B Hex (for LF only) (33MHz) 20 Hex 52 or D8 Hex 52 Hex 60 or C7 Hex -02 Hex 60 Hex AF Hex 02 Hex -- 50 Hex B9 Hex -- AB Hex -- 90 or AB Hex 90 or AB Hex 0B Hex (85MHz) Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 3 APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash Manufacturer ID and Device ID Command and ID Type REMS* Macronix - MX25L4005A Command Command ID code (hex) Cycle 90 1 command Two byte ID cycle2 dummy (ADD=00 for cycles1 ADD manufacturer cycle ID first, 01 for device ID first)Mfr. ID: C2Device ID: 12 Command code (hex) 90 or AB SST - SST25LF040A Command ID Cycle 1 command Two byte ID cycle2 dummy (ADD=00 for cycle1 ADD manufacturer cycle ID first, 01 for device ID first)Mfr. ID: BFDevice ID: 44 Command and ID Type Macronix - MX25L8005 SST - SST25LF080A Command Command ID Command Command ID code (hex) Cycle code (hex) Cycle 90 or AB 1 command Two byte ID REMS* 90 1 command Two byte ID cycle2 dummy (ADD=00 for cycle2 dummy (ADD=00 for cycle1 ADD manufacturer cycles1 ADD manufacturer cycle ID first, 01 cycle ID first, 01 for device ID for device ID first)Mfr. ID: first)Mfr. ID: BFDevice ID: C2Device ID: 13 80 * REMS: Command to read out Electronic Manufacturer and Device ID Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 4 APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash The command code 90 (hex) is used to read out the manufacturer ID and device ID for the Macronix as well as the SST parts. When the manufacturer ID is read out, the system firmware identifies the manufacturer as shown in the flowchart. The algorithm to be used depends on whether a Macronix or an SST part is being used. Start Write 90h to address x00h * Read ID command address x00h Read Manufacturer ID Yes Manufacturer ID Device is Macronix flash, use Macronix command = C2h ? No algorithm Yes Manufacturer Device is SST flash, use SST command algorithm ID = BFh ? No Identification Failure Failure Software Flowchart Command Instructions Macronix and SST serial flash products have compatible command instructions to perform all the functions. The only difference is the use of “Enable Write Status Register” (EWSR) instruction by the SST part. While changing the protected bits (BP2, BP1, BP0), the Macronix part uses only one instruction – the “Write Status Register” (WRSR) command, whereas the SST part uses two commands to perform the same function - EWSR and WRSR commands. Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 5 APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash Block Size 4KB sector 64KB block address FFFFF FF000 4KB sector 32KB block MX25L8005 SST 25LF080A address FFFFF FF000 Sector 255 block 15 16 (4K-byte)sectors are grouped as 1 (64K-byte)block 8 (4K-byte)sectors are grouped as 1 (32K-byte)block F8000 MX25L8005 V.S. SST 25LF080A Sector 255 block 31 Sector 248 Sector 247 block 30 Sector 224 F0000 Sector 240 0FFFF Sector 15 Sector 15 block 1 block 0 Sector 8 Block size is different MXIC 64KB, SST 32KB 00FFF 00000 Sector 0 Sector size (4KB) is same 07FFF Sector 7 block 0 00FFF 00000 Sector 0 Note: MX25L4005A and SST 25LF040A are only half of sectors and blocks of MX25L8005 and SST 25LF080A serial Flash. Both the Macronix and SST serial flash products have the same block size – 4KB, except the block sizes are different as shown in the diagram above. The Macronix part is divided into 64KB blocks whereas the SST part is divided into 32KB blocks. When the user is erasing the block, the SST part requires two operations to perform the function that Macronix part takes one function in a 64KB block. Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 6 APPLICATION NOTE Migrating to the Macronix 4M/8M Serial Flash Families from SST 4M/8M Serial Flash Serial Clock The Macronix flash is capable of operating at a clock rate of 85MHz whereas the SST part is capable of operating only up to 33MHz speed. The Macronix part has a definite speed advantage over the SST serial flash. For applications that require higher operating speeds, like high-end servers and high-end PCs, Macronix serial flash is very well suited. Other higher speed applications can take full advantage of this capability as well. Conclusion Macronix provides 4Mb and 8Mb serial flash with Serial interface that can be easily used in sockets that use SST serial flash parts of the same density. It takes minimal effort on the user’s part to migrate into Macronix serial flash from the SST serial flash. The definite advantage that the Macronix product offers is the higher speed up to 85MHz that is used in specific applications requiring higher speeds. Macronix offers a competitive product in a smaller size as well with only 150mils width for the 8-pin SOP package for applications requiring tighter spacing. For additional technical support, please contact the Macronix sales office in your local area. References: The following datasheets were used to prepare this comparative technical note. Datasheet SST25LF040A SST25LF080A (25VF080B) Source web-site web-site Date Jan. 2006 Jan. 2006/ Jun. 2007 Version 05 06/02 For functional and parametric specifications, refer to the product datasheets on the Macronix web site at http://www.macronix.com/ and refer to the web page: Products / Flash Memory / Serial Flash Publication Number: AN-002.04 REV. 0.00, MAR. 12, 2009 7 APPLICATION NOTE Macronix's products are not designed, manufactured, or intended for use for any high risk applications in which the failure of a single component could cause death, personal injury, severe physical damage, or other substantial harm to persons or property, such as life-support systems, high temperature automotive, medical, aircraft and military application. Macronix and its suppliers will not be liable to you and/or any third party for any claims, injuries or damages that may be incurred due to use of Macronix's products in the prohibited applications. Copyright© Macronix International Co. Ltd. 2005~2009. All Rights Reserved. Macronix, MXIC, MXIC Logo, MX Logo, are trademarks or registered trademarks of Macronix International Co., Ltd.. The names and brands of other companies are for identification purposes only and may be claimed as the property of the respective companies. MACRONIX INTERNATIONAL CO., LTD. Macronix Offices : Taiwan Headquarters, FAB2 Macronix Offices : Japan Macronix Asia Limited. Macronix, International Co., Ltd. 16, Li-Hsin Road, Science Park, Hsinchu, Taiwan, R.O.C. Tel: +886-3-5786688 Fax: +886-3-5632888 Taipei Office Macronix, International Co., Ltd. Macronix Offices : Korea 19F, 4, Min-Chuan E. Road, Sec. 3, Taipei, Taiwan, R.O.C. Tel: +886-2-2509-3300 Fax: +886-2-2509-2200 Macronix Offices : China NKF Bldg. 5F, 1-2 Higashida-cho, Kawasaki-ku Kawasaki-shi, Kanagawa Pref. 210-0005, Japan Tel: +81-44-246-9100 Fax: +81-44-246-9105 Macronix Asia Limited. #906, 9F, Kangnam Bldg., 1321-4, Seocho-Dong, Seocho-Ku, 135-070, Seoul, Korea Tel: +82-02-588-6887 Fax: +82-02-588-6828 Macronix Offices : Singapore Macronix Pte. Ltd. 1 Marine Parade Central, #11-03 Parkway Centre, Macronix (Hong Kong) Co., Limited. 702-703, 7/F, Building 9, Hong Kong Science Park, 5 Science Park West Avenue, Sha Tin, N.T. Tel: +86-852-2607-4289 Fax: +86-852-2607-4229 Singapore 449408 Tel: +65-6346-5505 Fax: +65-6348-8096 Macronix (Hong Kong) Co., Limited, Macronix Offices : Europe Macronix Europe N.V. Koningin Astridlaan 59, Bus 1 1780 SuZhou Office No.5, XingHai Rd, SuZhou Industrial Park, SuZhou China 215021 Tel: +86-512-62580888 Ext: 3300 Fax: +86-512-62586799 Macronix Offices : USA Macronix (Hong Kong) Co., Limited, Shenzhen Office Wemmel Belgium Tel: +32-2-456-8020 Fax: +32-2-456-8021 Room 1401 & 1404, Blcok A, TianAN Hi-Tech PLAZA Tower, Che Gong Miao, FutianDistrict, Shenzhen PRC 518040 Tel: +86-755-83433579 Fax: +86-755-83438078 Macronix America, Inc. 680 North McCarthy Blvd. Milpitas, CA 95035, U.S.A. Tel: +1-408-262-8887 Fax: +1-408-262-8810 http : //www.macronix.com MACRONIX INTERNATIONAL CO., LTD. reserves the right to change product and specifications without notice. 8