Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
9a6ced7b
Commit
9a6ced7b
authored
Oct 25, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serial_dac856x.vhd: set gain
parent
eefe0fce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
serial_dac856x.vhd
modules/wr_dacs/serial_dac856x.vhd
+6
-1
No files found.
modules/wr_dacs/serial_dac856x.vhd
View file @
9a6ced7b
...
...
@@ -28,7 +28,7 @@ end serial_dac856x;
architecture
behav
of
serial_dac856x
is
-- Initialization state machine.
type
t_state
is
(
S_WAIT
,
S_CMD_SYNC
,
S_CMD_REF
,
S_DONE
);
type
t_state
is
(
S_WAIT
,
S_CMD_SYNC
,
S_CMD_REF
,
S_
CMD_GAIN
,
S_
DONE
);
signal
state
:
t_state
;
-- Serial clock generation.
...
...
@@ -138,6 +138,11 @@ begin
-- Set reference
buf
<=
"XX"
&
"111"
&
"XXX"
&
"XXXXXXXXXXXXXXX"
&
g_internal_ref
;
busy
<=
'1'
;
state
<=
S_CMD_GAIN
;
when
S_CMD_GAIN
=>
-- Set gain (1 on both channels)
buf
<=
"XX"
&
"010"
&
"XXX"
&
"XXXXXXXXXXXXXX"
&
"11"
;
busy
<=
'1'
;
state
<=
S_DONE
;
when
S_DONE
=>
-- Choose (with implicit priority the new data to be transmitted).
...
...
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