2009-02-03 09:30:52     Sine wave generation BF561

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2009-02-03 09:30:52     Sine wave generation BF561

John Redford (UNITED KINGDOM)

Message: 68771   

 

Hi, I would like to generate a sine wave within the dsp (on core b) in order to mimic real audio being passed through our inter-core-comms system to a userspace app running on core a.

 

The trouble is, the sin function in the standard cmath library doesn't seem to be available - Is there a Blackfin equivalent?

 

We just need a tone of a specific frequency lasting for a set period of time, to be used as test data.

 

 

 

Thanks in advance,

 

John Redford.

QuoteReplyEditDelete

 

 

2009-02-03 09:51:00     Re: Sine wave generation BF561

D V (ITALY)

Message: 68772   

 

in the audio test tools there is  the application "tone" it generates a 1000Hz tone by default

QuoteReplyEditDelete

 

 

2009-02-03 10:22:35     Re: Sine wave generation BF561

John Redford (UNITED KINGDOM)

Message: 68773   

 

Thanks for the speedy reply - However, I am having trouble finding the audio test tools - I cannot find anything called tone... just asterisk/apps/app_miliwatt.c which is remotely similar...

 

Could you possibly point me in the right direction please? I presume we are looking in the uClinuxDist/user/ dir?

 

Thanks in advance,

 

John Redford.

QuoteReplyEditDelete

 

 

2009-02-03 10:31:02     Re: Sine wave generation BF561

John Redford (UNITED KINGDOM)

Message: 68774   

 

I forgot to mention that the sin function is needed in code running on core b - which is a bare metal app.

 

Cheers

QuoteReplyEditDelete

 

 

2009-02-03 11:18:34     Re: Sine wave generation BF561

D V (ITALY)

Message: 68778   

 

make menuconfig

 

Customize Application/library Settings

 

 

 

In the menu Blackfin Test Programs

 

item Audio test program

 

 

 

bye

 

emag

QuoteReplyEditDelete

 

 

2009-02-03 12:15:41     Re: Sine wave generation BF561

Mike Frysinger (UNITED STATES)

Message: 68787   

 

using cos() with bfin-elf works just fine for me.  are you linking with -lm as documented ?

Attachments

    Outcomes