Copyright
c
2016, SiFive Inc. All rights reserved.
45
R
eserve
d
31
20
len
19
16
R
eserve
d
15
4
dir
3
endian
2
proto
1
0
Figure 13.8: Format of
fmt
register.
Value
Description
Data Pins
0
Single
DQ0 (MOSI), DQ1 (MISO)
1
Dual
DQ0, DQ1
2
Quad
DQ0, DQ1, DQ2, DQ3
Table 13.5: SPI protocol. Unused DQ pins are tri-stated.
Value
Description
0
Transmit most-significant bit (MSB) first
1
Transmit least-significant bit (LSB) first
Table 13.6: SPI endianness.
Value
Description
0
Rx: For dual and quad protocols, the DQ pins are tri-stated. For the single
protocol, the DQ0 pin is driven with the transmit data as normal.
1
Tx: The receive FIFO is not populated.
Table 13.7: SPI I/O direction.
Transmit Data Register (
txdata
)
Writing to the
txdata
register loads the transmit FIFO with the value contained in the
data
field.
For
fmt
.
len
<
8
, values should be left-aligned when
fmt.endian
= MSB and right-aligned when
fmt.endian
= LSB.
The
full
flag indicates whether the transmit FIFO is ready to accept new entries; when set, writes
to
txdata
are ignored. The
data
field returns
0x00
when read.
full
31
R
eserve
d
30
8
data
7
0
Figure 13.9: Format of
txdata
register.
Receive Data Register (
rxdata
)
Reading the
rxdata
register dequeues a frame from the receive FIFO. For
fmt
.
len
<
8
, values
are left-aligned when
fmt.endian
= MSB and right-aligned when
fmt.endian
= LSB.
Summary of Contents for E300
Page 1: ...SiFive E300 Platform Reference Manual Version 1 0 1 c SiFive Inc ...
Page 2: ...2 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 4: ...ii SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 12: ...4 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 14: ...6 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 22: ...14 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 32: ...24 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 40: ...32 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 56: ...48 SiFive E300 Platform Reference Manual Version 1 0 1 ...
Page 60: ...52 SiFive E300 Platform Reference Manual Version 1 0 1 ...