Reply by sotn...@scideco.ru June 17, 20102010-06-17
As you're a beginner, i'd also recommend you to write your own talkthrough code from the scratch (of course if your time budget permits). I haven't worked with BF518f EZ-Board, but as i can guess from my experience with BF527, the examples that ADI provides with their latest boards are based on the device drivers solely. They are very helpful, of course, but IMHO you'll understand main aspects of BF programming (including interrupt servicing, DMA, builtin function usage and so on) much more quickly if you start with writing your own code not using system service libraries and device drivers. After that moving to SSL and DD will become an easy task.

--
Alexander

Hi,
>
>I am a very new (just graduated) engineer. And my first task in my first
>(new) job is to learn the BF518f (with the EZ-kit-Board). I'm using the
>VisualDsp++5.
>
>My only experience is from the university. - I have written quite a few C
>programs -including threads etc. those programs were always implemented and
>run on a pc. I don't have to much experience with writing to an embedded
>processor - controling its I/O etc..
>
>Yesterday and today, i've googled quite a lot in order to find a very easy
>to understand manual for beginners. i haven't found one yet.
>
>*my task is: receive audio input, sample it (of course) perform a fft , and
>output it back to pc.*
>
>* later on, i while have to do some analisys on the
>frequency domain (but i will leave that for now).*
>
>I have some questions:
>
>1) I read that the whole BF family should be compatible to one and other -
>i.e. projects for BFXX could run after rebuild on a different BF processor.
>is that so?
>
>2) I haven't found a step by step tutorial for beginers. is there one?
>
>3) i have found a code that is called fft_demo (provided with the cd) - i
>managed to build and run it, and it works nice. Is there a way i can modify
>it so that instead of generating a sine (sweep on the freq) and then doing
>the fft, it can perform the fft on my sampled audio signal.
>
>4) i also found the code called "Audio TT" which receives audio and simply
>outputs it - is it possible to combine the two codes somehow (with
>modifications) so that the audio input is not otputed immediately but
>instead it goes to a fft module. -which is then outputed to the pc.
>
>5) i guess in general I'm asking for help :-).
>
>Thanks,
>
>Chagai
Reply by Mike Rosing June 16, 20102010-06-16
On Wed, 16 Jun 2010, Chagai Ensenberg wrote:

> I am a very new (just graduated) engineer. And my first task in my first
> (new) job is to learn the BF518f (with the EZ-kit-Board). I'm using the
> VisualDsp++5.

Congratulations!

> *my task is: receive audio input, sample it (of course) perform a fft , and
> output it back to pc.*
>
> * later on, i while have to do some analisys on the
> frequency domain (but i will leave that for now).*
>
> I have some questions:
>
> 1) I read that the whole BF family should be compatible to one and other -
> i.e. projects for BFXX could run after rebuild on a different BF processor.
> is that so?

Yes, the core is the same. There might be a few instructions different,
but if you write in C the compiler will take care of that.

> 2) I haven't found a step by step tutorial for beginers. is there one?

Not really. Just play with the demos and try things. You learn more when
things break and you have to fix them.

> 3) i have found a code that is called fft_demo (provided with the cd) - i
> managed to build and run it, and it works nice. Is there a way i can modify
> it so that instead of generating a sine (sweep on the freq) and then doing
> the fft, it can perform the fft on my sampled audio signal.

You bet! Just start hacking the code - copy it and give it a new name,
then change it to accept you data. Look at the "talk-thru" example
program and combine that with the fft_demo. You'll be on your way to
finishing your project pretty quickly.

> 4) i also found the code called "Audio TT" which receives audio and simply
> outputs it - is it possible to combine the two codes somehow (with
> modifications) so that the audio input is not otputed immediately but
> instead it goes to a fft module. -which is then outputed to the pc.

TT = talk-thru, so yes :-)

> 5) i guess in general I'm asking for help :-).

Break things, and figure out what broke, then break them again. The more
mistakes you make, the faster you will learn. Always have a position that
works (the demo), make a change, figure out why the change didn't work and
make it work, then make another change. When you get stuck, feel free to
ask questions, there are a lot of people here with a lot of experience.

