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 CCS Technical Support

Search found 3 matches
CCS Forum Index
Author Message
  Topic: set_adc_channel, undocumented second parameter?
nrieper

Replies: 3
Views: 7504

PostForum: General CCS C Discussion   Posted: Wed Nov 10, 2010 2:38 am   Subject: set_adc_channel, undocumented second parameter?
So I tried to set the adc to differential input by using the second parameter:
set_adc_channel(ANALOG_SHUNT_H, ANALOG_SHUNT_L), where ANALOG_SHUNT_H = 11 and ANALOG_SHUNT_L = 5.

Everything works f ...
  Topic: set_adc_channel, undocumented second parameter?
nrieper

Replies: 3
Views: 7504

PostForum: General CCS C Discussion   Posted: Fri Nov 05, 2010 8:09 am   Subject: set_adc_channel, undocumented second parameter?
Thank you Ttelmah,

I just tried to use the second parameter. The compiler didn't complain and when I checked the ADCON1 register, CHSN is set to 110, thats the value for AN5, the channel I was sett ...
  Topic: set_adc_channel, undocumented second parameter?
nrieper

Replies: 3
Views: 7504

PostForum: General CCS C Discussion   Posted: Thu Nov 04, 2010 9:52 am   Subject: set_adc_channel, undocumented second parameter?
Hi,

In general I measured the analog voltages by setting f.e. set_adc_channel(1), set_adc_channel(2) .....

Now I want to measure 5 channels this way and one analog input I want to measure differ ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group