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
c2f36004
Commit
c2f36004
authored
Feb 20, 2024
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set Kp, Ki for KVG ocxo
parent
d66153d3
Pipeline
#5147
passed with stage
in 3 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
board.c
boards/babywr/board.c
+6
-6
No files found.
boards/babywr/board.c
View file @
c2f36004
...
...
@@ -272,22 +272,22 @@ void gpio_control_init()
static
void
babywr_spll_setup
(
void
)
{
int
implement_two_stages
=
0
;
// implement 2-stage ocxo lock later
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 SiT5359 values (Bandwidth ~20 Hz) */
gs
->
stages
[
0
].
kp
=
-
18
00
;
// use 1400 when X1 = 125 MHz
gs
->
stages
[
0
].
ki
=
-
25
;
gs
->
stages
[
0
].
kp
=
-
40
00
;
// use 1400 when X1 = 125 MHz
gs
->
stages
[
0
].
ki
=
-
8
;
gs
->
stages
[
0
].
lock_samples
=
10000
;
gs
->
stages
[
0
].
shift
=
12
;
/* once it's locked, the loop bandwidth is switched to low bandwidth to filter out WR link added phase noise */
gs
->
stages
[
1
].
kp
=
-
30
00
;
gs
->
stages
[
1
].
ki
=
-
5
;
gs
->
stages
[
1
].
kp
=
-
6
00
;
gs
->
stages
[
1
].
ki
=
-
2
;
gs
->
stages
[
1
].
lock_samples
=
10000
;
gs
->
stages
[
1
].
shift
=
1
6
;
gs
->
stages
[
1
].
shift
=
1
2
;
if
(
implement_two_stages
)
{
gs
->
n_stages
=
2
;
// 2 stages: OCXO
...
...
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