--_003_B7713D4C77714EE8B4C617643A687F97ivp3ghz_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > I also looked into it deeper, and the 'best' value for the source > resistor is about 14.5 rather than 16 to maximize the minimum delta A test with 750, 1k5, 3k0, 6k0 and 12k0 1% metal oxide Vdd =3D 5.02V, Vdd*2 =3D 9.47V @ 0000 (9.33V @ 1111) Total R =3D 12k + 11.25k =3D 23.25k Theoretical 0000 =3D (11.25/23.25) * 9.47 =3D 4.58V 933 0001 =3D (10.5/22.5) * 9.47 =3D 4.419V 900 33 difference 0010 =3D (9.75/21.75) * 9.47 =3D 4.24V etc Practical Vref =3D 4.57V, rather than Vdd (5.02V), spreads them out a little DIP Van Vdiff ADC ADCdiff Vref =3D 4.57V 0000 4.57 931 1023 0001 4.41 0.16 898 33 3% FSD 986 diff =3D 37 0010 4.23 0.18 862 36 947 39 0011 4.04 0.19 823 39 904 43 0100 3.84 0.20 782 41 0101 3.62 0.22 737 45 0111 3.14 0.48 639 98 1000 2.86 0.28 582 57 1001 2.56 0.30 521 61 1010 2.24 0.32 456 65 1011 1.88 0.36 383 73 1100 1.48 0.40 301 82 1101 1.04 0.44 211 90 1110 0.55 0.454 112 99 1111 0.00 0.550 000 112 11% FSD > You might want to compare the sensistitivity of the parallel and > serial schemes to variations in the resistor value 12k 1% high =3D 12.12k Others 1% low (11.25*0.99) =3D 11.1375 Total 23.2575k 0000 11.1375/23.2575 * 9.47 =3D 4.53 923 0001 10.395/22.275 * 9.47 =3D 4.419 895 28 difference (vs 33 above) > resistor is about 14.5 rather than 16 to maximize the minimum delta (14.5/16) * 12k =3D 10.875k 0.75 + 1.5 + 3 + 6 =3D 11.25k Total 22.125k 0000 11.25/22.125 4.81 980 0001 10.5/21.375 4.65 947 33 difference 0010 9.75/20.625 4.48 912 35 Joe * * ********** Quality PIC programmers http://www.embedinc.com/products/index.htm= --_003_B7713D4C77714EE8B4C617643A687F97ivp3ghz_ Content-Type: image/gif; name="DIP_serial_r_2Vdd.gif" Content-Description: DIP_serial_r_2Vdd.gif Content-Disposition: attachment; filename="DIP_serial_r_2Vdd.gif"; size=826; creation-date="Sun, 26 Sep 2010 01:27:16 GMT"; modification-date="Sun, 26 Sep 2010 01:27:16 GMT" Content-Transfer-Encoding: base64 R0lGODlhVgDDAIAAAAAAAP///ywAAAAAVgDDAAAC/oyPqcvtD6OctNqLs948gPQh4TEapQmcnXa2 oJiK5LqO9hfGLqPSl21CeYSz3tDHwc2CwIgRWVEGmcvHExqVeaQxK7YG4kobqfL3jE6r19iy282O o65yNL1+vuPbe7y+7/MHCDbIJli4cYjIsrim2JgFuVBidkTSpSUZVjVmSamp0FlENWUJ+hI6lFNl elq6hNnE6rqjWqryWPc56jnpegu3utWT+8tjTIicqJzMzOj8DI1RLN2alGkdR+17Myu3nQokvAf+ Iv76Xc45Nfbm/g4fD0/zxp4diHnZbEtkd9zhYpc/X9UcGFEH6WBBg/8WNsTmMBWqiBInNqo3LEc+ /m8cEcnqBdFiQnQf7zxBGCnjLZEVN/nh5o0OrnsDw3G8olBXpnYPW3asOedSTjIEnemZaVQCUmU4 BRY86fRpT4r3UC4aShXdz4XErHqMlxXCxrBFyU41GxLtVrNeT42lKA9tV7lnI2LNepdqXrh17ZYl uxTw35EkK6XV+nXW3rUvm4hifPCtmnMqWVr+aEifT5qIGUOhnBYnQ52kMG9dnMZx0MGXpR21/OsP JTjImh5mBvU27r5ceUtl7Re4w7lswaoN1dbtceF0l8NWm1yT5OHGBSNvvpkv89/Zg3cf7pu7bvDP yZcfVKnF2JOgQIPsDP/qEZ7x40cXu2pc1O/T2x1tWTceMZxNxo9potlEmi36MbfDfQZ1IYxhAYYh oTGvfSedUttd9OB4FpKxn2vhibghiRiK56GJMMhVnXP/uegZXjDGqNeM9YXV31MtyngdWyNCg1pv JQL5Y1JDEnmikCmqSKMuEFLIX3u8rHSalFrQN2BVObaR3nysyFSUg2G++F59S4lZkRILltcVmmkW eNNoAKYT4Wrn1eImQE7stNueMOS5DIhLKsdDiEgmyWSTTBXZJ6KHrljcPDNuiaONWVZqI6DoWaop IJ1qE5el0LkjqosVlopqqg4UAAA7 --_003_B7713D4C77714EE8B4C617643A687F97ivp3ghz_ Content-Type: text/plain; name="ATT00001.txt" Content-Description: ATT00001.txt Content-Disposition: attachment; filename="ATT00001.txt"; size=208; creation-date="Sun, 26 Sep 2010 01:27:16 GMT"; modification-date="Sun, 26 Sep 2010 01:27:16 GMT" Content-Transfer-Encoding: base64 LS0gDQpodHRwOi8vd3d3LnBpY2xpc3QuY29tIFBJQy9TWCBGQVEgJiBsaXN0IGFyY2hpdmUNClZp ZXcvY2hhbmdlIHlvdXIgbWVtYmVyc2hpcCBvcHRpb25zIGF0DQpodHRwOi8vbWFpbG1hbi5taXQu ZWR1L21haWxtYW4vbGlzdGluZm8vcGljbGlzdA0K --_003_B7713D4C77714EE8B4C617643A687F97ivp3ghz_-- .