User's Manual

SPI
Re
a
reg
i
No
t
or t
h
command
t
a
d status 1
i
ster
6.6
E
t
e: Please b
e
h
e System
w
AI6
0
Fo
t
ype Pr
o
Ste
p
Set
im
p
I
n
R
Ste
p
Ste
p
wil
l
au
8
E
xampl
e
e
ware that
w
w
ill ha
n
0
60
H
r detail imple
m
o
cedures
p
1:initializati
o
up register t
o
p
lementation
i
n
our implem
R
EG32(SPI_
A
REG32(SPI
_
p
2:write com
m
p
3:trigger H
W
l
know many
8
spi_data
b
yte
e
for usi
n
w
hen progr
a
H
Us
e
-37-
mentation,pl
e
o
n
o
let HW kno
w
i
n drv_flash_
i
m
entation. I all
o
A
DDR_CMD
_
_
ADDR_DAT
A
m
and into au
8
W
to send co
m
bytes comma
n
e
buffer.
ng SPI
F
a
m data int
o
e
r M
a
e
ase see drv_
fl
w
the exact sr
a
i
nt():
o
cate two (25
_
SRAM_AD
D
A
IN_SRAM
_
8
spi_cmd[0].
m
mand.It mea
n
n
d need to be
F
lash A
P
o
spi flash.
I
a
nual
Copyrigh
l
ash_page_pr
o
a
m address o
f
6+4) byte bu
f
D
R) = (unsig
n
_
ADDR) = (u
n
n
s you set up
t
sent out. An
d
P
I
I
nterrupt m
u
h
t@2016 A
o
gram.
f
spi comman
d
f
fers.
n
ed int)(&au8
s
n
signed int)(
&
t
he command
d
then read
d
m
ust be disa
b
c
SiP
d
. You can se
e
s
pi_cmd[0]);
&
au8spi_data[
length,thus
H
d
ata f
r
om
b
le
d
e
the
0]);
H
W