简单翻译W25Q64BV数据手册(Winbond串行闪存SPI总线)wxleasyland@sina.com2016.6W25Q64BV64M-BITSERIALFLASHMEMORYWITHDUALANDQUADSPI8MB字节大小1.GENERALDESCRIPTIONTheW25Q64BV(64M-bit)SerialFlashmemoryprovidesastoragesolutionforsystemswithlimitedspace,pinsandpower.The25QseriesoffersflexibilityandperformancewellbeyondordinarySerialFlashdevices.TheyareidealforcodeshadowingtoRAM,executingcodedirectlyfromDual/QuadSPI(XIP)andstoringvoice,textanddata.芯片适用于RAM的影子代码,直接从SPI总线执行代码,并保存数据。Thedevicesoperateonasingle2.7Vto3.6Vpowersupplywithcurrentconsumptionaslowas4mAactiveand1µAforpower-down.Alldevicesareofferedinspace-savingpackages.TheW25Q64BVarrayisorganizedinto32,768programmablepagesof256-byteseach.按32768个页组织,每页256字节。Upto256bytescanbeprogrammedatatime.一次可编程1~256个字节Pagescanbeerasedingroupsof16(sectorerase),groupsof128(32KBblockerase),groupsof256(64KBblockerase)ortheentirechip(chiperase).页可按组擦除:一组16页(即一个4KB扇区)、一组128页(即32KB块)、一组256页(即64KB块),或整个芯片。TheW25Q64BVhas2,048erasablesectorsand128erasableblocksrespectively.相应地有2048个扇区和128个可擦除块。Thesmall4KBsectorsallowforgreaterflexibilityinapplicationsthatrequiredataandparameterstorage.(Seefigure2.)4KB的小扇区有很大的灵活性。TheW25Q64BVsupportsthestandardSerialPeripheralInterface(SPI),andahighperformanceDual/QuadoutputaswellasDual/QuadI/OSPI:SerialClock,ChipSelect,SerialDataI/O0(DI),I/O1(DO),I/O2(/WP),andI/O3(/HOLD).SPIclockfrequenciesofupto80MHzaresupportedallowingequivalentclockratesof160MHzforDualOutputand320MHzforQuadOutputwhenusingtheFastReadDual/QuadOutputinstructions.ThesetransferratescanoutperformstandardAsynchronous8and16-bitParallelFlashmemories.TheContinuousReadModeallowsforefficientmemoryaccesswithasfewas8-clocksofinstruction-overheadtoreada24-bitaddress,allowingtrueXIP(executeinplace)operation.AHoldpin,WriteProtectpinandprogrammablewriteprotection,withtoporbottomarraycontrol,providefurthercontrolflexibility.Additionally,thedevicesupportsJEDECstandardmanufactureranddeviceidentificationwitha64-bitUniqueSerialNumber.2.FEATURESFamilyofSpiFlashMemories–W25Q64BV:64M-bit/8M-byte(8,388,608)–256-bytesperprogrammablepage每个编程页256字节Standard,DualorQuadSPI–StandardSPI:CLK,/CS,DI,DO,/WP,/Hold–DualSPI:CLK,/CS,IO0,IO1,/WP,/Hold――针脚定义不同了–QuadSPI:CLK,/CS,IO0,IO1,IO2,IO3――针脚定义不同了HighestPerformanceSerialFlash–Upto6XthatofordinarySerialFlash–80MHzclockoperation–160MHzequivalentDualSPI–320MHzequivalentQuadSPI–40MB/ScontinuousdatatransferrateEfficient“ContinuousReadMode”–LowInstructionoverhead–Asfewas8clockstoaddressmemory–AllowstrueXIP(executeinplace)operation–OutperformsX16ParallelFlashLowPower,WideTemperatureRange–Single2.7to3.6Vsupply–4mAactivecurrent,1µAPower-down(typ.)–-40°Cto+85°CoperatingrangeFlexibleArchitecturewith4KBsectors灵活的4KB扇区–UniformSectorErase(4K-bytes)–BlockErase(32Kand64K-bytes)–Programoneto256bytes编程1~256个字节–Morethan100,000erase/writecycles10万次擦写周期–Morethan20-yeardataretention20年数据保存期AdvancedSecurityFeatures安全特性–SoftwareandHardwareWrite-Protect软件、硬件写保护–ToporBottom,SectororBlockselection顶或底,扇区或块的选择–Lock-DownandOTPprotection(1)–64-BitUniqueIDforeachdevice(1)Note1:ContactWinbondfordetails5.PADCONFIGURATIONPDIP300-MIL6.PINDESCRIPTIONSOIC208-MIL,PDIP300-MILANDWSON8X6-MMPINNO.PINNAMEI/OFUNCTION1/CSIChipSelectInput2DO(IO1)I/ODataOutput(DataInputOutput1)*13/WP(IO2)I/OWriteProtectInput(DataInputOutput2)*24GNDGround5DI(IO0)I/ODataInput(DataInputOutput0)*16CLKISerialClockInput7/HOLD(IO3)I/OHoldInput(DataInputOutput3)*28VCCPowerSupply*1IO0andIO1areusedforStandardandDualSPIinstructions*2IO0–IO3areusedforQuadSPIinstructions8.1PackageTypes略8.2ChipSelect(/CS)芯片选择TheSPIChipSelect(/CS)pinenablesanddisablesdeviceoperation.When/CSishigh,thedeviceisdeselectedandtheSerialDataOutput(DO,orIO0,IO1,IO2,IO3)pinsareathighimpedance.CS高电平时,各脚是高阻态。Whendeselected,thedevicespowerconsumptionwillbeatstandbylevelsunlessaninternalerase,programorstatusregistercycleisinprogress.这时处于低耗电状态。When/CSisbroughtlowthedevicewillbeselected,powerconsumptionwillincreasetoactivelevelsandinstructionscanbewrittentoanddatareadfromthedevice.Afterpower-up,/CSmusttransitionfromhightolowbeforeanewinstructionwillbeaccepted.上电后,在它接收新的指令前,CS必须有从高变低的转换。The/CSinputmusttracktheVCCsupplylevelatpower-up(see“WriteProtection”andfigure31).Ifneeded,apull-upresisteron/CScanbeusedtoaccomplishthis.在上电时,CS脚需追随到VCC电压,如果需要的话,可用上拉电阻来实现。8.3SerialDataInput,OutputandIOs(DI,DOandIO0,IO1,IO2,IO3)TheW25Q64BVsupportsstandardSPI,DualSPIandQuadSPIoperation.StandardSPIinstructionsusetheunidirectionalDI(input)pintoseriallywriteinstructions,addressesordatatothedeviceontherisingedgeoftheSerialClock(CLK)inputpin.标准SPI方式,使用单向的DI脚,来写入指令、地址或数据到芯片中,在CLK时钟上升沿。StandardSPIalsousestheunidirectionalDO(output)toreaddataorstatusfromthedeviceonthefallingedgeCLK.标准SPI方式,也使用单向的DO脚,来读出芯片中的数据或状态,在CLK时钟下升沿(注:意思是芯片是在下降沿移出数据)。DualandQuadSPIinstructionusethebidirectionalIOpinstoseriallywriteinstructions,addressesordatatothedeviceontherisingedgeofCLKandreaddataorstatusfromthedeviceonthefallingedgeofCLK.QuadSPIinstructionsrequirethenon-volatileQuadEnablebit(QE)inStatusRegister-2tobeset.WhenQE=1the/WPpinbecomesIO2and/HO