--- Quote Start ---
Hi ..
I have made one code for 24 mhz to 434Khz (Frequency divider)..
Actually in my project, i have 24 Mhz clock freqency and i want to convert it into 434 Khz...
My code is..
--- Quote End ---
How close would you like to reach to 434k? Dividing by 56 is not too accurate (?)
Maybe you try this :
24000000,00 0,00000004167
434000,00 0,00000230415
55,29954
2,00
27,6498 !!!!!
28 0,00000116667
27 0,00000112500
28 0,00000116667
27 0,00000112500
28 0,00000116667
27 0,00000112500
28 0,00000116667
27 0,00000112500
28 0,00000116667
28 0,00000116667
-- -----------------
10 0,00001150000
-> 434782,61
Or do a kind of modulation, when jitter does not matter:
Start with 217 and keep adding 217 as long as 6000 are not reached yet, then toogle to output and decrease the number by 6000. In average you will obtain the required factor of the given freqs.