CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

about PIC used for detecting low and high supply voltages

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ndineshbabeece@gmail.com
Guest







about PIC used for detecting low and high supply voltages
PostPosted: Sun Sep 14, 2008 10:57 pm     Reply with quote

I need to use the PIC microcontroller for detecting the low voltage and high voltage levels, i.e. low voltage means less 2.5v (from the supply voltage for PIC ) and high volt means greater the supply voltage. So is it possible to use PIC for detecting such voltage level since I need to use this voltage as a supply voltage also ? I thought that the reference level changes if the suppy voltage changes, so I cannot be able to use.
In short, I need to activate an o/p if voltage less than 2.5v from, supply and another o/p if voltage is greater than 5v where the controller uses this as main supply.

If yes can anybody explain wtih example program.
/dev/human



Joined: 01 Sep 2008
Posts: 19
Location: Earth / Europe / Germany

View user's profile Send private message

PostPosted: Mon Sep 15, 2008 12:37 am     Reply with quote

I think you can do that if you have a stable reference voltage in your hardware. Then you need to measure your supply voltage using an appropriate voltage divider and check for high enough or too low voltage.

There are other principles working as well but all I can think off right now are requiring a reference voltage. This is key in my oppinion.
ndineshbabuece@gmail.com
Guest







about PIC used for detecting low and high supply voltages
PostPosted: Mon Sep 15, 2008 1:37 am     Reply with quote

is it possible to set the reference in PIC itself? is the reference affect, if the supply voltage drops?


how can i make reference standard in PIC ie if supply volt changes it does not affect the reference
/dev/human



Joined: 01 Sep 2008
Posts: 19
Location: Earth / Europe / Germany

View user's profile Send private message

PostPosted: Mon Sep 15, 2008 1:47 am     Reply with quote

Which PIC are you using (but I don't know whether there is a PIC having a stable reference)?

Depending on your required accuracy and the supply voltage variation you can either choose simple (zener-) diodes with a current limiting resistor or a so-called "voltage reference" like e.g. LT1009
http://www.linear.com/pc/productDetail.jsp?navId=H0,C1,C1154,C1002,C1223,P1218
ndineshbabuece@gmail.com
Guest







PostPosted: Mon Sep 15, 2008 2:16 am     Reply with quote

eight PIN PIC if the supply voltage falls , the reference in PIC affect? or not


i need to detech the low voltage (supply voltage to the PIC) without affecting the circuit
/dev/human



Joined: 01 Sep 2008
Posts: 19
Location: Earth / Europe / Germany

View user's profile Send private message

PostPosted: Mon Sep 15, 2008 2:28 am     Reply with quote

Without the number I can't tell for sure. But 8 pin, I don't think so.
ndineshbabuece@gmail.com
Guest







pic number
PostPosted: Mon Sep 15, 2008 3:10 am     Reply with quote

PIC 16F675 and PIC 16F729
Ttelmah
Guest







PostPosted: Mon Sep 15, 2008 3:25 am     Reply with quote

Not really possible without some external parts (Vref and divider). What about considering one of the 8 pin power supply monitoring IC's instead?.
Not obvious from the description, how the PIC is powered?. If it has it's own 5v supply, then this can also be used as the 'reference'. It sounds as if the PIC supply itself is not guaranteed, in which case, you cannot have it reliably operating outputs...
You can get very 'close', with something like the PIC12F636, since this has two internal comparators, and the addition of a single external voltage reference would make most of this fairly simple. It also does have a PLVD module, that would allow an output to be operated at 2.3v, but not 2.5v.
Remember also, that a low power PIC, running at low speed, can be run for days, off a simple capacitor supply.
Simplest thing really, would just be two hardware comparators, one small zener, and a few resistors.... Even this though won't work without power.

Best Wishes
/dev/human



Joined: 01 Sep 2008
Posts: 19
Location: Earth / Europe / Germany

View user's profile Send private message

PostPosted: Mon Sep 15, 2008 3:27 am     Reply with quote

Could you pleas check on the number again? 16F675 is not existing on the Microchip website. Neither is 16F729.

Should it be 12F675 (which sounds reasonable) it does not offer a reference but you may set the internal reference input to you voltage supply and check with one ADC an external reference. Because then you will see the external reference voltage rise with falling supply voltage. The limits are up to you.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group