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
2a2a8dfb
Commit
2a2a8dfb
authored
Feb 12, 2024
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Settings for (deprecated) Morion MV137 on 100MHzInTheLoop v1
parent
b7682436
Pipeline
#5127
passed with stage
in 4 minutes and 5 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
board.c
boards/spec7/board.c
+8
-8
board.h
boards/spec7/board.h
+3
-3
ppsi
ppsi
+1
-1
spll_helper.c
softpll/spll_helper.c
+4
-1
No files found.
boards/spec7/board.c
View file @
2a2a8dfb
...
...
@@ -88,17 +88,17 @@ int implement_two_stages = 1; // implement 2-stage ocxo lock later
/* configure a suitable PI gain schedule for the SoftPLL: */
spll_gain_schedule_t
*
gs
=
&
spll_main_ocxo_gain_sched
;
/* we start with the default values (
Bandwidth 100 Hz
) */
gs
->
stages
[
0
].
kp
=
-
40
00
;
gs
->
stages
[
0
].
ki
=
-
10
0
;
gs
->
stages
[
0
].
lock_samples
=
1
0000
;
/* we start with the default values (
bandwisth ~100 Hz, Lock reasonably fast
) */
gs
->
stages
[
0
].
kp
=
-
55
00
;
gs
->
stages
[
0
].
ki
=
-
3
0
;
gs
->
stages
[
0
].
lock_samples
=
3
0000
;
gs
->
stages
[
0
].
shift
=
12
;
/* once it's locked, the loop bandwidth is switched to
1
5 Hz to filter out WR link added phase noise */
gs
->
stages
[
1
].
kp
=
-
6
00
;
gs
->
stages
[
1
].
ki
=
-
2
;
/* once it's locked, the loop bandwidth is switched to
2.
5 Hz to filter out WR link added phase noise */
gs
->
stages
[
1
].
kp
=
-
30
00
;
gs
->
stages
[
1
].
ki
=
-
5
;
gs
->
stages
[
1
].
lock_samples
=
10000
;
gs
->
stages
[
1
].
shift
=
1
2
;
gs
->
stages
[
1
].
shift
=
1
6
;
if
(
implement_two_stages
)
{
gs
->
n_stages
=
2
;
// 2 stages: OCXO
...
...
boards/spec7/board.h
View file @
2a2a8dfb
...
...
@@ -30,9 +30,9 @@
#define REF_CLOCK_PERIOD_PS 16000
#define REF_CLOCK_FREQ_HZ 62500000
/*
Accomodate 20 bit MAX5719A
*/
#define BOARD_SPLL_DAC_BITS
20
#define BOARD_SPLL_DIV_BITS
4
/*
100MHzInTheLoop V1 (Morion MV137) is based on 16 bit DAC LTC2641
*/
#define BOARD_SPLL_DAC_BITS
16
#define BOARD_SPLL_DIV_BITS
0
/* Maximum number of simultaneously created sockets */
#define NET_MAX_SOCKETS 12
...
...
ppsi
@
b1457bc6
Subproject commit
49833dde2fcbed69df4191cb4901d1f533e0e00
9
Subproject commit
b1457bc6f6721f28df0fcd004d6b6327105eb0f
9
softpll/spll_helper.c
View file @
2a2a8dfb
...
...
@@ -16,9 +16,12 @@ void helper_very_init( struct spll_helper_state *s )
/* Phase branch PI controller */
s
->
pi
.
y_min
=
(
5
<<
BOARD_SPLL_DIV_BITS
);
s
->
pi
.
y_max
=
(
1
<<
BOARD_SPLL_DAC_BITS
)
-
(
5
<<
BOARD_SPLL_DIV_BITS
);
#if defined(CONFIG_WR_NODE)
#if defined(CONFIG_WR_NODE)
&& !defined(CONFIG_TARGET_SPEC7)
s
->
pi
.
kp
=
-
150
;
s
->
pi
.
ki
=
-
2
;
#elif defined(CONFIG_WR_NODE) && defined(CONFIG_TARGET_SPEC7)
s
->
pi
.
kp
=
-
750
;
s
->
pi
.
ki
=
-
2
;
#else
s
->
pi
.
kp
=
150
;
s
->
pi
.
ki
=
2
;
...
...
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