TMP92CF30
2009-06-12
92CF30-453
3.17.2
Special Function Registers (SFRs)
This section describes the SFRs of the SPIC. These are connected to the CPU with 16 bit
data buses.
(1)
SPIMD (SPI Mode Select register)
The SPIMD register specifies the operating mode, clock operation, etc.
SPIMD Register
7
6
5
4
3
2
1
0
Bit Symbol
SWRST
XEN
CLKSEL2
CLKSEL1
CLKSEL0
Read/Write W
R/W
R/W
Reset State
0
0
1
0
0
SPIMD
(0820H)
A read-
modify-write
operation
cannot be
performed
Function
Software
Reset
0: Don’t care
1: Reset
SYSCK
0: Disable
1: Enable
Select Baud Rate(Note1)
000: Reserved 100: f
SYS
/8
001: f
SYS
/2 101: f
SYS
/16
010: f
SYS
/3 110: f
SYS
/64
011: f
SYS
/4 111: f
SYS
/256
15
14
13
12
11
10
9 8
Bit Symbol
LOOPBACK
MSB1ST DOSTAT
TCPOL RCPOL
TDINV
RDINV
Read/Write R/W
R/W
Reset
State
0 1 1 0 0 0 0
(0821H)
Function
LOOPBACK
Test Mode
0:Disbale
1:Enable
Start Bit for
Transmission /
Reception
0: LSB
1: MSB
SPDO Pin
State
When Not
Transmitting
0: Fixed to “0”
1:Fixed to “1”
Synchronizati
-on Clock
Edge Select
for
Transmission
0: Falling
edge
1: Rising
edge
Synchronizat
ion Clock
Edge Select
for Reception
0: fall
1: rise
Data
Inversion for
Transmissio
n0: Disable
1: Enable
Data Inversion
for Reception
0: Disable
1: Enable
Note: The SD card of the TMP92CF30 supports a baud rate of up to 20 Mbps in SPI mode. The baud rate should be
adjusted with the operating frequency of the CPU (f
SYS
) so that it does not exceed 20 MHz.
Figure 3.17.2 SPIMD Register
(a)
LOOPBACK
Setting the XEN and LOOPBACK bits to 1 enables the internal SPDO output to be
internally connected to the SPDI input. This setup can be used for testing.
Also, a clock signal is generated from the SPCLK pin, regardless of whether data
transmission or receptionis in progress.
Data transmission or reception must not be performed while changing the state of
this bit.
Figure 3.17.3 LOOPBACK Bit Configuration
Y
B
SPDI pin
SPDO pin
Data Transmission
Data Reception
A
SPIMD<LOOPBACK>
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...