> I'm a 5th college student from the Philippines. > I'm studying sir in Manila, Philippines. > I'm majoring sir in Electronics Engineering. > I'm quite a beginner sir in PIC programming, but > I was assigned to do a school thesis in which > I'm to measure body temperature using a PIC. > Our school sir really don't teach PIC software development > or assembly language. It is up to us to learn. > And I really want to be an expert in PIC software development. > Thank you very much sir Olin. God Bless. > Best regards. It's time to drop that patronising "sir" crap. If the data sheets are too hard to understand, you should start with a basic introductory book on microcontrollers. I think there are several available that use PICs as examples. Others on this list can probably suggest specific titles. Just giving you code won't solve the real problem, which is learning about embeded microcontrollers, not getting this particular project done. As far as the project goes, you need to measure temperature with high accuracy, but only need to do so over a very limited range around 37C. Thermisters are very sensitive, but non-linear and vary from unit to unit. My first knee jerk reaction is to use a 16F870 (or just get a few '876 to have around for this project and whatever else comes up). Use an analog circuit so that even with thermister part variation, the 32C to 42C range always comes out within the 0-5V A/D range. Even if it only ends up covering 2V, you still have about 400 counts over 10 degress C. That leaves plenty of headroom to do the linearization in software. Since this is a low speed signal, you have lots of cycles available for this, even if it takes something like a 4th order polynomial. I would deal with the part variations by running each one thru a calibration sequence and saving the calibration parameters (polynomial coeficients ?) in the EEPROM. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens MassacLIO/tts (978) 772-3129, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.