The 31 registers of QSPI (Quad Serial Peripheral Interface), from 0x40020000, with their reset value and every field. The PIC32CX1025MTSH128 has 2920 registers in 63 peripherals, one page each.
QSPI Quad Serial Peripheral Interface
QSPI_CRControl Register
Address
0x40020000
Reset
0x00000000
Access
write only
Size
32-bit
7 fields
Field
Bits
What it does
LASTXFER
24
Last Transfer
RTOUT
10
Reset Time-out
STTFR
9
Start Transfer
UPDCFG
8
Update Configuration
SWRST
7
QSPI Software Reset
QSPIDIS
1
QSPI Disable
QSPIEN
0
QSPI Enable
QSPI_MRMode Register
Address
0x40020004
Reset
0x00000000
Access
read/write
Size
32-bit
7 fields
Field
Bits
What it does
DLYBCT
23:16
Delay Between Consecutive Transfers
NBBITS
11:8
Number Of Bits Per Transfer
0 8 bits for transfer
8 16 bits for transfer
TAMPCLR
7
Tamper Clear Enable
CSMODE
5:4
Chip Select Mode
0 The chip select is deasserted if QSPI_TDR.TD has not been reloaded before the end of the current transfer.
1 The chip select is deasserted when the bit LASTXFER is written to '1' and the character written in QSPI_TDR.TD has been transferred.
2 The chip select is deasserted systematically after each transfer.
WDRBT
2
Wait Data Read Before Transfer
0 No effect. In SPI mode, a transfer can be initiated whatever the state of QSPI_RDR is.
1 In SPI mode, a transfer can start only if QSPI_RDR is empty, i.e., does not contain any unread data. This mode prevents overrun error in reception.
SMM
0
Serial Memory Mode
0 The QSPI is in SPI mode.
1 The QSPI is in Serial Memory mode.
DLYCS
31:24
Minimum Inactive QCS Delay
QSPI_RDRReceive Data Register
Address
0x40020008
Reset
0x00000000
Access
read only
Size
32-bit
1 field
Field
Bits
What it does
RD
15:0
Receive Data
QSPI_TDRTransmit Data Register
Address
0x4002000C
Reset
0x00000000
Access
write only
Size
32-bit
1 field
Field
Bits
What it does
TD
15:0
Transmit Data
QSPI_ISRInterrupt Status Register
Address
0x40020010
Reset
0x00000000
Access
read only
Size
32-bit
16 fields
Field
Bits
What it does
TOUT
17
QSPI Time-out
CSRA
15
Chip Select Rise Autoclear
CSFA
14
Chip Select Fall Autoclear
QITR
13
QSPI Interrupt Rise
QITF
12
QSPI Interrupt Fall
LWRA
11
Last Write Access (cleared on read)
INSTRE
10
Instruction End Status (cleared on read)
CSR
8
Chip Select Rise (cleared on read)
TXBUFE
7
TX Buffer Empty
RXBUFF
6
RX Buffer Full
ENDTX
5
End of TX buffer
ENDRX
4
End of RX buffer
OVRES
3
Overrun Error Status (cleared on read)
TXEMPTY
2
Transmission Registers Empty (cleared by writing QSPI_TDR)
TDRE
1
Transmit Data Register Empty (cleared by writing QSPI_TDR)
RDRF
0
Receive Data Register Full (cleared by reading QSPI_RDR)
QSPI_IERInterrupt Enable Register
Address
0x40020014
Reset
0x00000000
Access
write only
Size
32-bit
16 fields
Field
Bits
What it does
TOUT
17
QSPI Time-out Interrupt Enable
CSRA
15
Chip Select Rise Autoclear Interrupt Enable
CSFA
14
Chip Select Fall Autoclear Interrupt Enable
QITR
13
QSPI Interrupt Rise Interrupt Enable
QITF
12
QSPI Interrupt Fall Interrupt Enable
LWRA
11
Last Write Access Interrupt Enable
INSTRE
10
Instruction End Interrupt Enable
CSR
8
Chip Select Rise Interrupt Enable
TXBUFE
7
Transmit Buffer Empty Interrupt Enable
RXBUFF
6
Receive Buffer Full Interrupt Enable
ENDTX
5
End of Transmit Buffer Interrupt Enable
ENDRX
4
End of Receive Buffer Interrupt Enable
OVRES
3
Overrun Error Interrupt Enable
TXEMPTY
2
Transmission Registers Empty Enable
TDRE
1
Transmit Data Register Empty Interrupt Enable
RDRF
0
Receive Data Register Full Interrupt Enable
QSPI_IDRInterrupt Disable Register
Address
0x40020018
Reset
0x00000000
Access
write only
Size
32-bit
16 fields
Field
Bits
What it does
TOUT
17
QSPI Time-out Interrupt Disable
CSRA
15
Chip Select Rise Autoclear Interrupt Disable
CSFA
14
Chip Select Fall Autoclear Interrupt Disable
QITR
13
QSPI Interrupt Rise Interrupt Disable
QITF
12
QSPI Interrupt Fall Interrupt Disable
LWRA
11
Last Write Access Interrupt Disable
INSTRE
10
Instruction End Interrupt Disable
CSR
8
Chip Select Rise Interrupt Disable
TXBUFE
7
Transmit Buffer Empty Interrupt Disable
RXBUFF
6
Receive Buffer Full Interrupt Disable
ENDTX
5
End of Transmit Buffer Interrupt Disable
ENDRX
4
End of Receive Buffer Interrupt Disable
OVRES
3
Overrun Error Interrupt Disable
TXEMPTY
2
Transmission Registers Empty Disable
TDRE
1
Transmit Data Register Empty Interrupt Disable
RDRF
0
Receive Data Register Full Interrupt Disable
QSPI_IMRInterrupt Mask Register
Address
0x4002001C
Reset
0x00000000
Access
read only
Size
32-bit
16 fields
Field
Bits
What it does
TOUT
17
QSPI Time-out Interrupt Mask
CSRA
15
Chip Select Rise Autoclear Interrupt Mask
CSFA
14
Chip Select Fall Autoclear Interrupt Mask
QITR
13
QSPI Interrupt Rise Interrupt Mask
QITF
12
QSPI Interrupt Fall Interrupt Mask
LWRA
11
Last Write Access Interrupt Mask
INSTRE
10
Instruction End Interrupt Mask
CSR
8
Chip Select Rise Interrupt Mask
TXBUFE
7
Transmit Buffer Empty Interrupt Mask
RXBUFF
6
Receive Buffer Full Interrupt Mask
ENDTX
5
End of Transmit Buffer Interrupt Mask
ENDRX
4
End of Receive Buffer Interrupt Mask
OVRES
3
Overrun Error Interrupt Mask
TXEMPTY
2
Transmission Registers Empty Mask
TDRE
1
Transmit Data Register Empty Interrupt Mask
RDRF
0
Receive Data Register Full Interrupt Mask
QSPI_SCRSerial Clock Register
Address
0x40020020
Reset
0x00000000
Access
read/write
Size
32-bit
3 fields
Field
Bits
What it does
DLYBS
23:16
Delay Before QSCK
CPHA
1
Clock Phase
CPOL
0
Clock Polarity
QSPI_SRStatus Register
Address
0x40020024
Reset
0x00000000
Access
read/write
Size
32-bit
5 fields
Field
Bits
What it does
HIDLE
4
QSPI Idle
RBUSY
3
Read Busy
CSS
2
Chip Select Status
QSPIENS
1
QSPI Enable Status
SYNCBSY
0
Synchronization Busy
QSPI_IARInstruction Address Register
Address
0x40020030
Reset
0x00000000
Access
read/write
Size
32-bit
1 field
Field
Bits
What it does
ADDR
31:0
Address
QSPI_WICRWrite Instruction Code Register
Address
0x40020034
Reset
0x00000000
Access
read/write
Size
32-bit
2 fields
Field
Bits
What it does
WROPT
23:16
Write Option Code
WRINST
7:0
Write Instruction Code
QSPI_IFRInstruction Frame Register
Address
0x40020038
Reset
0x00000000
Access
read/write
Size
32-bit
16 fields
Field
Bits
What it does
PROTTYP
29:28
Protocol Type
0 Standard (Q)SPI Protocol
DDRCMDEN
26
DDR Mode Command Enable
0 Transfer of instruction field is performed in Single Data Rate mode even if DDREN is written to '1'.
1 Transfer of instruction field is performed in Double Data Rate mode if DDREN bit is written to '1'. If DDREN is written to '0', the instruction field is sent in Single Data Rate mode.
DQSEN
25
DQS Sampling Enable
APBTFRTYP
24
Peripheral BusTransfer Type
SMRM
23
Serial Memory Register Mode
NBDUM
20:16
Number Of Dummy Cycles
DDREN
15
DDR Mode Enable
0 Transfers are performed in Single Data Rate mode.
1 Transfers are performed in Double Data Rate mode, whereas the instruction field is still transferred in Single Data Rate mode.
CRM
14
Continuous Read Mode
0 Continuous Read mode is disabled.
1 Continuous Read mode is enabled.
TFRTYP
12
Data Transfer Type
0 Read/Write of memory register, write of memory page buffer. This configuration implies the following: Either the AHB or the APB interface can be used to initiate the transfer (SMRM bit). Returned data represents the memory register value. If the APB interface is used, the RDRF and TDRE flags help to
1 Read/Write accesses to the memory space. This configuration implies the following: Only the System Bus interface can be used to trigger accesses. Access to random location is possible. Address mask is applied and full size accesses only are performed. Internal optimization algorithm is enabled to mi
ADDRL
11:10
Address Length
0 8-bit address size
1 16-bit address size
2 24-bit address size
3 32-bit address size
OPTL
9:8
Option Code Length
0 The option code is 1 bit long.
1 The option code is 2 bits long.
2 The option code is 4 bits long.
3 The option code is 8 bits long.
DATAEN
7
Data Enable
OPTEN
6
Option Enable
ADDREN
5
Address Enable
INSTEN
4
Instruction Enable
WIDTH
3:0
Width of Instruction Code, Address, Option Code and Data