nikhilsigma
Full Member level 2
- Joined
- Jun 19, 2010
- Messages
- 142
- Helped
- 17
- Reputation
- 34
- Reaction score
- 16
- Trophy points
- 1,298
- Location
- Delhi, India
- Activity points
- 2,584
Hello everyone,
I am having a problem with ADC of PIC18f4520 microcontroller.
I am trying to measure the [Vout] shown in the figure below.
The whole circuit is working fine and the measured values are accurate, when the values of R1 & R2 are large like(200 each etc.)
But the problem comes when I decrease the values of R1 & R2, i.e. while lowering the overall resistance and increasing the current in the branch. The readings measured by ADC becomes in accurate !!! Even the CRO shows the correct readings (in accordance with ohms law), but the ADC reading is deviating alot. (Instead of 1.65V it is showing 1.43V, although CRO is showing around 1.64V)
I don't know what problem is coming with ADC when the current flowing in branch is high !!! And since CRO is giving the desired voltage, thus I think the problem is with ADC only....
Note:
1. I have cross checked the ADC ref voltage of PIC.
2. I have places an CA3140 Opamp as a buffer, before ADC and the reading have improved a bit, but the error is still huge...
PLEASE HELP...
I am having a problem with ADC of PIC18f4520 microcontroller.
I am trying to measure the [Vout] shown in the figure below.
The whole circuit is working fine and the measured values are accurate, when the values of R1 & R2 are large like(200 each etc.)
But the problem comes when I decrease the values of R1 & R2, i.e. while lowering the overall resistance and increasing the current in the branch. The readings measured by ADC becomes in accurate !!! Even the CRO shows the correct readings (in accordance with ohms law), but the ADC reading is deviating alot. (Instead of 1.65V it is showing 1.43V, although CRO is showing around 1.64V)
I don't know what problem is coming with ADC when the current flowing in branch is high !!! And since CRO is giving the desired voltage, thus I think the problem is with ADC only....
Note:
1. I have cross checked the ADC ref voltage of PIC.
2. I have places an CA3140 Opamp as a buffer, before ADC and the reading have improved a bit, but the error is still huge...
PLEASE HELP...