EmbeddedRelated.com
Forums

Looking for Binary to ASCII Code

Started by SRic...@... June 1, 2004
Hello-
I'm new here and wonder if anyone has MSP430 code that will convert 
16-bit binary to 5 bytes of ASCII.

Prefer assembler and while I'm at it I could use assembler code that 
does a print function thru the USART.

I thought of looking at assembler listing of printf but IAR freebie 
software wont let me view assembled version of C .

Thanks -
Steve / Columbus, Ohio



Beginning Microcontrollers with the MSP430

Steve,

> Hello-
> I'm new here and wonder if anyone has MSP430 code that will convert 
> 16-bit binary to 5 bytes of ASCII.
> 
> Prefer assembler and while I'm at it I could use assembler code that 
> does a print function thru the USART.
> 
> I thought of looking at assembler listing of printf but IAR freebie 
> software wont let me view assembled version of C .

Sounds like a homework assignment to me...

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors 

At 04:10 AM 02-06-04, you wrote:

Check out slaa024.pdf on the TI website - binary to bcd conversion

Good luck

Peter
>Hello-
>I'm new here and wonder if anyone has MSP430 code that will convert
>16-bit binary to 5 bytes of ASCII.
>
>Prefer assembler and while I'm at it I could use assembler code that
>does a print function thru the USART.
>
>I thought of looking at assembler listing of printf but IAR freebie
>software wont let me view assembled version of C .
>
>Thanks -
>Steve / Columbus, Ohio
>
>
>
>
>
>.
>
>
>Yahoo! Groups Links
>
>
>
>