Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
euro-adc-65m-14b-40cha-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
eurocard
euro-adc-65m-14b-40cha
euro-adc-65m-14b-40cha-gw
Commits
63bf04c1
Commit
63bf04c1
authored
Aug 21, 2017
by
Dave Newbold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating script
parent
2d791335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spi_test.py
projects/64ch/software/spi_test.py
+4
-2
No files found.
projects/64ch/software/spi_test.py
View file @
63bf04c1
...
...
@@ -19,7 +19,7 @@ spi.getNode("ctrl").write(0x2410) # 16b transfer length, auto CSN
spi
.
getNode
(
"ss"
)
.
write
(
0x1
)
# Enable SPI slave 0
hw
.
dispatch
()
for
i
in
range
(
256
):
for
i
in
range
(
0x10000
):
di
=
random
.
randint
(
0x00
,
0xff
)
...
...
@@ -39,4 +39,6 @@ for i in range(256):
d
=
spi
.
getNode
(
"d0"
)
.
read
()
c
=
spi
.
getNode
(
"ctrl"
)
.
read
()
hw
.
dispatch
()
print
hex
(
di
),
hex
(
d
&
0xff
),
hex
(
c
)
if
di
!=
(
d
&
0xff
)
or
(
c
&
0x100
)
!=
0
:
print
"Error"
:,
hex
(
i
),
hex
(
di
),
hex
(
d
),
hex
(
c
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment