Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
Software for White Rabbit PTP Core
Commits
2c948468
Commit
2c948468
authored
Apr 23, 2019
by
li hongming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make clk out(OUT9 of AD9516) to output 10MHz.
parent
d195ca30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ad9516.c
dev/ad9516.c
+1
-1
ad9516_config.h
dev/ad9516_config.h
+3
-3
spll_external.c
softpll/spll_external.c
+2
-2
No files found.
dev/ad9516.c
View file @
2c948468
...
...
@@ -257,7 +257,7 @@ int ad9516_init(int scb_version)
ad9516_set_output_divider
(
oc_spi_base
,
3
,
4
,
0
);
// OUT3. 187.5 MHz. - not anymore
ad9516_set_output_divider
(
oc_spi_base
,
4
,
1
,
0
);
// OUT4. 500 MHz.
ad9516_set_output_divider
(
oc_spi_base
,
9
,
4
,
0
);
// OUT9. 125 MHz.
// ad9516_set_output_divider(oc_spi_base, 9, 50,
0); // OUT9. 125 MHz.
/*The following PLL outputs have been configured through the ad9516_base_config_34 register,
* so it doesn't need to replicate the configuration:
...
...
dev/ad9516_config.h
View file @
2c948468
...
...
@@ -130,10 +130,10 @@ const struct ad9516_reg ad9516_base_config_34[] = {
{
0x019B
,
0x11
},
{
0x019C
,
0x20
},
{
0x019D
,
0x00
},
{
0x019E
,
0x
33
},
{
0x019E
,
0x
00
},
{
0x019F
,
0x00
},
{
0x01A0
,
0x
11
},
{
0x01A1
,
0x
2
0
},
{
0x01A0
,
0x
CB
},
{
0x01A1
,
0x
0
0
},
{
0x01A2
,
0x00
},
{
0x01A3
,
0x00
},
//
...
...
softpll/spll_external.c
View file @
2c948468
...
...
@@ -160,10 +160,10 @@ int external_align_fsm(volatile struct spll_external_state *s)
if
(
align_sample
(
1
,
&
v
))
{
v
%=
ALIGN_SAMPLE_PERIOD
;
if
(
v
==
0
||
v
>=
ALIGN_SAMPLE_PERIOD
/
2
)
{
s
->
align_target
=
EXT_PERIOD_NS
;
s
->
align_target
=
0
;
s
->
align_step
=
-
100
;
}
else
if
(
s
>
0
)
{
s
->
align_target
=
0
;
s
->
align_target
=
ALIGN_SAMPLE_PERIOD
-
EXT_PERIOD_NS
;
s
->
align_step
=
100
;
}
...
...
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