TC32306FTG
2015-10-01
35
6.7.4 SPI Single Read/Write
(1)
Write
Set the single Read/Write (Write) data pattern to the instruction area. Set to register address to the
next 8 bit, then register data to after next 8 bit. To write other address registers’ data continuously,
repeat above routine. After input of 24 bit data (Instruction, address and data), the register value is
updated. The register data from MOSI pin is written when CS pin is “L” and CLK signal is at the
rising edge.
Fig 6-15 Write Format (SPI Single Read/Write)
(2)
Read
Set the single Read/Write (Read) data pattern to the instruction area. Set to register address to the
next 8 bit to read that data. After input the address, MISO pin outputs 8 bit data from the specified
register. After output that 8 bit data, repeat above routine to read other address data continuously.
During data read from MISO pin, MOSI pin does not accept input data. MISO pin outputs the register
data when CS pin is “L” and CLK signal is at the falling edge.
Fig 6-16 Read Format (SPI Single Read/Write)
- - -
CLK
CS
- - -
Instruction Address
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
Instruction
Address
0 0 0 0
1
X
1
MOSI
- - -
Data
- - -
D0
D1
D2
D3
D4
D5
D6
D7
AD7
AD6
D1
D0
X: 0 or 1 (Don
’
t care)
0
Data
Instruction Address
Data
Instruction
0 0 0 0
1
X
1 0
Data
- - -
- - -
CLK
CS
MOSI
MISO
- - -
- - -
Instruction Address
Read
Data
Read
Data
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
Instruction
Address
0 0 0 0
1
X 1
1
D1
D0
MOSI
MISO
High-Impedance
- - -
D0
D1
D2
D3
D4
D5
D6
D7
X: 0 or 1 (Don
’
t care)
- - -
Read
Data
Data
Don
’
t care
Instruction Address
Address
AD6
AD7
Instruction
0 0 0 0
1
X 1
1
Don
’
t care