MATLAB Answers

can someone please help about NCO HDL optimized block. How to generate a simple sine wave with it. I am gettting a single straight line as output for what ever phase increment i use. can someone help how to set sampling frequency as well

12 views (last 30 days)
iam always getting something like this but not a sine waveScreenshot (25).png

  0 Comments

Sign in to comment.

Accepted Answer

Bharath Venkataraman
Bharath Venkataraman on 26 Mar 2019
Edited: Bharath Venkataraman on 10 Apr 2019
Attached is a simple NCO which generates a sine wave. Phase increment is set to 4 and accumulator size is 8 bits, so you will see a full period in 2^8/4 = 64 steps.

  7 Comments

Show 4 older comments
Bharath Venkataraman
Bharath Venkataraman on 26 Aug 2019
I am able to run this model in R2018b without issues. Can you attach the model you are using and which version of MATLAB you are running?

Sign in to comment.

More Answers (0)