7 posts / 0 new
Last post
Aditya512
Offline
Last seen:5 years 3 months ago
加入:2015-08-07 17:58
ADC input high currrent

Hi,

We are using DA14580 in one of our BLE application; where we have interfaced battery directly to one of the ADC input directly for battery level monitoring. The power supply design has booster circuitry to ensure battery is used to its full.

The ADC is configured for 3X attenuation.

However, when we turn on the board; heavy current (around 1A) flows through the ADC pin. Is there a problem in connecting battery directly to ADC pin of DA14580? Do we need to have any resistance in series?

We will appreciate an early positive reply.

Thanks & regards,
Aditya

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Aditya512,

Hi Aditya512,

Normally you can connect the battery directly to the adc and not use a resistor (although its a good practise). You experience this on a dev kit or on a custom board. The 1A current flows only when the da boots ? Have you properly configured the adc pin?

Thanks MT_dialog

channaankit25
Offline
Last seen:5 years 3 months ago
加入:2015-09-04 08:11
Hi MT_dialog,

Hi MT_dialog,

The 1A current flows continuously after boot. We have properly configured the pin in the sample peripheral application of adc.
The code sequence is given below. Please provide inputs on this. The Pin P01 is used as ADC pin.
int main (void)
{
int16_t adc_sample = 0;
system_init();
periph_init();
adc_calibrate();
GPIO_ConfigurePin(GPIO_BAT_MEAS_PORT, GPIO_BAT_MEAS_PIN, INPUT, PID_ADC, false);
adc_init(GP_ADC_SE, GP_ADC_SIGN, GP_ADC_ATTN3X);
adc_usDelay(20);
adc_enable_channel(ADC_CHANNEL_P01);
adc_usDelay(1);
adc_sample = adc_get_sample();
printf_string("\r\nADC ");
print_hword(adc_sample);
adc_disable();
while(1);
}
Please check the code and waiting for a positive reply.

Thanks & regards,
Ankit Channa

MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi channaankit25,

Hi channaankit25,

You can find an example in how to use the adc in the peripheral examples folder in the SDK. I ve tested your code it seems fine, the current flow in my setup with a pro board is 0.013mA far from 1A.

Thanks MT_dialog

channaankit25
Offline
Last seen:5 years 3 months ago
加入:2015-09-04 08:11
Hi MT_dialog

Hi MT_dialog

We are also using the pro board for our development. The actual problem is that if we connect 3 volt directly to pin without giving the supply to the chip then it consumes more than 1 Amp current. This has been observed for the development board too. Ideally it should not take current if 3 volt is directly connected to pin without giving the supply to VDD. So this problem is being faced by us for both custom as well as for pro board. Please check this with your pro board and let me know if you get the same results.

Thanks and regards,
Ankit Channa

MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi channaankit25,

Hi channaankit25,

不给供应芯片是什么时候吗turned off, If the chip is turned off the protection diodes in the chip will suck up all the current that your supplier can give, and probably this is the reason why you get so much current in your amp meter.

Thanks MT_dialog

KristosHerz
Offline
Last seen:5 years 4 months ago
加入:2015-12-10 17:11
May i know your full hardware

May i know your full hardware setup?
What components you are using and what are their specifications?
Also which battery do you have now and for what type of battery you are looking for?

printed circuit boards