| 1 | /*********************************************************************** |
| 2 | * The header extends adf4351_regs_t to work and initialize |
| 3 | * the Per Vices Phi transciever version TP3. |
| 4 | * |
| 5 | * (c) 2012 Per Vices Corporation |
| 6 | * Licensed under the GPL v3. |
| 7 | **********************************************************************/ |
| 8 | |
| 9 | #include "adf4351_regs.hpp" |
| 10 | |
| 11 | class fsynth_t : public adf4351_regs_t { |
| 12 | public: |
| 13 | //This is the initialization routine specific to revision TP3. |
| 14 | //Pfd = 31.25MHz (as per header file), 156.25MHz reference, DIV=5. |
| 15 | fsynth_t() { |
| 16 | //Initialize to 555.000MHz |
| 17 | frac_12_bit = 1; |
| 18 | int_16_bit = 71; |
| 19 | mod_12_bit = 26; |
| 20 | phase_12_bit = 1; |
| 21 | prescaler = PRESCALER_4_5; |
| 22 | phase_adj = PHASE_ADJ_OFF; |
| 23 | counter_reset = COUNTER_RESET_DISABLED; |
| 24 | cp_three_state = CP_THREE_STATE_DISABLED; |
| 25 | power_down = POWER_DOWN_DISABLED; |
| 26 | pd_polarity = PD_POLARITY_POSITIVE; |
| 27 | ldp = LDP_10NS; |
| 28 | ldf = LDF_FRAC_N; //If in Int-N mode, set to LDF_INT_N |
| 29 | charge_pump_current = CHARGE_PUMP_CURRENT_0_31MA; |
| 30 | double_buffer = DOUBLE_BUFFER_DISABLED; |
| 31 | r_counter_10_bit = 1; |
| 32 | reference_divide_by_2 = REFERENCE_DIVIDE_BY_2_DISABLED; |
| 33 | reference_doubler = REFERENCE_DOUBLER_DISABLED; |
| 34 | muxout = MUXOUT_DLD; |
| 35 | low_noise_and_spur = LOW_NOISE_AND_SPUR_LOW_SPUR; |
| 36 | clock_divider_12_bit = 150; |
| 37 | clock_div_mode = CLOCK_DIV_MODE_CLOCK_DIVIDER_OFF; |
| 38 | cycle_slip_reduction = CYCLE_SLIP_REDUCTION_DISABLED; |
| 39 | charge_cancel = CHARGE_CANCEL_DISABLED; //Can be used if in Int-N. Not recommended for Frac-N. |
| 40 | antibacklash_pulse = ANTIBACKLASH_PULSE_6NS; //Can be 3NS (Reduced Spurs + Phase noise) if in Int-N. Not recommended for Frac-N. |
| 41 | band_sel_clk_mode = BAND_SEL_CLK_MODE_LOW; //HIGH is suitable for high PFD frequencies + fast lock (only ADF4351) LOW has 50 compatability. |
| 42 | output_power = OUTPUT_POWER_5DBM; |
| 43 | rf_output_enable = RF_OUTPUT_ENABLE_ENABLED; |
| 44 | aux_output_power = AUX_OUTPUT_POWER_M4DBM; |
| 45 | aux_output_enable = AUX_OUTPUT_ENABLE_DISABLED; |
| 46 | aux_output_select = AUX_OUTPUT_SELECT_DIVIDED; |
| 47 | mute_till_lock_detect = MUTE_TILL_LOCK_DETECT_MUTE_DISABLED; |
| 48 | vco_power_down = VCO_POWER_DOWN_VCO_POWERED_UP; |
| 49 | band_select_clock_div = 200; |
| 50 | rf_divider_select = RF_DIVIDER_SELECT_DIV4; |
| 51 | feedback_select = FEEDBACK_SELECT_FUNDAMENTAL; //DIVIDED for higher output power. |
| 52 | ld_pin_mode = LD_PIN_MODE_DLD; |
| 53 | // Nothing. |
| 54 | }; |
| 55 | }; |