Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2016, 11:22:16 23:22


Login with username, password and session length


Pages: [1]
Print
Author Topic: 8 channel voltmeter (help)  (Read 1718 times)
0 Members and 1 Guest are viewing this topic.
arash
Active Member
***
Offline Offline

Posts: 111

Thank You
-Given: 2
-Receive: 0


« on: December 23, 2005, 07:21:26 07:21 »

Hi.
I was make 8 channel voltmeter (0-5) with diffrent inputs.It works good in proteuse but in real  when i  connect a voltage to channel 0, it's affect will change the other channels voltage.How can i solve this? (use ht-picc compiler to see my prj)
Thanks.
Logged
adidav
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 9
-Receive: 1


« Reply #1 on: February 14, 2008, 09:27:13 21:27 »

Hi, I think the problem is after a conversion have place you have to wait 2Tad time. For example using 16F877 you will have to wait 20uS.

main()
{

resultCh0 =  ADC_Conversion(Channel0);
DelayUs(20);
resultCh1 =  ADC_Conversion(Channel1);
DelayUs(20);
.
.
.
.
resultCh7 =  ADC_Conversion(Channel7);
DelayUs(20);

}

I hope this will help you.

Greetings,
ADi
Logged
entekelektronik
Newbie
*
 Muted
Offline Offline

Posts: 13

Thank You
-Given: 26
-Receive: 0


« Reply #2 on: February 14, 2008, 09:43:07 21:43 »

Yes, You must put delay routins after the conversion every channel.
good luck.
Logged
ahmetefegumus
Inactive

Offline Offline

Posts: 4

Thank You
-Given: 0
-Receive: 0


« Reply #3 on: February 19, 2008, 05:25:21 17:25 »

be careful,
can you check ADC setup configuration where beging of the program. Normally 20 us time is enaugh.
I am added a little code for you, 
may be helper for you.

         enable_interrupts(int_ad);
         set_adc_channel(0);
         delay_us(20);
         _value_volt= read_adc(ADC_START_AND_READ);


Posted on: February 19, 2008, 05:11:23 17:11 - Automerged

I want to add something  to my last written. can you put delay in main rutin because system repatly read adc like a contıously all the time. if the system is weating a litte time as a idle condition ( 0.5 msn) and then reading adc , may be problem solved.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC