User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 102
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
Last bit of C3
0 1 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0
0
0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 0 1 0 1 1 0 0 0
C1 (0x74)
C2 (0x40) C3 (0x12)
Status Response for C1 (0x58)
sclk
cs
master_data
slave_data
0 0 0 0 0 0 0 0
C4 (0x00)
A0,A1,A2,A3
Valid Data
(with 32-bit granularity)
[31:0]
sclk
cs
master_data
slave_data
Status Response for C2 (0x58)
Last bit of Status
0 1 0 1 1 0 0 0
Status Response for C3(0x58)
Status Response for C4 (0x58)
(for each byte of address)
Status Response (0x0000_0058)
(with 32-bit granularity)
[31:0]
0 1 0 1 1 0 0 0
Status Response for
address bytes
Figure 20: Interactions in the physical interface (this structure is similar for
all following read/write operations)
The following is the procedure to be followed by the Host.
1.Send the commands C1, C2.
2.Read the response (R) from the SPI slave (RS9110-N-11-2X module).
Response will as described in Slave Response. Status 0x58 indicates that the
slave is ready.
3.Host should send the commands C3 and C4, followed by the 4 byte address
(corresponding to the memory location) and data. Status 0x54 indicates that
the device is busy. Host has to retry. Status 0x52 indicates a failure response.
The commands C1, C2, C3 and C4 are sent in the following sequence (explained
in
Bit ordering of SPI transmission/reception) : C1 first, then C2, C3 and finally C4.
The bit ordering is
C1[7] -> C1[6] … C1[0] -> C2[7] -> C2[6] … C2[0] -> C3[7] -> C3[6] … C3[0]
-> C4[7] -> C4[6] … C4[0]. That is, C1[7] bit is sent first, then C1[6] and so on.
Total data payload size should be 1 byte, or 2 bytes or multiples of 4 bytes in
this operation. For example, if 5 bytes need to be sent, it should be padded with
3 more dummy bytes to make it 8 bytes (multiple of 4) before sending
Original data <W0[7:0]> <W1[7:0]> <W2[7:0]> <W3[7:0]> <W4[7:0]>