>Jinx wrote: >> What I really want to do is make a universal system so that any >> ASCII string can be compared to any sensor voltage, so that the >> user receives not only the alert but also a message in appropriate >> terms and units > >Since you're dealing with verbose ASCII strings over >a serial port, I'll assume that compute cycles aren't >critical. If so, this sounds like a natural >application for floating point. This also comes back to what I said earlier. It may be worth going to an HLL demo compiler to do the parsing of the incoming strings, and then using the arithmetic routines of the HLL. With C18 freely available it may be worth looking at an 18F chip anyway for the memory size, if Jinx ends up having to deal with umpteen formatting possibilities. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist