SPIM — Serial peripheral interface master with EasyDMA

The SPI master can communicate with multiple SPI slaves using individual chip select signals for each slave.

The the main features of SPIM are:

Figure 1. SPIM — SPI master with EasyDMA
SPIM — SPI master with EasyDMA

SPI master transaction sequence

An SPI master transaction is started by triggering the START task. When started, a number of bytes will be transmitted/received on MOSI/MISO.

The following figure illustrates an SPI master transaction.

Figure 2. SPI master transaction
SPI master transaction: START task, ENDTX, and ENDRX events

The ENDTX is generated when all bytes in buffer TXD.PTR are transmitted. The number of bytes in the transmit buffer is specified in register TXD.MAXCNT. The ENDRX event will be generated when buffer RXD.PTR is full, meaning the number of bytes specified in register RXD.MAXCNT have been received. The transaction stops automatically after all bytes have been transmitted/received. When the maximum number of bytes in the receive buffer is larger than the number of bytes in the transmit buffer, the contents of register ORC will be transmitted after the last byte in the transmit buffer has been transmitted.

The END event will be generated after both the ENDRX and ENDTX events have been generated.

The SPI master can be stopped by triggering the STOP task. A STOPPED event is generated when the SPI master has stopped. If the STOP task is triggered in the middle of a transaction, SPIM will complete the transmission/reception of the current byte before stopping. The STOPPED event is generated even if the STOP task is triggered while there is no ongoing transaction.

If the ENDTX event has not already been generated when the SPI master has come to a stop, the ENDTX event will be generated even if all bytes in the buffer TXD.PTR have not been transmitted.

If the ENDRX event has not already been generated when the SPI master has come to a stop, the ENDRX event will be generated even if the buffer RXD.PTR is not full.

A transaction can be suspended and resumed using the SUSPEND and RESUME tasks. When the SUSPEND task is triggered, the SPI master will complete transmitting and receiving the current ongoing byte before it is suspended.

D/CX functionality

Some SPI slaves, for example display drivers, require an additional signal from the SPI master to distinguish between command and data bytes. For display drivers this line is often called D/CX.

SPIM provides support for such a D/CX output line. The D/CX line is set low during transmission of command bytes and high during transmission of data bytes.

The D/CX pin number is selected using PSELDCX and the number of command bytes preceding the data bytes is configured using DCXCNT.

It is not allowed to write to the DCXCNT during an ongoing transmission.

The following figure shows the use of D/CX, using SPIM.DCXCNT=1.

Figure 3. D/CX example. SPIM.DCXCNT = 1.

Pin configuration

The SCK, CSN, DCX, MOSI, and MISO signals associated with SPIM are mapped to physical pins according to the configuration specified in the PSEL.n registers.

The contents of registers PSEL.SCK, PSEL.CSN, PSELDCX, PSEL.MOSI, and PSEL.MISO are only used when SPIM is enabled, and retained only as long as the device is in System ON mode. The PSEL.n registers can only be configured when SPIM is disabled. Enabling/disabling is done using register ENABLE.

To ensure correct behavior, the pins used by SPIM must be configured in the GPIO peripheral as described in GPIO configuration before SPIM is enabled.

Only one peripheral can be assigned to drive a particular GPIO pin at a time. Failing to do so may result in unpredictable behavior.

Table 1. GPIO configuration
SPI master signalSPI master pinDirectionOutput value
SCKAs specified in PSEL.SCKOutputSame as CONFIG.CPOL
CSNAs specified in PSEL.CSNOutputSame as CONFIG.CPOL
DCXAs specified in PSELDCXOutput1
MOSIAs specified in PSEL.MOSIOutput0
MISOAs specified in PSEL.MISOInputNot applicable

Some SPIM instances do not support automatic control of CSN, and for those the available GPIO pins need to be used to control CSN directly. See #topic__table.instances for information about what features are supported in the various SPIM instances.

SPIM supports SPI modes 0 through 3. The clock polarity (CPOL) and the clock phase (CPHA) are configured in register CONFIG.

Table 2. SPI modes
ModeClock polarityClock phase
CPOLCPHA
SPI_MODE00 (Active High)0 (Leading)
SPI_MODE10 (Active High)1 (Trailing)
SPI_MODE21 (Active Low)0 (Leading)
SPI_MODE31 (Active Low)1 (Trailing)

EasyDMA

SPIM implements EasyDMA for accessing RAM without CPU involvement.

SPIM peripheral implements the following EasyDMA channels.
Table 3. SPIM EasyDMA Channels
ChannelTypeRegister Cluster
TXDREADERTXD
RXDWRITERRXD

