> Is this before or after setting OSCCAL with the calibration value > obtained from the last word in code memory before the measurement? No osccal register on the 16F818/819, and no mention of a calibration value in the last instruction. (and no misterious bandgap bits either) The datasheet says 'factory calibrated' Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads