EasyManua.ls Logo

Maxim Integrated MAX32665 - Qspin Fifos; QSPI Interrupts and Wakeups; Figure 14-6: SPI Clock Polarity; Table 14-5. SPI Modes Clock Phase and Polarity Operation

Maxim Integrated MAX32665
457 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MAX32665-MAX32668 User Guide
Maxim Integrated Page 313 of 457
Figure 14-6: SPI Clock Polarity
For proper data transmission, the clock phase and polarity must be identical for the SPI master and slave. The master
always places data on the MOSI line a half-cycle before the SCK edge for the slave to latch the data.
Table 14-5. SPI Modes Clock Phase and Polarity Operation
SPI Mode
QSPIn_CTRL2
phase
QSPIn_CTRL2
clkpol
SCK
Transmit Edge
SCK
Receive Edge
SCK
Idle State
0
0
0
Falling
Rising
Low
1
0
1
Rising
Falling
High
2
1
0
Rising
Falling
Low
3
1
1
Falling
Rising
High
14.4.5 QSPIn FIFOs
The Transmit FIFO hardware is 32 bytes deep. The write data width can be 8-, 16- or 32-bits wide. A 16-bit write queues a
16-bit word to the FIFO hardware. A 32-bit write queues two 16-bit words to the FIFO hardware with the least significant
word dequeued first. Bytes must be written to two consecutive byte addresses, with the odd byte as the most significant
byte, and the even byte as the least significant byte. The FIFO logic waits for both the odd and even bytes to be written to
this register space before dequeuing the 16-bit result to the FIFO.
The Receive FIFO hardware is 32 bytes deep. Read data width can be 8-, 16- or 32-bits. A byte read from this register
dequeues one byte from the FIFO. A 16-bit read from this register dequeues two bytes from the FIFO, least significant byte
first. A 32-bit read from this register dequeues four bytes from the FIFO, least significant byte first.
14.4.6 QSPI Interrupts and Wakeups
The QSPIn supports multiple interrupt sources. Status flags for each interrupt are set regardless of the state of the interrupt
enable bit for that event. The event happens once when the condition is satisfied. The status flag must be cleared by
firmware by writing a 1 to the interrupt flag.





Table of Contents