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

How to get A/D value from ch0&ch1 in AD7705,Please help?

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







How to get A/D value from ch0&ch1 in AD7705,Please help?
PostPosted: Tue Mar 04, 2003 5:17 am     Reply with quote

//pch V3.142
#include <18F452.h>
#USE DELAY(CLOCK=4000000)
#USE RS232(BAUD=9600, XMIT=PIN_C6, RCV=PIN_C7)
#include
#include
main()
{
long AD_CH0,AD_CH1;
adc_init();
AD_CH0 = read_adc_value(0);
AD_CH1 = read_adc_value(1);
adc_disable();
printf("CH0:\%6.4f CH1:\%6.4f\r\n",
convert_to_volts(AD_CH0),convert_to_volts(AD_CH1));
}
___________________________
This message was ported from CCS's old forum
Original Post ID: 12318
Hans Wedemeyer
Guest







Re: How to get A/D value from ch0&ch1 in AD7705,Please h
PostPosted: Tue Mar 04, 2003 9:01 am     Reply with quote

It is NOT possible for anyone to know how you are trying to read the device.

Post code for :-

adc_init()

etc.
___________________________
This message was ported from CCS's old forum
Original Post ID: 12325
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