Re: Si570 Set Frequency

Ambro IW2FVO
 

for a better explanation have a look at this part of the code:

//--- First checks for N1=1 and HS_DIV between 4 & 11

i=1;

for (j = 0; j <= 5; j++)

{ f_dco = (uint64_t)Fout * (uint64_t)HS_Div_Vect[j];

if ( (f_dco >= MIN_FRQ_DCO) && (f_dco <= MAX_FRQ_DCO) )

{ found = TRUE;

N1 = 1;

HS_Div = HS_Div_Vect[j];

HS_Div_Reg = HS_Div-4; //the value to write in Si570reg must be subtracted by 4

break;

}

}
I do attach a spread sheet (if could be useful) .
73, iw2fvo, Ambrogio
North Italy

Join PHSNA@groups.io to automatically receive all group messages.