English
Language : 

USB5534B Datasheet, PDF (16/73 Pages) Microchip Technology – 4-Port SS/HS USB Hub Controller
USB5534B
4.1.4.1 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 do
this, the device first drops SPI_CE_N, then counts out 8 clocks. It then puts out the 8 bits of command, followed by 24
bits of address of the location to be erased on the SPI_DO pin. When the transfer is complete, the SPI_CE_N goes high,
while the SPI_DI line is ignored in this example.
FIGURE 4-6:
SPI ERASE SEQUENCE
SPI_CEN
SPI_CLK
0 1 2 3 4 5 6 7 8 15 16 23 24 31
SPI_DO
SPI_DI
Command
MSB
ADD.
MSB
ADD.
ADD.
HIGH IMPEDANCE
4.1.4.2 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 drops
SPI_CE_N, 8 bits of command are clocked out, followed by 24 bits of address, and one byte of data on the SPI_DO pin.
The SPI_DI line is not used in this example.
FIGURE 4-7:
SPI BYTE PROGRAM
SPI_CEN
SPI_CLK
SPI_DO
SPI_DI
0 1 2 3 4 5 6 7 8 15 16 23 24 31 32 39
0xDB
MSB
0x00
MSB
0xBF
0xFE
/0xFF
Data
MSB LSB
HIGH IMPEDANCE
DS00001681C-page 16
 2012 - 2015 Microchip Technology Inc.