+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Advanced Member level 4
    Points: 12,554, Level: 26
    ahmad_abdulghany's Avatar
    Join Date
    Apr 2005
    Location
    San Jose, California, USA
    Posts
    1,209
    Helped
    238 / 238
    Points
    12,554
    Level
    26

    How to write a code to generate on an 8-bit port (or more) a sinusoidal wave?

    Hello
    How can I write a code to generate on an 8-bit port (or more) a sinusoidal wave in a simple manner??

    Thanks in advance

    •   Alt27th January 2006, 12:24

      advertising

        
       

  2. #2
    Full Member level 3
    Points: 3,235, Level: 13

    Join Date
    Jan 2005
    Location
    India
    Posts
    173
    Helped
    15 / 15
    Points
    3,235
    Level
    13

    VHDL code Question

    if u just need a single tone, then u can store the values for the sine in a ROM and throw it out on each clock.

    If u need different tones to be generated, then u have to implement a Phase Accumulator also.This concept u can get it easily if u go through any of "DDS" or "NCO" implementation. search in google for NCO or DDS.



--[[ ]]--