> > Errata > > The pic code generated by the new program scales a 16 bit hex > value to a 16 bit hex value. It divides by multiplying by a > constant less than 1. > > Bill > > ----- Original Message ----- > From: "James Newtons Massmind" > > "Bill & Pookie" have added to the A2D Code Generator > > http://www.piclist.com/techref/A2DCodeGenerator.asp with a > new script that > > scales any 16 bit BCD number without converting it from BCD > to binary, > > scaling, and converting back: > > http://www.piclist.com/techref/ScaleCodeGenerator.asp This > is actually > > pretty handy if you have a decimal input (like from a GPS > or RTC or like > > that) and you want to do some scaling on the value before > you display it. > > > > Thanks Bill! Doh! I should have said "Scales any 16 bit HEX number without converting it from hex to binary and back." It was late, I was tired, blah, blah, swarm of locust, low blood sugar, pick and excuse. --- James Newton: PICList webmaster/Admin mailto:jamesnewton@piclist.com 1-619-652-0593 phone http://www.piclist.com/member/JMN-EFP-786 PIC/PICList FAQ: http://www.piclist.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist