aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2021-08-13 14:18:11 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2021-08-16 15:42:05 -0500
commit81a9cc1f8751d4f51778928d2f69547bdfcb4f1a (patch)
tree20a06a517b34f026ce85347492a4e75ea3337c71 /mpm
parent3688056acddee03c0cc1b42a066550482b256c57 (diff)
downloaduhd-81a9cc1f8751d4f51778928d2f69547bdfcb4f1a.tar.gz
uhd-81a9cc1f8751d4f51778928d2f69547bdfcb4f1a.tar.bz2
uhd-81a9cc1f8751d4f51778928d2f69547bdfcb4f1a.zip
N320: Reduce PLL lock time
- Reduce PLL1 DLD lock count to 4,000 (0xFA0), or 100ms - Change loop to check for lock every 10ms Signed-off-by: michael-west <michael.west@ettus.com>
Diffstat (limited to 'mpm')
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/lmk_rh.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py b/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py
index 062f50ddd..d2745b631 100644
--- a/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py
+++ b/mpm/python/usrp_mpm/dboard_manager/lmk_rh.py
@@ -216,8 +216,8 @@ class LMK04828Rh(LMK04828):
(0x159, (self.pll1_n_divider & 0x3F00) >> 8), # PLL1 N divider [13:8], default = d6
(0x15A, (self.pll1_n_divider & 0x00FF) >> 0), # PLL1 N divider [7:0], default = d0
(0x15B, 0xC7), # PLL1 PFD: negative slope for active filter / CP = 750 uA
- (0x15C, 0x27), # PLL1 DLD Count [13:8]
- (0x15D, 0x10), # PLL1 DLD Count [7:0]
+ (0x15C, 0x0F), # PLL1 DLD Count [13:8]
+ (0x15D, 0xA0), # PLL1 DLD Count [7:0]
(0x15E, 0x00), # PLL1 R/N delay, defaults = 0
(0x15F, 0x0B), # Status LD1 pin = PLL1 LD, push-pull output
(0x160, (self.pll2_r_divider & 0x0F00) >> 8), # PLL2 R divider [11:8];
@@ -242,11 +242,11 @@ class LMK04828Rh(LMK04828):
(0x173, 0x00), # Do not power down PLL2 or prescaler
))
- # Poll for PLL1/2 lock. Total time = 10 * 100 ms = 1000 ms max.
+ # Poll for PLL1/2 lock. Total time = 100 * 10 ms = 1000 ms max.
self.log.trace("Polling for PLL lock...")
locked = False
- for _ in range(10):
- time.sleep(0.100)
+ for _ in range(100):
+ time.sleep(0.01)
# Clear stickies
self.pokes8((
(0x182, 0x1), # Clear Lock Detect Sticky