ctrlr0
Module Instance | Base Address | Register Address |
---|---|---|
spim0 | 0xFFF00000 | 0xFFF00000 |
spim1 | 0xFFF01000 | 0xFFF01000 |
Offset: 0x0
Access: RW
Bit Fields | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
Reserved |
|||||||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
cfs RW 0x0 |
srl RW 0x0 |
Reserved |
tmod RW 0x0 |
scpol RW 0x0 |
scph RW 0x0 |
frf RW 0x0 |
dfs RW 0x7 |
ctrlr0 Fields
Bit | Name | Description | Access | Reset | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15:12 | cfs | Selects the length of the control word for the Microwire frame format. The length (in bits) is the value of this field plus 1.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
11 | srl | Used for testing purposes only. When internally active, connects the transmit shift register output to the receive shift register input.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
9:8 | tmod | Selects the mode of transfer for serial communication. This field does not affect the transfer duplicity. Only indicates whether the receive or transmit data are valid. In transmit-only mode, data received from the external device is not valid and is not stored in the receive FIFO memory. It is overwritten on the next transfer. In receive-only mode, transmitted data are not valid. After the first write to the transmit FIFO, the same word is retransmitted for the duration of the transfer. In transmit-and-receive mode, both transmit and receive data are valid. The transfer continues until the transmit FIFO is empty. Data received from the external device are stored into the receive FIFO memory, where it can be accessed by the host processor.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
7 | scpol | Valid when the frame format (FRF) is set to Motorola SPI. Used to select the polarity of the inactive serial clock, which is held inactive when the SPI Master is not actively transferring data on the serial bus.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
6 | scph | Valid when the frame format (FRF) is set to Motorola SPI. The serial clock phase selects the relationship of the serial clock with the slave select signal. When SCPH = 0, data are captured on the first edge of the serial clock. When SCPH = 1, the serial clock starts toggling one cycle after the slave select line is activated, and data are captured on the second edge of the serial clock.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
5:4 | frf | Selects which serial protocol transfers the data.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
3:0 | dfs | Selects the data frame length. When the data frame size is programmed to be less than 16 bits, the receive data are automatically right-justified by the receive logic, with the upper bits of the receive FIFO zero-padded. You must right-justify transmit data before writing into the transmit FIFO. The transmit logic ignores the upper unused bits when transmitting the data.
|
RW | 0x7 |