ljljlj
Newbie level 1
I have some enquiries about the assign of the PIN as my output.
At first, I set PIN A0 as my output;however, I can't obtain the correct temperature I wanted.
But when I put like this
I am able to obtain the correct result.
Therefore, I try the remaining two pins A2 and A3. Unfortunately, both of the pins also didn't give me the correct result I wanted.
May I know why?
I have check my hardware there is no problem.So, I think is the code giving me the problem.
P.S: I am using CCS compiler.:wink:
Code:
setup_adc_ports(PIN_A0);
set_adc_channel(0);
But when I put like this
Code:
setup_adc_ports(PIN_A1);
set_adc_channel(1);
Therefore, I try the remaining two pins A2 and A3. Unfortunately, both of the pins also didn't give me the correct result I wanted.
May I know why?
I have check my hardware there is no problem.So, I think is the code giving me the problem.
P.S: I am using CCS compiler.:wink: