I'm looking at the programmable low voltage detect in the 16F636. I'd like to enable it now and then to check the battery voltage instead of leaving it on all the time (draining the battery). It LOOKS like the PLVD is edge triggered. The startup instructions say: To setup the PLVD for operation, the following steps must be taken: =95 Enable the module by setting the LVDEN bit of the LVDCON register. =95 Configure the trip point by setting the LVDL<2:0> bits of the LVDCON register. =95 Wait for the reference voltage to become stable. Refer to Section 8.4 =93Stable Reference Indication=94. =95 Clear the LVDIF bit of the PIRx register. The LVDIF bit will be set when VDD falls below the PLVD trip point. The LVDIF bit remains set until cleared by software. But, what if Vdd is already below LVDIF when I start it? It seems like it will never be set again. Am I reading that correctly? Any ideas on how to get around that? I'd like to only check the battery when the device is connected to an external computer that is asking the battery to be checked. THANKS! Harold -- = FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist