Reply by sopapo September 28, 20072007-09-28
Yeap, I was in the same path, some months ago. So my advice is simply, learn 
some C, then use de examples written in C.
And try to learn assembler only if you need a high speed application. You 
should invest at least one or to months.

For the basic arthmetics you don't have to worry, just simply use the 
libraries that are include for your processor, like math.h, complex.h, 
vector.h, matrix.h, filter.h (FFT and stuff), transform.h and so on. You 
don't need to actualy programm each calculation, just use it from the 
includes, si you can focus in your own application.
Resd also the PDF files of VisualDSP about C/C++ and  runtime libraries, 
there is a new version right now, 5.0

BTW, the analog devices website is f***ing crap.

Good luck


"MarekJ" <Marek.Jaskula@ps.pl> wrote in message 
news:1190794342.793748.293600@50g2000hsm.googlegroups.com...
> Hello, > > I have 21161N Ezkit lite with VisualDSP 4.5. I need very urgent to > learn > assembler and C on this processor. > > Could you help me and send as simple as possible program in assembler > and > also in C to start learnig? (for example arithemtic oper.) > > Marek >
Reply by Jerry Avins September 26, 20072007-09-26
MarekJ wrote:
> On 26 Wrz, 11:05, "mnentwig" <mnent...@elisanet.fi> wrote: >> Do yourself a favour and learn C on a Unix (Linux) machine, not on a >> microcontroller. It's hard enough with a big screen, real keyboard and >> fast compiler. >> >> -mn > > So, do you think that asm is better than C on DSPs?
No, not at first and maybe not ever (but it would suit my preferences). Learning C and learning the architecture of a processor are unrelated. Jerry -- Engineering is the art of making what you want from things you can get. &macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;&macr;
Reply by mnentwig September 26, 20072007-09-26
>So, do you think that asm is better than C on DSPs?
No, that was not what I wanted to say. C is best for some problems, assembler for others. But you said you had to learn both, and learning C is easiest in a Unix environment. That's my point. Example (from a reasonably standard linux account:) - Copy into a.c #include <stdio.h> int main(void){ int a=2; int b=3; printf("%i %i\n", a*b, a+b); return 0; } command line: gcc -Wall a.c /a.out result: 6 5 simple as that... You can learn C using a microcontroller or whatever, but it will take you much longer. -mn
Reply by MarekJ September 26, 20072007-09-26
On 26 Wrz, 11:05, "mnentwig" <mnent...@elisanet.fi> wrote:
> Do yourself a favour and learn C on a Unix (Linux) machine, not on a > microcontroller. It's hard enough with a big screen, real keyboard and > fast compiler. > > -mn
So, do you think that asm is better than C on DSPs?
Reply by mnentwig September 26, 20072007-09-26
Do yourself a favour and learn C on a Unix (Linux) machine, not on a
microcontroller. It's hard enough with a big screen, real keyboard and
fast compiler.

