because is too expensive and hard to find elswere than US. top 10 wishes, Vasile http://surducan.netfirms.com On Wed, 13 Aug 2003, Bob Japundza wrote: > Why not use an Analog AD594 or 595 thermocouple chip, which does the cold-junction compensation and linearization for you? > > Regards, Bob > > > Spehro Pefhany wrote .. > > At 08:17 PM 8/12/2003 -0400, you wrote: > > > > >Not really. You do have to wake up to create the floating point subroutines > > >in the first place, but after that it's just a bunch of calls. For floating > > >point I extend the general register model of my development environment > > to > > >include three 32 bit registers overlayed onto the existing 8 bit registers. > > >The floating point routines all act on the low 24 bits of REGA, REGB, > > and > > >REGC. These include float, fix, add, subtract, multiply, and divide, > > plus a > > >few useful macros. The preprocessor also has built in floating point > > >computations, plus the ability to convert the result into a 24 bit hex > > value > > >that MPASM can understand. > > > > > >Is this a funded project? If so, I can get you going with floating point > > on > > >PICs quickly. We are also willing to extend the floating point library > > as > > >needed for real customers. Sorry, but this is one part of the PIC > > >development library we don't give away for free. Contact me privately > > if > > >you're interested. > > > > Likewise, I can supply very accurate linearization C code requiring > > floating-point for any common thermocouple (J, K, T, R, S, B, E), both > > for > > forward and reverse transformations. But not for free. You could easily > > use the methods with Olin's library if you want to stay in assembler. > > > > I've done the linearization in assembler (on several different processors) > > using 32 bit fixed point math, but it's a bit of a pain and I wouldn't > > recommend it unless your quantities have at least several zeros after them. > > > > Best regards, > > > > Spehro Pefhany --"it's the network..." "The Journey is the reward" > > speff@interlog.com Info for manufacturers: http://www.trexon.com > > Embedded software/hardware/analog Info for designers: http://www.speff.com > > > > -- > > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu