UPD1002
DS00001760B-page 34 2014 Microchip Technology Inc.
3.5.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_ROM_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_ROM_DO pin. When the transfer is complete, the
SPI_ROM_CE_N goes high, while the SPI_ROM_DI line is ignored in this example.
3.5.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_ROM_CE_N, 8 bits of command are clocked out, followed by 24 bits of address, and one byte of data on the
SPI_ROM_DO pin. The SPI_ROM_DI line is not used in this example.
FIGURE 3-7: SPI ROM ERASE SEQUENCE
FIGURE 3-8: SPI ROM BYTE PROGRAM
SPI_ROM_CE_N
SPI_ROM_CLK
16
23
24
31
15
123
405
7
6
ADD.
SPI_ROM_DO
SPI_ROM_DI
8
Command
MSB MSB
ADD. ADD.
HIGH IMPEDANCE
SPI_ROM_CE_N
SPI_ROM_CLK
16
23
24
31
15
39
123
405
7
6
0x00
SPI_ROM_DO
SPI_ROM_DI
8
0xDB
MSB MSB
0xFE
/0xFF
Data
MSB LSB
32
HIGH IMPEDANCE
0xBF
2014 Microchip Technology Inc. DS00001760B-page 35
UPD1002
3.5.4.3 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 drops SPI_ROM_CE_N, then 8 bits of the command are clocked out on the SPI_ROM_DO pin. The SPI_ROM_DI
is not used in this example.
FIGURE 3-9: SPI ROM COMMAND ONLY SEQUENCE
SPI_ROM_CE_N
SPI_ROM_CLK
12340576
SPI_ROM_DO
SPI_ROM_DI
Command
MSB
HIGH IMPEDANCE
UPD1002
DS00001760B-page 36 2014 Microchip Technology Inc.
3.5.4.4 JEDEC-ID Read Example
To perform a JEDEC-ID command, the device writes 0x9F into the first byte of the SPI_CMD_BUF and the length of the
transfer is 4 bytes. The device first drops SPI_ROM_CE_N, then 8 bits of the command are clocked out, followed by the
24 bits of dummy bytes (due to the length being set to 4) on the SPI_ROM_DO pin. When the transfer is complete, the
SPI_ROM_CE_N goes high. After the first byte, the data on SPI_ROM_DI is clocked into the SPI_RSP_BUF. At the end
of the command, there are three valid bytes in the SPI_RSP_BUF. In this example, 0xBF, 0x25, 0x8E.
FIGURE 3-10: SPI ROM JEDEC-ID SEQUENCE
SPI_ROM_CE_N
SPI_ROM_CLK
SPI_ROM_DO
SPI_ROM_DI
8
9F
MSB
HIGH IMPEDANCE
1112 13
14 15
16
123
405
7
6
109
17 18
19
20 2122 23
24
25 26
27
2829
30 31
32 33
34
BF 25
8E
MSB
MSB

UPD1002-AI/MQ

Mfr. #:
Manufacturer:
Microchip Technology
Description:
USB Interface IC USB Power Delivery Controller 32 QFN
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet