// // Power Debugger Flash Memory Device Definition File // Copyright (c) 2001-2002 Debug Solutions, All Rights Reserved // // Author : A-Yasuo // Date : Jly 27, 2005 // Document Tytle : MBM29PL160TD/160BD-75/90 // Document No. : DS05-20872-2 // // Revision History: Ver1.2 Jly27,2005 Change Program/ChipErase/SectorErase Address. // Change Sector Area Address // Ver1.2 Jun06,2005 support Address Fetch Timing Definition. // separate 8bit_Composition and 8bit_Composition. // Ver1.1 Sep05,2002 Written. // // // Capacity : 16Mbit // Composition : 08bit x 2M // Composition : 16bit x 1M // DevVer 1 2 DevMaker Fujitsu DevName MBM29PL160BD // Device definition DevDef Adr 21 NEG // Adr-1 , Adr00-19 DevDef Data 8 DevDef Sector 11 DevDef CS1 ON NEG H DevDef CS2 OFF DevDef OE1 ON NEG H DevDef OE2 OFF DevDef WE1 ON NEG H DevDef WE2 OFF DevDef Byte ON NEG L DevDef Reset OFF DevDef WP OFF ProgramStart // program flow definition WriteData 0xaaa 0xaa WriteData 0x555 0x55 WriteData 0xaaa 0xa0 WriteData #Address #Data :Data_Polling ReadData #Address // Set read data to intenal variable CompData 0x80 #Data then :OK // Compare { internal_variable & bit_mask(0x80) } to { #Data & bit_mask(0x80) } CompData 0x20 0x20 else :Data_Polling // Compare { internal_variable & bit_mask(0x20) } to 0x20 ReadData #Address CompData 0x80 #Data then :OK else :Error_Det :OK End :Error_Det Error ProgramEnd // program flow definition end ChipEraseStart // chip erase flow definition WriteData 0xaaa 0xaa WriteData 0x555 0x55 WriteData 0xaaa 0x80 WriteData 0xaaa 0xaa WriteData 0x555 0x55 WriteData 0xaaa 0x10 :Data_Polling ReadData 0x0 // Chip erase address allow anywhere in chip CompData 0x80 0x80 then :OK // Compare { internal_variable & bit_mask(0x80) } to { #Data & bit_mask(0x80) } CompData 0x20 0x20 else :Data_Polling // Compare { internal_variable & bit_mask(0x20) } to 0x20 ReadData 0x0 CompData 0x80 0x80 then :OK else :Error_Det :OK End :Error_Det Error ChipEraseEnd // chip erase flow definition end SectorEraseStart // sector erase flow definition WriteData 0xaaa 0xaa WriteData 0x555 0x55 WriteData 0xaaa 0x80 WriteData 0xaaa 0xaa WriteData 0x555 0x55 WriteData #Address 0x30 :Data_Polling ReadData #Address // Sector erase address allow anywhere in sector CompData 0x80 0x80 then :OK // Compare { internal_variable & bit_mask(0x80) } to { #Data & bit_mask(0x80) } CompData 0x20 0x20 else :Data_Polling // Compare { internal_variable & bit_mask(0x20) } to 0x20 ReadData #Address CompData 0x80 0x80 then :OK else :Error_Det :OK End :Error_Det Error SectorEraseEnd // sector erase flow definition end // // Sector Area Range // // Num Start_Adr End_Adr Erase_Adr //------------------------------------------------------------ Sector 0 0x00000000 0x00003fff 0x00000000 // 16KByte Sector 1 0x00004000 0x00005fff 0x00004000 // 8Kbyte Sector 2 0x00006000 0x00007fff 0x00006000 // 8KByte Sector 3 0x00008000 0x0003ffff 0x00008000 // 224KByte Sector 4 0x00040000 0x0007ffff 0x00040000 // 256KByte Sector 5 0x00080000 0x000bffff 0x00080000 // 256KByte Sector 6 0x000c0000 0x000fffff 0x000c0000 // 256KByte Sector 7 0x00100000 0x0013ffff 0x00100000 // 256KByte Sector 8 0x00140000 0x0017ffff 0x00140000 // 256KByte Sector 9 0x00180000 0x001bffff 0x00180000 // 256KByte Sector 10 0x001c0000 0x001fffff 0x001c0000 // 256KByte