At 01:08 7/08/97 -0400, you wrote: >On Wed, 6 Aug 1997 17:09:04 -0700 WF AUTOMA=?iso-8859-1?Q?=C7=C3O ?= > writes: > >>You must to sucessive divisions by 10 and hold the remainder of each >>division >>in a temporary memory, until the quocient is 0. > >If displaying to an LCD module based the HD44780, you can set the >controller to autodecrement (move the cursor right to left), then output >the remainders (as ASCII) directly to the LCD as they are calculated. >The digits of the number will appear on the screen in correct order. > >This makes the successive division method rather practical (certainly >RAM-efficient, though it may be necessary to store a copy of the number >since the division process will destroy it). An N/8 bit division is easy >to expand to a large number of bits (one more shift instruction and 8 >more loops for each byte). If the input number is only 8 or 16 bits some >of the other methods discussed previously may be better. > Yes, I use a HD44780 LCD based module. I want to use a PIC in a project, and the PIC receive binary numbers, and then I have to convert the binary numbers in ASCII numbers?. Jose Antonio