For detailed information regarding the use of EasyDMA, see EasyDMA.

The .PTR and .MAXCNT registers are double-buffered. They can be updated and prepared for the next transmission immediately after having received the STARTED event.

The SPI master will automatically stop transmitting after TXD.MAXCNT bytes have been transmitted and RXD.MAXCNT bytes have been received. If RXD.MAXCNT is larger than TXD.MAXCNT, the remaining transmitted bytes will contain the value defined in the ORC register. If TXD.MAXCNT is larger than RXD.MAXCNT, the additional received bytes will be discarded.

The ENDRX/ENDTX events indicate that EasyDMA has finished accessing respectively the RX/TX buffer in RAM. The END event gets generated when both RX and TX are finished accessing the buffers in RAM.

If several AHB bus masters try to access the same AHB slave at the same time, AHB bus congestion might occur, and the behavior of the EasyDMA channel will depend on the SPIM instance. Refer to #topic__table.instances for information about what behavior is supported in the various instances.

Low power

To ensure lowest possible power consumption when the peripheral is not needed stop and disable SPIM.

The STOP task may not be always needed (the peripheral might already be stopped), but if it is sent, software shall wait until the STOPPED event was received as a response before disabling the peripheral through the ENABLE register.

Registers

Instances

InstanceBase addressDescription
SPIM00x40003000SPI master 0
SPIM10x40004000SPI master 1
SPIM20x40023000SPI master 2
SPIM30x4002F000SPI master 3

Configuration

InstanceConfiguration
SPIM0Not supported: > 8 Mbps data rate, CSNPOL register, DCX functionality, IFTIMING.x registers, hardware CSN control (PSEL.CSN), stalling mechanism during AHB bus contention. Recommended GPIOs for SCK signal for 8 Mbps data rate, see Pin assignments section for your package.
SPIM1Not supported: > 8 Mbps data rate, CSNPOL register, DCX functionality, IFTIMING.x registers, hardware CSN control (PSEL.CSN), stalling mechanism during AHB bus contention. Recommended GPIOs for SCK signal for 8 Mbps data rate, see Pin assignments section for your package.
SPIM2Not supported: > 8 Mbps data rate, CSNPOL register, DCX functionality, IFTIMING.x registers, hardware CSN control (PSEL.CSN), stalling mechanism during AHB bus contention. Recommended GPIOs for SCK signal for 8 Mbps data rate, see Pin assignments section for your package.
SPIM3

Register overview

RegisterOffsetDescription
TASKS_START0x010Start SPI transaction
TASKS_STOP0x014Stop SPI transaction
TASKS_SUSPEND0x01CSuspend SPI transaction
TASKS_RESUME0x020Resume SPI transaction
EVENTS_STOPPED0x104SPI transaction has stopped
EVENTS_ENDRX0x110End of RXD buffer reached
EVENTS_END0x118End of RXD buffer and TXD buffer reached
EVENTS_ENDTX0x120End of TXD buffer reached
EVENTS_STARTED0x14CTransaction started
SHORTS0x200Shortcuts between local events and tasks
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
STALLSTAT0x400Stall status for EasyDMA RAM accesses. The fields in this register are set to STALL by hardware whenever a stall occurs and can be cleared (set to NOSTALL) by the CPU.
ENABLE0x500Enable SPIM
PSEL.SCK0x508Pin select for SCK
PSEL.MOSI0x50CPin select for MOSI signal
PSEL.MISO0x510Pin select for MISO signal
PSEL.CSN0x514Pin select for CSN
FREQUENCY0x524SPI frequency. Accuracy depends on the HFCLK source selected.
RXD.PTR0x534Data pointer
RXD.MAXCNT0x538Maximum number of bytes in receive buffer
RXD.AMOUNT0x53CNumber of bytes transferred in the last transaction
RXD.LIST0x540EasyDMA list type
TXD.PTR0x544Data pointer
TXD.MAXCNT0x548Number of bytes in transmit buffer
TXD.AMOUNT0x54CNumber of bytes transferred in the last transaction
TXD.LIST0x550EasyDMA list type
CONFIG0x554Configuration register
IFTIMING.RXDELAY0x560Sample delay for input serial data on MISO
IFTIMING.CSNDUR0x564Minimum duration between edge of CSN and edge of SCK at the start and the end of a transaction, and minimum duration CSN will stay high between transactions if END-START shortcut is used
CSNPOL0x568Polarity of CSN output
PSELDCX0x56CPin select for DCX signal
DCXCNT0x570DCX configuration
ORC0x5C0Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT

TASKS_START

Address offset: 0x010

Start SPI transaction

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STARTStart SPI transaction
Trigger1Trigger task

