Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).
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
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