W25Q128---读写

占坑!

总结:通信方式是SPI,读数据可以从任何地方读,写数据和擦出数据需要按照页或者扇区或者簇为单位进行。

   写数据:一次最多写一页,如果超出一页数据长度,则分几次完成。例如本芯片一个扇区为4096个字节,那么需要写16页,要进行至少16次按页写数据。

     擦数据:擦数据的最小单位是一个扇区,也可以直接擦出整个芯片。

芯片介绍:

  容量:16Mbytes  一页为256个字节   一个扇区为4K个字节

数据手册介绍:

    The W25Q128FV array is organized into 65,536 programmable pages of 256-bytes each. Up to 256
  bytes can be programmed at a time. Pages can be erased in groups of 16 (4KB sector erase), groups of
  128 (32KB block erase), groups of 256 (64KB block erase) or the entire chip (chip erase). The
  W25Q128FV has 4,096 erasable sectors and 256 erasable blocks respectively. The small 4KB sectors
  allow for greater flexibility in applications that require data and parameter storage 。

posted @ 2018-01-09 19:55  白衣尽湿  阅读(6510)  评论(0编辑  收藏  举报