TASKS_STOP

Address offset: 0x014

Stop SPI transaction

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOPStop SPI transaction
Trigger1Trigger task

TASKS_SUSPEND

Address offset: 0x01C

Suspend SPI transaction

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_SUSPENDSuspend SPI transaction
Trigger1Trigger task

TASKS_RESUME

Address offset: 0x020

Resume SPI transaction

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_RESUMEResume SPI transaction
Trigger1Trigger task

EVENTS_STOPPED

Address offset: 0x104

SPI transaction has stopped

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_STOPPEDSPI transaction has stopped
NotGenerated0Event not generated
Generated1Event generated

EVENTS_ENDRX

Address offset: 0x110

End of RXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDRXEnd of RXD buffer reached
NotGenerated0Event not generated
Generated1Event generated

EVENTS_END

Address offset: 0x118

End of RXD buffer and TXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDEnd of RXD buffer and TXD buffer reached
NotGenerated0Event not generated
Generated1Event generated

EVENTS_ENDTX

Address offset: 0x120

End of TXD buffer reached

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_ENDTXEnd of TXD buffer reached
NotGenerated0Event not generated
Generated1Event generated

EVENTS_STARTED

Address offset: 0x14C

Transaction started

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_STARTEDTransaction started
NotGenerated0Event not generated
Generated1Event generated

SHORTS

Address offset: 0x200

Shortcuts between local events and tasks

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEND_STARTShortcut between event END and task START
Disabled0Disable shortcut
Enabled1Enable shortcut

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPEDWrite '1' to enable interrupt for event STOPPED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWENDRXWrite '1' to enable interrupt for event ENDRX
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWENDWrite '1' to enable interrupt for event END
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWENDTXWrite '1' to enable interrupt for event ENDTX
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWSTARTEDWrite '1' to enable interrupt for event STARTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPEDWrite '1' to disable interrupt for event STOPPED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRWENDRXWrite '1' to disable interrupt for event ENDRX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
CRWENDWrite '1' to disable interrupt for event END
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
DRWENDTXWrite '1' to disable interrupt for event ENDTX
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
ERWSTARTEDWrite '1' to disable interrupt for event STARTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

STALLSTAT

Address offset: 0x400

Stall status for EasyDMA RAM accesses. The fields in this register are set to STALL by hardware whenever a stall occurs and can be cleared (set to NOSTALL) by the CPU.

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWTX[1..0]Stall status for EasyDMA RAM reads
NOSTALL0No stall
STALL1A stall has occurred
BRWRX[1..0]Stall status for EasyDMA RAM writes
NOSTALL0No stall
STALL1A stall has occurred

ENABLE

Address offset: 0x500

Enable SPIM

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWENABLEEnable or disable SPIM
Disabled0Disable SPIM
Enabled7Enable SPIM

PSEL.SCK

Address offset: 0x508

Pin select for SCK

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWPORT[0..1]Port number
CRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

PSEL.MOSI

Address offset: 0x50C

Pin select for MOSI signal

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWPORT[0..1]Port number
CRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

PSEL.MISO

Address offset: 0x510

Pin select for MISO signal

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWPORT[0..1]Port number
CRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

PSEL.CSN

Address offset: 0x514

Pin select for CSN

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWPORT[0..1]Port number
CRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

FREQUENCY

Address offset: 0x524

SPI frequency. Accuracy depends on the HFCLK source selected.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0400000000000100000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWFREQUENCYSPI master data rate
K1250x02000000125 kbps
K2500x04000000250 kbps
K5000x08000000500 kbps
M10x100000001 Mbps
M20x200000002 Mbps
M40x400000004 Mbps
M80x800000008 Mbps
M160x0A00000016 Mbps
M320x1400000032 Mbps

RXD

RXD EasyDMA channel

RXD.PTR

Address offset: 0x534

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTR

Data pointer

See Memory chapter for details about which memories are available for EasyDMA.

RXD.MAXCNT

Address offset: 0x538

Maximum number of bytes in receive buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[0..0xFFFF]Maximum number of bytes in receive buffer

RXD.AMOUNT

Address offset: 0x53C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARAMOUNT[0..0xFFFF]Number of bytes transferred in the last transaction

RXD.LIST

Address offset: 0x540

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLISTList type
Disabled0Disable EasyDMA list
ArrayList1Use array list

TXD

TXD EasyDMA channel

TXD.PTR

Address offset: 0x544

Data pointer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPTR

Data pointer

See Memory chapter for details about which memories are available for EasyDMA.

TXD.MAXCNT

Address offset: 0x548

