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

Аutomatic switch of range with PIC 16F877

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
bojidarmlv



Joined: 17 Mar 2009
Posts: 3

View user's profile Send private message Send e-mail

Аutomatic switch of range with PIC 16F877
PostPosted: Sat Mar 21, 2009 9:03 am     Reply with quote

Hi, guys.

I'm using PICF877 to make digital voltmeter. I'm using microcontroller's ADC and four switches to change voltage range ( 200mV, 2V, 20V and 200V ) of input voltage. The thing is that I want to make automatic range switch( without the buttons ). Any ideas how can I accomplish this ?

I post the scheme ( I'm using optional voltage source to simulate it in proteus instead of Vin ).

Thanks in advance.

evsource



Joined: 21 Nov 2006
Posts: 129

View user's profile Send private message

PostPosted: Sat Mar 21, 2009 9:52 am     Reply with quote

Just a stab in the dark, this is probably not how commercial units do it, but might be one idea.

Set up another ADC channel with a voltage divider designed for the highest allowable voltage you might encounter. The PIC reads this voltage - a low precision reading, and uses it to switch some relays that switch in correct resistors automatically.
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