Hi i am using AD9912 to generate frequency from 73MHz to 100MHz. while calculating tune word my decimal portion is getting truncated due to integer division. So my tuning accuracy is affected. I am using keil with ADuC7026. kindly help me in this aspect.my problem is software.
FTW is 48bit and my register are 32 bit. Also decimal truncation.
Formula is FTW = (Ftune*2^48)/Fs
Fs is 999mhz and Ftune is from 73-100mhz