\n

ECSPI

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x44 byte (0x0)
mem_usage : registers
protection : not protected

Registers

RXDATA

INTREG

DMAREG

STATREG

PERIODREG

TESTREG

TXDATA

MSGDATA

CONREG

CONFIGREG


RXDATA

Receive Data Register
address_offset : 0x0 Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

RXDATA RXDATA read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ECSPI_RXDATA

ECSPI_RXDATA : no description available
bits : 0 - 31 (32 bit)
access : read-only


INTREG

Interrupt Control Register
address_offset : 0x10 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

INTREG INTREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TEEN TDREN TFEN RREN RDREN RFEN ROEN TCEN

TEEN : no description available
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TDREN : no description available
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TFEN : no description available
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

RREN : no description available
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

RDREN : no description available
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

RFEN : no description available
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

ROEN : no description available
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

TCEN : no description available
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.


DMAREG

DMA Control Register
address_offset : 0x14 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DMAREG DMAREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TX_THRESHOLD TEDEN RX_THRESHOLD RXDEN RX_DMA_LENGTH RXTDEN

TX_THRESHOLD : no description available
bits : 0 - 5 (6 bit)
access : read-write

TEDEN : no description available
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

RX_THRESHOLD : no description available
bits : 16 - 21 (6 bit)
access : read-write

RXDEN : no description available
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.

RX_DMA_LENGTH : no description available
bits : 24 - 29 (6 bit)
access : read-write

RXTDEN : no description available
bits : 31 - 31 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable

#1 : 1

Enable

End of enumeration elements list.


STATREG

Status Register
address_offset : 0x18 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

STATREG STATREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TE TDR TF RR RDR RF RO TC

TE : no description available
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

#0 : 0

TXFIFO contains one or more words.

#1 : 1

TXFIFO is empty.

End of enumeration elements list.

TDR : no description available
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

#0 : 0

Number of empty slots in TXFIFO is greater than TX_THRESHOLD.

#1 : 1

Number of empty slots in TXFIFO is not greater than TX_THRESHOLD.

End of enumeration elements list.

TF : no description available
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

#0 : 0

TXFIFO is not Full.

#1 : 1

TXFIFO is Full.

End of enumeration elements list.

RR : no description available
bits : 3 - 3 (1 bit)
access : read-only

Enumeration:

#0 : 0

No valid data in RXFIFO.

#1 : 1

More than 1 word in RXFIFO.

End of enumeration elements list.

RDR : no description available
bits : 4 - 4 (1 bit)
access : read-only

Enumeration:

#0 : 0

When RXTDE is set - Number of data entries in the RXFIFO is not greater than RX_THRESHOLD.

#1 : 1

When RXTDE is set - Number of data entries in the RXFIFO is greater than RX_THRESHOLD or a DMA TAIL DMA condition exists.

End of enumeration elements list.

RF : no description available
bits : 5 - 5 (1 bit)
access : read-only

Enumeration:

#0 : 0

Not Full.

#1 : 1

Full.

End of enumeration elements list.

RO : no description available
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

RXFIFO has no overflow.

#1 : 1

RXFIFO has overflowed.

End of enumeration elements list.

TC : no description available
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Transfer in progress.

#1 : 1

Transfer completed.

End of enumeration elements list.


PERIODREG

Sample Period Control Register
address_offset : 0x1C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PERIODREG PERIODREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SAMPLE_PERIOD CSRC CSD_CTL

SAMPLE_PERIOD : no description available
bits : 0 - 14 (15 bit)
access : read-write

Enumeration:

#0 : 0

0 wait states inserted

#1 : 1

1 wait state inserted

#111111111111110 : 111111111111110

32766 wait states inserted

#111111111111111 : 111111111111111

32767 wait states inserted

End of enumeration elements list.

CSRC : no description available
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

SPI Clock (SCLK)

#1 : 1

Low-Frequency Reference Clock (32.768 KHz)

End of enumeration elements list.

CSD_CTL : no description available
bits : 16 - 21 (6 bit)
access : read-write


TESTREG

Test Control Register
address_offset : 0x20 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TESTREG TESTREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TXCNT RXCNT LBC

TXCNT : no description available
bits : 0 - 6 (7 bit)
access : read-write

RXCNT : no description available
bits : 8 - 14 (7 bit)
access : read-write

LBC : no description available
bits : 31 - 31 (1 bit)
access : read-write

Enumeration:

#0 : 0

Not connected.

#1 : 1

Transmitter and receiver sections internally connected for Loopback.

End of enumeration elements list.


TXDATA

Transmit Data Register
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : write-only
reset_value : 0x0
reset_Mask : 0x0

TXDATA TXDATA write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ECSPI_TXDATA

ECSPI_TXDATA : no description available
bits : 0 - 31 (32 bit)
access : write-only


MSGDATA

Message Data Register
address_offset : 0x40 Bytes (0x0)
size : 32 bit
access : write-only
reset_value : 0x0
reset_Mask : 0x0

MSGDATA MSGDATA write-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ECSPI_MSGDATA

ECSPI_MSGDATA : no description available
bits : 0 - 31 (32 bit)
access : write-only


CONREG

