This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to use sin function in code composer studio

Hi Friends,

I am trying to generate sine wave with external DAC, I am getting sine wave with lookup table but I want to use sin() function available in math.h.

I want to know this sin() function return radian or angle, or how can I use sin() function to create value.

I have formula:

data  = (uint16)((sin(Count*(360/Number of Sample))*2048)+2048);

for 12bit DAC.

Regards,

Arvind.