Ricardo, what are you using to measure the 110VAC? What range do you want to measure (ie: 0-130, 100-130)? What is the scale factor? What is the resolution? I'm assuming you are getting a DC signal within the range of the 16C71x and you are using a common LCD with the Hitachi controller. The choice between a lookup table and math/BCD/ASCII routines depends on your requirements for speed, available program memory, and to some extent, available user memory as the routines will require some temporary memory. For example; if your resolution is 1V, your range is 100VAC to 130VAC, and you want to display 3 digits, a lookup table may be the best way to go. If your range is 0 - 130V, then you should consider implementing the related routines. In anycase, it's best to keep lookup tables on even 256 Byte page boundries and avoid crossing pages as doing so will require additional overhead. - Tom At 12:02 PM 10/3/98 -0400, Ricardo Ponte wrote: > To anyone hat can share your opinion with me: > > > I have a PIC16C71xx and get the digital value of the wall«s 110Vac. I >need to view this analog value with a LCD. > > What«s the mos usually way to do this: > > À Making a table with 255 locaitons and compare to get the result ? > > À Programming a sub-rutine to do numeric divisions wiht decimal an send it >to the LCD ? > > Thanks for your help.