unsigned char RX_dat[20];
unsigned char RXflage;
unsigned long Rx_Freq;
unsigned long HMC704_03;
double temp;
unsigned long temp_ulong;
unsigned long cfgdat;
void Set8562(unsigned long datin)
{
unsigned long dat;
unsigned char i = 0;
unsigned char ii = 0;
DAC8562_CS = 0;
dat = datin;
dat = dat << 8;
for(i = 0;i < 24;i++)
{
DAC8562_CLK = 1;
DAC8562_DAT = dat & 0x80000000;
dat = dat << 1;
DAC8562_CLK = 0;
}
DAC8562_DAT = 0;
DAC8562_CLK= 0;
dat = dat << 1;
DAC8562_CS = 1;
}