Patience, persistence, truth,
Dr. mike
Reply by George Kadziolka June 16, 20102010-06-16
Hi Chagai,

There's a few resources you have available.

1) Analog Devices has a number of short online video tutorials for
developing with Blackfin (and Sharc)

http://www.analog.com/en/embedded-processing-dsp/Blackfin/processors/Blackfi
n_bold_training/fca.html

2) There are a couple books on working with Blackfin including
"Embedded Media Processing" by Katz and Gentile, and "Embedded Signal
Processing with the Micro Signal Architecture" by Gan and Kuo.

3) I also work with Analog Devices to create and run 3.5 day workshops
on developing with Blackfin and Sharc. The classes are typically held in
Norwood, MA and Munich Germany, but they can be held anywhere in the world.
Contact me for more info.

http://www.kaztek.com/ks_training.htm

Hope this helps.

Cheers,

George

George Kadziolka

Kaztek Systems

i...@kaztek.com

www.kaztek.com

From: a... [mailto:a...] On Behalf Of Chagai
Ensenberg
Sent: Wednesday, June 16, 2010 4:32 AM
To: A...
Subject: [adsp] executing fft on an input stream

Hi,

I am a very new (just graduated) engineer. And my first task in my first
(new) job is to learn the BF518f (with the EZ-kit-Board). I'm using the
VisualDsp++5.

My only experience is from the university. - I have written quite a few C
programs -including threads etc. those programs were always implemented and
run on a pc. I don't have to much experience with writing to an embedded
processor - controling its I/O etc..

Yesterday and today, i've googled quite a lot in order to find a very easy
to understand manual for beginners. i haven't found one yet.

*my task is: receive audio input, sample it (of course) perform a fft , and
output it back to pc.*

* later on, i while have to do some analisys on the
frequency domain (but i will leave that for now).*

I have some questions:

1) I read that the whole BF family should be compatible to one and other -
i.e. projects for BFXX could run after rebuild on a different BF processor.
is that so?

2) I haven't found a step by step tutorial for beginers. is there one?

3) i have found a code that is called fft_demo (provided with the cd) - i
managed to build and run it, and it works nice. Is there a way i can modify
it so that instead of generating a sine (sweep on the freq) and then doing
the fft, it can perform the fft on my sampled audio signal.

4) i also found the code called "Audio TT" which receives audio and simply
outputs it - is it possible to combine the two codes somehow (with
modifications) so that the audio input is not otputed immediately but
instead it goes to a fft module. -which is then outputed to the pc.

5) i guess in general I'm asking for help :-).

Thanks,

Chagai
Reply by Chagai Ensenberg June 16, 20102010-06-16
Hi,

I am a very new (just graduated) engineer. And my first task in my first
(new) job is to learn the BF518f (with the EZ-kit-Board). I'm using the
VisualDsp++5.

My only experience is from the university. - I have written quite a few C
programs -including threads etc. those programs were always implemented and
run on a pc. I don't have to much experience with writing to an embedded
processor - controling its I/O etc..

Yesterday and today, i've googled quite a lot in order to find a very easy
to understand manual for beginners. i haven't found one yet.

*my task is: receive audio input, sample it (of course) perform a fft , and
output it back to pc.*

* later on, i while have to do some analisys on the
frequency domain (but i will leave that for now).*

I have some questions:

1) I read that the whole BF family should be compatible to one and other -
i.e. projects for BFXX could run after rebuild on a different BF processor.
is that so?

2) I haven't found a step by step tutorial for beginers. is there one?

3) i have found a code that is called fft_demo (provided with the cd) - i
managed to build and run it, and it works nice. Is there a way i can modify
it so that instead of generating a sine (sweep on the freq) and then doing
the fft, it can perform the fft on my sampled audio signal.

4) i also found the code called "Audio TT" which receives audio and simply
outputs it - is it possible to combine the two codes somehow (with
modifications) so that the audio input is not otputed immediately but
instead it goes to a fft module. -which is then outputed to the pc.

5) i guess in general I'm asking for help :-).

Thanks,

Chagai