| 数据搜索系统,热门电子元器件搜索 |
|
USB84604 数据表(PDF) 33 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
USB84604 数据表(HTML) 33 Page - Microchip Technology |
|
33 / 61 page ![]() 2014-2016 Microchip Technology Inc. DS60001295C-page 33 USB84604 7.1.5 ERASE EXAMPLE To perform a SCTR_ERASE, 32BLK_ERASE, or 64BLK_ERASE, the device writes 0x20, 0x52, or 0xD8, respectively to the first byte of the command buffer, followed by a 3-byte address. The length of the transfer is set to 4 bytes. To perform this, the device drives SPI_CE_N low, then counts out 8 clocks. It then outputs on SPI_DO the 8 bits of com- mand, followed by 24 bits of address of the location to be erased. When the transfer is complete, SPI_CE_N goes high, while the SPI_DI line is ignored in this example. 7.1.6 BYTE PROGRAM EXAMPLE To perform a Byte Program, the device writes 0x02 to the first byte of the command buffer, followed by a 3-byte address of the location that will be written to, and one data byte. The length of the transfer is set to 5 bytes. The device first drives SPI_CE_N low, then SPI_DO outputs 8 bits of command, followed by 24 bits of address, and one byte of data. SPI_DI is not used in this example. 7.1.7 COMMAND ONLY PROGRAM EXAMPLE To perform a single byte command such as the following: •WRDI •WREN •EWSR • CHIP_ERASE • EBSY • DBSY The device writes the opcode into the first byte of the SPI_CMD_BUF and the SPI_CMD_LEN is set to one. The device first drives SPI_CE_N low, then 8 bits of the command are clocked out on SPI_DO. SPI_DI is not used in this example. FIGURE 7-3: SPI ERASE SEQUENCE SPI_CE_N SPI_CLK 16 23 24 31 15 12 3 4 05 7 6 ADD. SPI_DO SPI_DI 8 Command MSB MSB ADD. ADD. HIGH IMPEDANCE |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |