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
6
Merge Requests
6
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
049ab18c
Commit
049ab18c
authored
Jan 16, 2020
by
Guido Visser
Committed by
Peter Jansweijer
Jun 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Choose proper Helper-PLL Kp, Ki values for SPEC7 on compile
parent
0864b409
Pipeline
#241
failed with stages
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
spll_helper.c
softpll/spll_helper.c
+17
-2
No files found.
softpll/spll_helper.c
View file @
049ab18c
...
...
@@ -17,12 +17,26 @@ void helper_init(struct spll_helper_state *s, int ref_channel)
/* Phase branch PI controller */
s
->
pi
.
y_min
=
5
;
s
->
pi
.
y_max
=
(
1
<<
DAC_BITS
)
-
5
;
#if defined(CONFIG_WR_NODE)
s
->
pi
.
kp
=
-
750
;
//(int)(0.3 * 32.0 * 16.0); // / 2;
#if defined(CONFIG_WR_SWITCH)
if
(
ljd_present
)
{
s
->
pi
.
kp
=
2000
;
s
->
pi
.
ki
=
15
;
}
else
{
s
->
pi
.
kp
=
150
;
// / 2;
s
->
pi
.
ki
=
2
;
// / 2;
}
#elif defined(CONFIG_WR_NODE)
s
->
pi
.
kp
=
-
150
;
//(int)(0.3 * 32.0 * 16.0); // / 2;
s
->
pi
.
ki
=
-
2
;
//(int)(0.03 * 32.0 * 3.0); // / 2;
if
(
CONFIG_WR_NODE_SPEC7
)
{
s
->
pi
.
kp
=
-
800
;
// / 2;
s
->
pi
.
ki
=
-
10
;
// / 2;
}
#else
s
->
pi
.
kp
=
150
;
s
->
pi
.
ki
=
2
;
#error "Please set CONFIG for wr switch or wr node or SPEC7"
#endif
s
->
pi
.
anti_windup
=
1
;
...
...
@@ -31,6 +45,7 @@ void helper_init(struct spll_helper_state *s, int ref_channel)
s
->
ld
.
lock_samples
=
10000
;
s
->
ld
.
delock_samples
=
100
;
s
->
ref_src
=
ref_channel
;
pp_printf
(
"Helper PLL PI Values: Kp %i
\t
Pi %i
\n
"
,
s
->
pi
.
kp
,
s
->
pi
.
ki
);
}
int
helper_update
(
struct
spll_helper_state
*
s
,
int
tag
,
...
...
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