Control Register
address_offset : 0x8 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CONREG CONREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 EN HT XCH SMC CHANNEL_MODE POST_DIVIDER PRE_DIVIDER DRCTL CHANNEL_SELECT BURST_LENGTH

EN : no description available
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable the block.

#1 : 1

Enable the block.

End of enumeration elements list.

HT : no description available
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable HT mode.

#1 : 1

Enable HT mode.

End of enumeration elements list.

XCH : no description available
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Idle.

#1 : 1

Initiates exchange (write) or busy (read).

End of enumeration elements list.

SMC : no description available
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

SPI Exchange Bit (XCH) controls when a SPI burst can start. Setting the XCH bit will start a SPI burst or multiple bursts. This is controlled by the SPI SS Wave Form Select (SS_CTL). Refer to XCH and SS_CTL descriptions.

#1 : 1

Immediately starts a SPI burst when data is written in TXFIFO.

End of enumeration elements list.

CHANNEL_MODE : no description available
bits : 4 - 7 (4 bit)
access : read-write

Enumeration:

#0 : 0

Slave mode.

#1 : 1

Master mode.

End of enumeration elements list.

POST_DIVIDER : no description available
bits : 8 - 11 (4 bit)
access : read-write

Enumeration:

#0000 : 0000

Divide by 1.

#0001 : 0001

Divide by 2.

#0010 : 0010

Divide by 4.

#1110 : 1110

Divide by 2 14 .

#1111 : 1111

Divide by 2 15 .

End of enumeration elements list.

PRE_DIVIDER : no description available
bits : 12 - 15 (4 bit)
access : read-write

Enumeration:

#0000 : 0000

Divide by 1.

#0001 : 0001

Divide by 2.

#0010 : 0010

Divide by 3.

#1101 : 1101

Divide by 14.

#1110 : 1110

Divide by 15.

#1111 : 1111

Divide by 16.

End of enumeration elements list.

DRCTL : no description available
bits : 16 - 17 (2 bit)
access : read-write

Enumeration:

#00 : 00

The SPI_RDY signal is a don't care.

#01 : 01

Burst will be triggered by the falling edge of the SPI_RDY signal (edge-triggered).

#10 : 10

Burst will be triggered by a low level of the SPI_RDY signal (level-triggered).

End of enumeration elements list.

CHANNEL_SELECT : no description available
bits : 18 - 19 (2 bit)
access : read-write

Enumeration:

#00 : 00

Channel 0 is selected. Chip Select 0 (SS0) will be asserted.

#01 : 01

Channel 1 is selected. Chip Select 1 (SS1) will be asserted.

#10 : 10

Channel 2 is selected. Chip Select 2 (SS2) will be asserted.

#11 : 11

Channel 3 is selected. Chip Select 3 (SS3) will be asserted.

End of enumeration elements list.

BURST_LENGTH : no description available
bits : 20 - 31 (12 bit)
access : read-write

Enumeration:

#0 : 0

A SPI burst contains the 1 LSB in a word.

#1 : 1

A SPI burst contains the 2 LSB in a word.

#10 : 10

A SPI burst contains the 3 LSB in a word.

#11111 : 11111

A SPI burst contains all 32 bits in a word.

#100000 : 100000

A SPI burst contains the 1 LSB in first word and all 32 bits in second word.

#100001 : 100001

A SPI burst contains the 2 LSB in first word and all 32 bits in second word.

#111111111110 : 111111111110

A SPI burst contains the 31 LSB in first word and 2^7 -1 words.

#111111111111 : 111111111111

A SPI burst contains 2^7 words.

End of enumeration elements list.


CONFIGREG

Config Register
address_offset : 0xC Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CONFIGREG CONFIGREG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SCLK_PHA SCLK_POL SS_CTL SS_POL DATA_CTL SCLK_CTL HT_LENGTH

SCLK_PHA : no description available
bits : 0 - 3 (4 bit)
access : read-write

Enumeration:

#0 : 0

Phase 0 operation.

#1 : 1

Phase 1 operation.

End of enumeration elements list.

SCLK_POL : no description available
bits : 4 - 7 (4 bit)
access : read-write

Enumeration:

#0 : 0

Active high polarity (0 = Idle).

#1 : 1

Active low polarity (1 = Idle).

End of enumeration elements list.

SS_CTL : no description available
bits : 8 - 11 (4 bit)
access : read-write

Enumeration:

#0 : 0

In master mode - only one SPI burst will be transmitted.

#1 : 1

In master mode - Negate Chip Select (SS) signal between SPI bursts. Multiple SPI bursts will be transmitted. The SPI transfer will automatically stop when the TXFIFO is empty.

End of enumeration elements list.

SS_POL : no description available
bits : 12 - 15 (4 bit)
access : read-write

Enumeration:

#0 : 0

Active low.

#1 : 1

Active high.

End of enumeration elements list.

DATA_CTL : no description available
bits : 16 - 19 (4 bit)
access : read-write

Enumeration:

#0 : 0

Stay high.

#1 : 1

Stay low.

End of enumeration elements list.

SCLK_CTL : no description available
bits : 20 - 23 (4 bit)
access : read-write

Enumeration:

#0 : 0

Stay low.

#1 : 1

Stay high.

End of enumeration elements list.

HT_LENGTH : no description available
bits : 24 - 28 (5 bit)
access : read-write



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.