-mn
Reply by MarekJ September 26, 20072007-09-26
On 26 Wrz, 10:53, Andor <andor.bari...@gmail.com> wrote:
> On 26 Sep., 10:33, MarekJ <Marek.Jask...@ps.pl> wrote: > > > > > On 26 Wrz, 10:16, Andor <andor.bari...@gmail.com> wrote: > > > > MarekJ wrote: > > > > Hello, > > > > > I have 21161N Ezkit lite with VisualDSP 4.5. I need very urgent to > > > > learn > > > > assembler and C on this processor. > > > > > Could you help me and send as simple as possible program in assembler > > > > and > > > > also in C to start learnig? (for example arithemtic oper.) > > > > > Marek > > > > Try the examples that come with VisualDSP for basics of coding and for > > > EZKit IO handling, look at the 211xx/212xx/213xx-library functions for > > > optimized coding and SIMD. More examples (FFT, DCT, etc.) are > > > available from the ADI website. > > > > Regards, > > > Andor > > > Hi, > > thanks for your message. I need very simple code (assembler) to > > compile, and run in step in mode to check all registers. These > > catalogs contain more advance program. First of all there are > > __project__ with many files. Could you write for me as simple program > > as possible in assembler? > > > Marek > > The demo programs for the EZkit are very simple. The DSP-equivalent of > "hello world" is the talk-through. The talk-through takes samples from > the serial input ports, deposits them in the internal registers, and > writes them to the serial output ports. The talk-through is available > in C and assembler. > > You need a project to handle the hardware layer around your little > main loop. Don't worry about all the files in the project and focus on > the one file that does the input-output connection. In the talk- > through, I think this is actually done in the interrupt handler. > That's ugly programming style, but it should get you started. > > Regards, > Andor > > - Zitierten Text ausblenden - > > > > > - Zitierten Text anzeigen -
Hi, yes I know this but... interrupts, serial port - this is a little advance elements, don't you think? I think about ,,c=a+b'' in assembler and in C. How should I write it? Marek
Reply by Andor September 26, 20072007-09-26
On 26 Sep., 10:33, MarekJ <Marek.Jask...@ps.pl> wrote:
> On 26 Wrz, 10:16, Andor <andor.bari...@gmail.com> wrote: > > > > > > > MarekJ wrote: > > > Hello, > > > > I have 21161N Ezkit lite with VisualDSP 4.5. I need very urgent to > > > learn > > > assembler and C on this processor. > > > > Could you help me and send as simple as possible program in assembler > > > and > > > also in C to start learnig? (for example arithemtic oper.) > > > > Marek > > > Try the examples that come with VisualDSP for basics of coding and for > > EZKit IO handling, look at the 211xx/212xx/213xx-library functions for > > optimized coding and SIMD. More examples (FFT, DCT, etc.) are > > available from the ADI website. > > > Regards, > > Andor > > Hi, > thanks for your message. I need very simple code (assembler) to > compile, and run in step in mode to check all registers. These > catalogs contain more advance program. First of all there are > __project__ with many files. Could you write for me as simple program > as possible in assembler? > > Marek
The demo programs for the EZkit are very simple. The DSP-equivalent of "hello world" is the talk-through. The talk-through takes samples from the serial input ports, deposits them in the internal registers, and writes them to the serial output ports. The talk-through is available in C and assembler. You need a project to handle the hardware layer around your little main loop. Don't worry about all the files in the project and focus on the one file that does the input-output connection. In the talk- through, I think this is actually done in the interrupt handler. That's ugly programming style, but it should get you started. Regards, Andor - Zitierten Text ausblenden -
> > - Zitierten Text anzeigen -
Reply by MarekJ September 26, 20072007-09-26
On 26 Wrz, 10:16, Andor <andor.bari...@gmail.com> wrote:
> MarekJ wrote: > > Hello, > > > I have 21161N Ezkit lite with VisualDSP 4.5. I need very urgent to > > learn > > assembler and C on this processor. > > > Could you help me and send as simple as possible program in assembler > > and > > also in C to start learnig? (for example arithemtic oper.) > > > Marek > > Try the examples that come with VisualDSP for basics of coding and for > EZKit IO handling, look at the 211xx/212xx/213xx-library functions for > optimized coding and SIMD. More examples (FFT, DCT, etc.) are > available from the ADI website. > > Regards, > Andor
Hi, thanks for your message. I need very simple code (assembler) to compile, and run in step in mode to check all registers. These catalogs contain more advance program. First of all there are __project__ with many files. Could you write for me as simple program as possible in assembler? Marek
Reply by Andor September 26, 20072007-09-26
MarekJ wrote:
> Hello, > > I have 21161N Ezkit lite with VisualDSP 4.5. I need very urgent to > learn > assembler and C on this processor. > > Could you help me and send as simple as possible program in assembler > and > also in C to start learnig? (for example arithemtic oper.) > > Marek
Try the examples that come with VisualDSP for basics of coding and for EZKit IO handling, look at the 211xx/212xx/213xx-library functions for optimized coding and SIMD. More examples (FFT, DCT, etc.) are available from the ADI website. Regards, Andor
Reply by MarekJ September 26, 20072007-09-26
Hello,

I have 21161N Ezkit lite with VisualDSP 4.5. I need very urgent to
learn
assembler and C on this processor.

Could you help  me and send as simple as possible program in assembler
and
also in C to start  learnig? (for example  arithemtic oper.)

Marek