![Texas Instruments TMS470R1x Скачать руководство пользователя страница 79](http://html.mh-extra.com/html/texas-instruments/tms470r1x/tms470r1x_reference-manual_1097091079.webp)
Control Registers and RAM
Multi-Buffer Serial Peripheral Interface (MibSPI) (SPNU217B)
71
7.19
SPI Control Register 7 (SPICTRL7) (SPICTRL8, SPICTRL9)
The MibSPI supports 4 data format transmission. The data format specifies
the number of bit, the clock speed, the phase, the polarity, and the direction
of a transaction. This allows the MibSPI to communicate with different type of
SPI Slave without reprogramming each time the MibSPI.
SPICTRL7 comprises the configuration bits for data format 1.
SPICTRL8 comprises the configuration bits for data format 2.
SPICTRL9 comprises the configuration bits for data format 3.
Bits 31:30
Reserved
Bits 29:24
WDELAYx.
Delay in between transmissions for data format x.
Idle time that will be applied at the end of the current transmission if the bit
WDEL is set in the current buffer. (see section 2.5.2)
The delay to be applied is equal to: WDELAY * P
ICLK
+ 2 * P
ICLK
.
Bit 23
SHIFTDIRx.
Shift direction for data format x.
With bit SHIFTDIRx the shift direction for data format x (x=1,2,3) can be
selected.
1 =
Data format x shift direction: Least significant bit is shifted out first.
0 =
Data format x shift direction: Most significant bit is shifted out first.
Bit 22
PARPOLx.
Parity polarity: even or odd.
PARPOLx can be modified in privilege mode only. It can be used for data
format x (x= 1,2,3).
1 =
If PARPOLx is set to “1” and PARITYx is enabled, a odd parity flag is
added at the end of the transmit data stream.
0 =
If PARPOLx is set to “0” and PARITYx is enabled, a even parity flag is
added at the end of the transmit data stream.
Bits
31
30
29
24
23
22
21
18
17
16
04Ch
Reserved
WDELAYx
SHIFT
DIRx
PAR-
POLx
Reserved
POLA
RITYx
PHASEx
U
RWP-0
U
RWP-
0
RWP-0
Bits
15
14
13
12
11
10
9
8
7
6
5
4
0
WAIT
ENAx
PARI-
TYx
Reser
ved
PRESCALEx
CHARLENx
RWP-
0
RWP-
0
RWP-
0
RWP-0
RWP-0
Legend: RW = Read/Write in all modes, WP = Write in privilege mode only, U = Undefined,
-n
= Value after reset, x = indeterminate
Содержание TMS470R1x
Страница 2: ...2 ...