On Mar 12, 7:46 am, "techie" <techie.embed...@gmail.com> wrote:> Hello all > > Im new to the world of embedded systems. I had a basic query. > > Im working on a project that requires me to migrate the code for a 16- > bit DSP Processor ( TMS320C50 ) to a 32-bit DSP Processor > ( TMS320F2812 ). > > All the initializations of the processor peripherals, registers have > been written in Assembly. My predicament is whether i should re-write > all these assembly routines in C for my new 32-bit processor of just > re-write them in assembly ??? > > Is there a thumb rule that initializations should be done only in > assembly ??? Please give me your opinions ... > > regards > > techieHi, techie>From my experience with 2818, I recommend that you do all yourinitialization in C, and preferably also all other code, since 2818 is faster than c50. Take a look at "C281x C/C++ Header Files and Peripheral Examples" / sprc097 available at TI's site, for examples initializing and working with peripherals. Regards, Mitja
Initializations of Processor variables, registers in C or assembly ?? why ?
Started by ●March 12, 2007
Reply by ●March 13, 20072007-03-13






