Medium Frequency R2R Sine Wave Generator 1.25 Mhz

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: tubular , created: 2013-04-11 | updated: 2013-04-11

 

This object generates a Medium Frequency Sine Wave into an R2R network using a "DDS precalculation" technique.

The cosine wave has N=16 steps, each step takes 4CLK for a max sine output of 1.25MHz@80MHz (1.56MHz@100MHz CLK)

The secret is to offset the steps by half a step in the time domain, eg for N=16, don't use 0,22.5,45 degrees but 11.25, 33.75, 56.25 degrees etc such that two successive samples near the peak have the same output value. Then instead of outputting the second identical sample, JMP to the start of the loop and repeat.The JMP and Output (MOV OUTA, SampleValue) both use 4 CLKs.

 

Original File Upload
AttachmentSize
Binary Data Medium_Frequency_R2R_Sine_Wave_Generator_1.25_Mhz_v01.spin5.13 KB

Comments

how get the values for other sineswaves? , for example for a sinewave  of 16 bits and more steps