Number of bytes in transmit buffer

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMAXCNT[0..0xFFFF]Maximum number of bytes in transmit buffer

TXD.AMOUNT

Address offset: 0x54C

Number of bytes transferred in the last transaction

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARAMOUNT[0..0xFFFF]Number of bytes transferred in the last transaction

TXD.LIST

Address offset: 0x550

EasyDMA list type

Bit number313029282726252423222120191817161514131211109876543210
IDAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLISTList type
Disabled0Disable EasyDMA list
ArrayList1Use array list

CONFIG

Address offset: 0x554

Configuration register

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWORDERBit order
MsbFirst0Most significant bit shifted out first
LsbFirst1Least significant bit shifted out first
BRWCPHASerial clock (SCK) phase
Leading0Sample on leading edge of clock, shift serial data on trailing edge
Trailing1Sample on trailing edge of clock, shift serial data on leading edge
CRWCPOLSerial clock (SCK) polarity
ActiveHigh0Active high
ActiveLow1Active low

IFTIMING.RXDELAY

Address offset: 0x560

Sample delay for input serial data on MISO

Bit number313029282726252423222120191817161514131211109876543210
IDAAA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValueDescription
ARWRXDELAY[7..0]Sample delay for input serial data on MISO. The value specifies the number of 64 MHz clock cycles (15.625 ns) delay from the the sampling edge of SCK (leading edge for CONFIG.CPHA = 0, trailing edge for CONFIG.CPHA = 1) until the input serial data is sampled. As en example, if RXDELAY = 0 and CONFIG.CPHA = 0, the input serial data is sampled on the rising edge of SCK.

IFTIMING.CSNDUR

Address offset: 0x564

Minimum duration between edge of CSN and edge of SCK at the start and the end of a transaction, and minimum duration CSN will stay high between transactions if END-START shortcut is used

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValueDescription
ARWCSNDUR[0xFF..0]

Minimum duration between edge of CSN and edge of SCK at the start and end of a transaction. If END-START shortcut is used, minimum duration CSN will stay high between transactions. The value is specified in number of 64 MHz clock cycles (15.625 ns).

Note that for low values of CSNDUR, the system turnaround time will dominate the actual time between transactions.

CSNPOL

Address offset: 0x568

Polarity of CSN output

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCSNPOLPolarity of CSN output
LOW0Active low (idle state high)
HIGH1Active high (idle state low)

PSELDCX

Address offset: 0x56C

Pin select for DCX signal

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAAAA
Reset 0xFFFFFFFF11111111111111111111111111111111
IDR/WFieldValue IDValueDescription
ARWPIN[0..31]Pin number
BRWPORT[0..1]Port number
CRWCONNECTConnection
Disconnected1Disconnect
Connected0Connect

DCXCNT

Address offset: 0x570

DCX configuration

Bit number313029282726252423222120191817161514131211109876543210
IDAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDCXCNT0x0..0xFThis register specifies the number of command bytes preceding the data bytes. The PSEL.DCX line will be low during transmission of command bytes and high during transmission of data bytes. Value 0xF indicates that all bytes are command bytes.

ORC

Address offset: 0x5C0

Byte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWORCByte transmitted after TXD.MAXCNT bytes have been transmitted in the case when RXD.MAXCNT is greater than TXD.MAXCNT.

Electrical specification

Timing specifications

SymbolDescriptionMin.Typ.Max.Units
fSPIMBit rates for SPIM132Mbps
tSPIM,STARTTime from START task to transmission started1µs
tSPIM,CSCKSCK period31.25ns
tSPIM,RSCK,LDSCK rise time, standard drive2tRF,25pF
tSPIM,RSCK,HDSCK rise time, high drive2tHRF,25pF
tSPIM,FSCK,LDSCK fall time, standard drive2tRF,25pF
tSPIM,FSCK,HDSCK fall time, high drive2tHRF,25pF
tSPIM,WHSCKSCK high time2(tCSCK/2) – tRSCK
tSPIM,WLSCKSCK low time2(tCSCK/2) – tFSCK
tSPIM,SUMIMISO to CLK edge setup time19ns
tSPIM,HMICLK edge to MISO hold time18ns
tSPIM,VMOCLK edge to MOSI valid, SCK frequency ≤ 8 MHz59ns
tSPIM,VMO,HSCLK edge to MOSI valid, SCK frequency > 8 MHz8ns
tSPIM,HMOMOSI hold time after CLK edge20ns
Figure 4. SPIM timing diagram
SPI master timing diagram
1 High bit rates may require GPIOs to be set as High Drive, see GPIO chapter for more details.
2 At 25 pF load, including GPIO pin capacitance, see GPIO electrical specification.