Author |
Message |
Topic: set_adc_channel, undocumented second parameter? |
nrieper
Replies: 3
Views: 7504
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|