Reference manual 443 002-27293 Rev. *E
2023-09-06
PSoC™ 61, PSoC™ 62 MCU: CY8C6xx5 architecture
Serial memory interface (SMIF)
Figure 28-14. Two-byte transfer in dual Quad SPI mode
The definition of a read transfer is as follows:
DEV0_RD_CMD_CTL = (1UL << SMIF_DEVICE_RD_CMD_CTL_PRESENT_Pos) // PRESENT
| (0 << SMIF_DEVICE_RD_CMD_CTL_WIDTH_Pos) // WIDTH: single data
transfer
| 0xeb); // CODE
DEV0_RD_ADDR_CTL = (2 << SMIF_DEVICE_RD_ADDR_CTL_WIDTH_Pos)); // WIDTH: quad data
transfer
DEV0_RD_MODE_CTL = (1UL << SMIF_DEVICE_RD_MODE_CTL_PRESENT_Pos) // PRESENT
| (2 << SMIF_DEVICE_RD_MODE_CTL_WIDTH_Pos) // WIDTH: quad data transfer
| 0x00); // CODE
DEV0_RD_DUMMY_CTL= (1UL << SMIF_DEVICE_RD_DUMMY_CTL_PRESENT_Pos) // PRESENT
| ((4-1) << SMIF_DEVICE_RD_DUMMY_CTL_SIZE5_Pos)); // SIZE: 4
dummy cycles
DEV0_RD_DATA_CTL = (3 << SMIF_DEVICE_RD_DATA_CTL_WIDTH_Pos)); // WIDTH: octal data
transfer
Note that the command uses single data transfer, the address and mode byte use quad data transfer, and the
read data byte uses octal data transfer.
28.4 Triggers
The SMIF has two level-sensitive triggers:
• tr_tx_req is associated with the Tx data FIFO.
• tr_rx_req is associated with the Rx data FIFO.
If the SMIF is enabled (CTL.ENABLED is ‘1’) and Command operation mode is selected (CTL.XIP_MODE is ‘0’), the
trigger functionality is enabled. If the SMIF is disabled (CTL.ENABLED is ‘0’) or the XIP operation mode is selected
(CTL.XIP_MODE is ‘1’), the triggers functionality is disabled. The trigger functionality is defined as follows:
• The MMIO TX_DATA_FIFO_CTL.TRIGGER_LEVEL field specifies a number of FIFO entries. The tr_tx_req trigger
is active when the number of used Tx data FIFO entries is smaller or equal than the specified number; that is,
TX_DATA_FIFO_STATUS.USED TRIGGER_LEVEL.
0
7 8 13 14 19 20 21
4 dummy
cycles
24 bit address
instruction (0xeb)
0
11
spi_select[1]
spi_clk
spi_data[0]
spi_data[1]
22
spi_data[2]
33
spi_data[3]
8-bit data
00
mode
15 16
4 020 16 12
1 5 117 13
2 6 218 14
3 7 319 15
21
22
23
0xEB instruction, instruction 1 bit/cycle; address, mode, data 4 bits/cycle
0
55
spi_data[4]
spi_data[5]
66
spi_data[6]
77
spi_data[7]
444 020 16 12
1 5 117 13
2 6 218 14
3 7 319 15
21
22
23
octalquadsingle
spi_select[0]