Hello Everybody,
I am working with cc2530 device and I want to use Port0's 4 ADC.
I want to work with P0_0,P0_1,P0_2 and P0_3.
To obtain the correct configuration, I have wrote those lines:
P0DIR = 0;
P0INP = 0x0f;
APCFG = 0x0f;
with this configuration, I want to disable pull-ups and pull-downs, and define those pins like a INPUT.
With the first 3 pins (P0_0,P0_1,P0_2) I have not any problem, and I am measuring quite well using this function "HalAdcRead (HAL_ADC_CHANNEL_1, HAL_ADC_RESOLUTION_14);"
The problem is P0_3 pin. When I am measuring I don't obtain any correct value.
Can anybody tell me something to solve this problem?
BR