IDAC : Code 0xFF=31.875 or 32 uA ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
pacr_284376
Level 5
Level 5
100 replies posted 10 solutions authored 50 sign-ins

I setup the IDAC to code FF in the lowest range. I dont need to change the current but I need to know as accurate as possible how much the current is.

   

The documentation says this is 31.875 but when I measure it with my precision voltage meter over a fixed resistor I get :

   

>> Comparing to 31.875 uA >> deviation = 0.4%

   

>> Comparing to 32uA >> deviation <0.1%

   

Tested it for as well as Sink and Source mode. Fixed resistor 100 and  220 ohm.

   

 

   

So my question : Is it correct that the IDAC is calibrated to 32 uA and NOT to 31.875 ?

   

Patrick

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

In the datasheet the data are specified for a 600 Ohms resistor, can it be that the low resistance is giving you bad results?

   

 

   

Bob

View solution in original post

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

In the datasheet the data are specified for a 600 Ohms resistor, can it be that the low resistance is giving you bad results?

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
pacr_284376
Level 5
Level 5
100 replies posted 10 solutions authored 50 sign-ins

 Thanks for the answer,

   

No I just mentioned the 2 resistance values. I measured with E12 from 100 to 100k, knowing that on the high end the voltage over the resistance will become too high.

   

See attached picture -

   

X-Axis=resistance 100-120-150...82k-100k (logaritmic scale)

   

D1a=Source; deviation in % from 31.875uA

   

D1b= Source; deviation in % from 32uA

   

D2a=Sink; deviation in % from 31.875uA

   

D2b= Sink; deviation in % from 32uA

   

It looks like D1a and D2a goes to 0.4% at origin (255/256=0.4% !!!)

   

It looks like D1b and D2b goed to 0% at origin

   

For calculating these values, I measured the resistance of the resistors used also with the HP precision meter.

   
        
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If you do an error budget analysis the results you are seeing well

   

within spec -

   

 

   

   

 

   

The voltage ref specs are -

   

 

   

   

 

   

So you could use a precision R, the DelSig A/D, and possibly have a built in self cal

   

correction to improve the overall specs for the IDAC. However you are intrinsically

   

limited to 8 bits, ~ +/- .4%, so not sure even this approach would be useful.

   

 

   

You could use PWM, OpAmp, Bipolar PNP and develop a more accurate I source,

   

but this would require a precision ref driving Vdd.

   

 

   

Regards, Dana.

pacr_284376
Level 5
Level 5
100 replies posted 10 solutions authored 50 sign-ins

Thanks for answering. 

   

I know it is within the range of the datasheet. I am just trying to get a current source which is as accurate as possible. The 32uA / 0.1% which I have now suits me very well. When using the IDAC on less then Full Scale, the output gets more inaccurate (but still within datasheet mentoined limits)

   

While working on my first PSOC project, I am positively surprised every day about the possibilities of these devices (PSOC3/5LP) and the flexibility and accuracy I can get. 🙂

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This is off topic a little but take a look at this technique for removing

   

offsets and noise in many applications. Correlated Double Sampling.

   

 

   

    

   

          http://www.cypress.com/?rID=49159

   

 

   

Regards, Dana.

0 Likes