![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 628](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827628.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
628 of 1441
NXP Semiconductors
UM10503
Chapter 24: LPC43xx/LPC43Sxx SPI Flash Interface (SPIFI)
accesses by the processor and/or DMA channels. Erasure and programming are handled
by simple sequences of commands. A software API available on LPCware.com provides
set-up, programming, and erase functions.
Many SPI flash devices use serial commands for device setup/initialization, and then
move to dual or quad commands for normal operation. Different serial Flash vendors and
devices accept or require different commands and command formats. SPIFI includes
sufficient flexibility to be compatible with many market-leading devices plus extensions to
help insure compatibility with future devices.
SPI Flash devices respond to commands sent by software, or automatically sent by the
SPIFI when software reads the serial flash region of the memory map. Commands are
divided into fields called opcode, address, intermediate data, and data. The address,
intermediate data, and data fields are optional depending on the opcode. Some devices
include a mode in which the opcode can be implied in Read commands for higher
performance. Data fields are further divided into input and output data fields depending on
the opcode.
24.5 Pin description
Table 445. SPIFI flash memory map
Memory
Address
SPIFI data
0x1400 0000 to 0x17FF FFFF (Use this memory area for debugging code and for
slightly improved performance).
0x8000 0000 to 0x87FF FFFF (Debug will not work if the program counter is in this
memory area).
Remark:
These are the spaces allocated to the SPIFI in the LPC43xx. The same
data appears in the first area and the first half of the second area. These areas
allow up to 64 MB and up to 128 MB of SPI flash to be mapped into the Cortex-M4
memory space. In practice, the usable space is limited to the size of the connected
device.
Table 446. SPIFI pin description
Pin function
Direction
Description
SPIFI_SCK
O
Serial clock for the flash memory, switched only during active bits on the MOSI/IO0,
MISO/IO1, and IO3:2 lines.
SPIFI_CS
O
Chip select for the flash memory, driven LOW while a command is in progress, and
high between commands.
SPIFI_MOSI or IO0
I/O
This is an output except in quad/dual input data fields. After a quad/dual input data field,
it becomes an output again one serial clock period after CS goes high.
SPIFI_MISO or IO1
I/O
This is an output in quad/dual opcode, address, intermediate, and output data fields,
and an input in SPI mode and in quad/dual input data fields. After an input data field in
quad/dual mode, it becomes an output again one serial clock period after CS goes
high.
SPIFI_SIO[3:2]
I/O
These are outputs in quad opcode, address, intermediate, and output data fields, and
inputs in quad input data fields. These pins (or any other GPIO pins) may be used,
when not in quad mode, as software controlled Hold and/or WPn controls for flash
memories that support those functions.