Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Beam Positoning Monitor - Gateware
Commits
4cc5ee8e
Commit
4cc5ee8e
authored
Apr 01, 2013
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emb-sw/*: add delay to specific channels and enable ADC data input
parent
4567a4c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2008 additions
and
2008 deletions
+2008
-2008
dbe.vhd
embedded-sw/dbe.vhd
+1998
-1998
dbe_main.c
embedded-sw/dbe_main.c
+8
-8
fmc516.c
embedded-sw/fmc/fmc516/fmc516.c
+2
-2
No files found.
embedded-sw/dbe.vhd
View file @
4cc5ee8e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
embedded-sw/dbe_main.c
View file @
4cc5ee8e
...
...
@@ -448,17 +448,17 @@ void fmc516_test()
i
,
fmc516_isla216_get_chipver
(
i
));
}
//for (i = 0; i < FMC516_NUM_ISLA216; ++i) {
// pp_printf("> FMC516_ISLA216_ADC%d test mode off\n", i);
// fmc516_isla216_write_byte(ISLA216_OUT_TESTMODE(ISLA216_OUT_TESTIO_OFF),
// ISLA216_TESTIO_REG, i);
//}
for
(
i
=
0
;
i
<
FMC516_NUM_ISLA216
;
++
i
)
{
fmc516_isla216_test_ramp
(
i
);
pp_printf
(
"> FMC516_ISLA216_ADC%d: ramp test enabled!
\n
"
,
i
);
pp_printf
(
"> FMC516_ISLA216_ADC%d test mode off
\n
"
,
i
);
fmc516_isla216_write_byte
(
ISLA216_OUT_TESTMODE
(
ISLA216_OUT_TESTIO_OFF
),
ISLA216_TESTIO_REG
,
i
);
}
//for (i = 0; i < FMC516_NUM_ISLA216; ++i) {
// fmc516_isla216_test_ramp(i);
// pp_printf("> FMC516_ISLA216_ADC%d: ramp test enabled!\n", i);
//}
//for (i = 0; i < FMC516_NUM_ISLA216; ++i) {
// fmc516_isla216_test_midscale(i);
// pp_printf("> FMC516_ISLA216_ADC%d: test miscale enabled!\n", i);
...
...
embedded-sw/fmc/fmc516/fmc516.c
View file @
4cc5ee8e
...
...
@@ -84,8 +84,8 @@ void fmc516_init_regs(unsigned int id)
// Delay the falling edge of all channels
fmc516_fe_rg_dly
(
id
,
FMC516_ISLA216_ADC0
,
0
,
0
,
0
,
0
);
fmc516_fe_rg_dly
(
id
,
FMC516_ISLA216_ADC1
,
0
,
0
,
0
,
0
);
fmc516_fe_rg_dly
(
id
,
FMC516_ISLA216_ADC2
,
0
,
0
,
0
,
0
);
fmc516_fe_rg_dly
(
id
,
FMC516_ISLA216_ADC1
,
0
,
0
,
1
,
0
);
fmc516_fe_rg_dly
(
id
,
FMC516_ISLA216_ADC2
,
0
,
0
,
1
,
0
);
fmc516_fe_rg_dly
(
id
,
FMC516_ISLA216_ADC3
,
0
,
0
,
0
,
0
);
}
...
...
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