Selaa lähdekoodia

Убрано ограничение частоты ad9912

zaytsev.mikhail.olegovich@gmail.com 1 vuosi sitten
vanhempi
commit
fb5ff1b5bc
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 6
      Devices/ad9912.c

+ 0 - 6
Devices/ad9912.c

@@ -62,9 +62,6 @@ void ad9912_init(reg_addr_pci* pci_bar_1) {
 double ad9912_set_main_band(double lmx_freq,double f_pd) {
     // Divide the frequncy by the old value of the phase detector frequency and only left with the integer part
     uint32_t N = (uint32_t) (lmx_freq/f_pd);
-     if (f_pd >= 300e6) {
-        N = N + 10;
-    }
     if (lmx_freq <= 12500e6) {
         if (N < 28){
             N = 28;
@@ -163,9 +160,6 @@ double ad9912_set_out_of_band(double lmx_freq,double f_pd) {
 
     // Divide the frequncy by the old value of the phase detector frequency and only left with the integer part
     uint32_t N = (uint32_t) (f_vco/f_pd);
-    if (f_pd >= 300e6) {
-        N = N + 10;
-    }
     if (f_vco <= 12500e6) {
         if (N < 28){
             N = 28;