Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | assembly routine for num-to-string conversion

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

assembly routine for num-to-string conversion - joncas04 - Sep 15 11:35:45 2007



Hello,

i am trying to dump numerical data onto the serial interface and am
being hampered by the slowness of the NumToString routine in C,
because of the divisions and remainder functions.

Would anyone be able to share an assembly routine for converting an
unsigned 16-bit word into 6-character strings ? (the alignment or
padding doesn't matter)

This is for a 56800E dsp (56F8346)  

with apologies for my inexperience in assembly on this processor ...

many thanks in advance!
Robert



(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )

R: assembly routine for num-to-string conversion - Roberto Bonacina - Sep 17 7:50:27 2007

I am not expert on this field, but what about converting to hexadecimal?
You'll have only 4 chars to transmit, and the conversion routine can be
very simple (4 bits a time, managed with shifts and ANDs, and a lookup
table).
=20
Regards,
Roberto
=20

-----Messaggio originale-----
Da: m...@yahoogroups.com [mailto:m...@yahoogroups.com] Per
conto di joncas04
Inviato: venerd=EC 14 settembre 2007 16.12
A: m...@yahoogroups.com
Oggetto: [motoroladsp] assembly routine for num-to-string conversion

Hello,

i am trying to dump numerical data onto the serial interface and am
being hampered by the slowness of the NumToString routine in C,
because of the divisions and remainder functions.

Would anyone be able to share an assembly routine for converting an
unsigned 16-bit word into 6-character strings ? (the alignment or
padding doesn't matter)

This is for a 56800E dsp (56F8346)=20

with apologies for my inexperience in assembly on this processor ...

many thanks in advance!
Robert

=20

=20


(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )