referring now to fig1 , there is illustrated a block diagram of an application of an integrated circuit utilizing external programmable pins . in this application , there is illustrated a physical layer device ( phy ) 102 which is a device utilized in a network interface application . these are conventional devices . they are fairly complex devices that operate with digital processing circuitry , analog - to - digital data converters and digital - to - analog converters . the phy 102 is operable to interface with a transmission cable 104 through a transformer 106 to allow data to be transferred therebetween in accordance with a conventional protocol . the cable interface is termed an rj45 interface , but there could be an optical interface using a serial data transfer protocol referred to as serdes . the phy 102 is operable to receive data , decode it and then convert it to a format for transmission on a media side to a media access controller ( mac ) 110 for data transfer in one direction , and also provide for data transfer in the opposite direction . this allows data to be transferred therebetween in addition to timing information . there is typically a defined data transfer format on the media side , one being the gmii data format . this , again , is conventional . the phy 102 can operate in many different environments and design applications . each of these applications requires the operation of the phy 102 to be specifically configured for the application . this allows the phy 102 to be formatted in many different configurations to set various oscillator frequencies , media output formats , etc . it should be understood that the phy 102 is but an example of an application of an ic that would require configuration , and is not intended to be limiting . in the present disclosure , configuration of the ic is facilitated with a plurality of dedicated configuration pins 112 , there being eight in the disclosed embodiment . each of these pins is connected through an associated external program resistor 114 to either the supply voltage , v dd , or the ground reference voltage at v ss . each of the external program resistors 114 has eight discrete values , such that there are eight discrete states when connected to v dd and eight discrete states when connected to v ss . this provides for sixteen discrete programmable states for each pin , there being eight pins to provide a fairly large configuration word . referring now to fig2 , there is illustrated a diagrammatic view of the decode circuitry for each of the pins . associated with each of the pins on the integrated circuit that is capable of being programmed is a pad 202 , which pad 202 has one of the external program resistors 114 associated therewith connected through a representative switch ( which is a fixed connection in actual application ) connected to either v dd or v ss . there is provided a drive circuit 204 which is operable to interface with a current source 206 to source current to the pad 202 and through external program resistor 114 when connected to v ss , and a current sink 208 which is operable to sink current from the pad 202 when the external program resistor 114 is connected to v dd . as will be described herein below , the drive circuit 204 is operable in a first detect mode to detect the voltage on the pad 202 with no current flowing through the pad 202 . in this manner , if the external program resistor 114 is connected to ground or v ss , the voltage on pad 202 will be low , and if the external program resistor 114 is connected to v dd , the voltage on pad 202 will be high . in an alternate embodiment , the detect operation is operable to first connect the current source 206 to pad 202 in order to determine whether the external program resistor 114 is connected to v dd or v ss . in this mode , if the external program resistor 114 is connected to v ss , then the voltage on pad 202 will drop . if external program resistor 114 is connected to v dd , then there will be no drop in the voltage . a voltage detector 210 is provided to detect the voltage on the pad 202 . therefore , the first step in the operation is to determine which power supply terminal the resistor is connected to . after such first detect operation , then the drive circuit 204 is disposed in a second mode of operation where a correlation is made between the discrete value of the external program resistor 114 and a digital value by sourcing current to or sinking current from external program resistor 114 . the voltage detector 210 is input to one end of a comparator 212 , the other input thereof connected to a reference voltage 214 that is correlated to the possible discrete values of the external program resistor 114 . this reference voltage 214 , as will be described herein below , is generated utilizing a variable internal resistor and an internal known current source . the reference voltage 214 is varied with a search engine 216 which is operable to determine what reference voltage is required to be disposed on the reference input of the comparator 212 in order to determine the resistor value of external program resistor 114 and the resulting program state , i . e ., the two voltages are matched , the known voltage generated with the internal variable resistor and the measured voltage with the external program resistor 114 . this will result in a control word being output by the search engine 216 on a bus 218 , which will be stored in a control register utilized for the configuration of the integrated circuit , i . e ., the phy 102 in the application illustrated in fig1 . referring now to fig3 a , there is illustrated a block diagram for the operation wherein the external program resistor 114 is connected to v ss , that can provide up to eight discrete program values . an internally generated voltage accurate current source i vac 302 is provided for sourcing current from a power supply voltage such as v dd to a node 304 . a known variable resistor 306 is provided that is connected between node 304 and ground or v ss . this resistor 306 is an internal resistor that is fabricated on the integrated circuit . typically , this will be fabricated as a polycrystalline silicon resistor . this resistor has known characteristics and a known design value , but due to manufacturing variations and the such , this resistor can vary in its actual value from the design value . additionally , over temperature , the polycrystalline silicon resistor varies in value with a known temperature variation . the resistor 306 is varied by adding discrete resistors in series with or in parallel thereto , these resistors being fabricated on - chip . as will be described herein below , the specific embodiment disclosed herein utilizes a resistor ladder of identical resistors which is selectively “ tapped .” however , any method for varying the resistor value in a known and discrete manner can be utilized . with the use of the voltage accurate current source 302 , the voltage at the node 304 will be known as a function of the value of the resistor 306 , and the voltage accurate current source 302 will compensate for variations in the resistor due to process variations or temperature variations , while maintaining an accurate voltage across the resistor 306 . the node 304 is connected to the negative input of the comparator 212 . the positive input of the comparator 212 , as described herein above , is connected to the pad 202 . a current accurate current source 310 is operable to provide a current accurate current i cac , which provides a current source that is substantially independent of temperature variations , process variations and voltage fluctuations . this current accurate current is provided to the pad 202 to drive the external program resistor 114 for sourcing current thereto , since the external program resistor 114 is connected to ground . this current sourced to the pad 202 is accurate , as it is referenced to a band gap reference circuit fabricated internal to the integrated circuit and to an off - chip reference resistor . the band gap reference is a well known and conventional circuit that provides a temperature and process independent voltage . this voltage , together with the off - chip reference resistor , is used to generate a current which will be accurate and the voltage to the negative input of the comparator 212 will be accurate and a function of substantially only the value of the external program resistor 114 . this provides a fixed program voltage on the positive input of the comparator 212 , wherein the resistor 306 will vary the voltage on the node 304 as a function of the resistance value thereof . thus , discrete levels of resistance variation in the resistor 306 will result in discrete steps in the voltage on the node 304 , which will match the discrete steps of voltage on pad 202 due primarily to the different values of the external program resistor 114 . these external program resistor values can be varied in accordance with the following resistor table : referring now to fig3 b , there is illustrated a diagram of the alternate configuration wherein the external program resistor 114 is connected to v dd . in this configuration , a different voltage accurate current source and a different current accurate current source are provided . in this configuration , the external program resistor 114 is connected between v dd and the pad and , therefore , current must be sinked therefrom . to provide for this , a current accurate current source 312 is provided with the current , i cac , sinked from the pad 202 to ground or v ss through the external program resistor 114 . pad 202 and one side of the current source 312 are connected to a node 314 , this connected to the positive input of the comparator 212 . the negative node of the comparator 212 is connected to a node 316 , which has a voltage accurate current source 320 connected from there to ground , such that current is sinked from the node 316 . a variable internal resistor 322 is connected between v dd and the node 316 . this resistor 322 is similar to the resistor 306 in that it is variable in discrete steps . in general , the embodiment of fig3 b operates substantially identical to the embodiment of fig3 a with the exception of the direction of current . in operation , the comparison procedure for the comparator 212 is to provide on the node 304 ( for the program resistor 114 connected to ground ) in quantized steps of voltage that will be different than the exact voltage associated with that on the positive input of the comparator 212 on the pad 202 . for the program resistor 114 connected to v dd , the same operation will be performed in that the voltage is changed in quantized steps . in order to do this , a different resistor value for each state will be provided for the value of resistor 306 when testing a program resistor connected to ground , and a different resistor value for each state will be provided for the value of resistor 322 when testing a program resistor connected to v dd . for the program resistor 114 connected to ground , a voltage will be disposed on the node 304 that is lower than the voltage on the positive input of the comparator 212 . if the comparator 212 determines that the voltage on the positive input of the comparator 212 is higher than the voltage on node 304 , this will indicate that the program resistor value is above the known resistor value of resistor 306 . the following quantization table illustrates these values for resistor 306 and resistor 322 : it can be seen from looking at the quantization table that , for testing a program resistor 114 connected to v ss or ground , a test value greater than the resulting voltage on the negative input to the comparator 212 will result in a determination that the program resistor value is higher than that of the known resistor value . for example , if the value of resistor 306 is a value of 1 , 667 ohms , then this indicates that the value of program resistor 114 is 2 . 26 k ohms . similarly , the next value of resistor 306 will be 3 , 334 ohms and , if the comparator 212 determines that the voltage is less than the voltage on the positive input of comparator 212 is less than the voltage on node 304 , this indicates that the program resistor value is 2 . 26k ohms , i . e ., that associated with the code “ 0010 ,” and if the output of comparator 212 indicates that the voltage on node 304 is less than the value of the voltage on the pad 202 , the positive input of comparator 212 , this indicates that the value of the resistor 114 is 4 . 02k ohms . by sizing the variable resistors 306 and 322 to a value less than the program resistor value , the comparator 212 can quantize the testing operation . referring now to fig4 a – 4 c , the operation and benefits of utilizing the current accurate current and voltage accurate current will be described . with specific reference to fig4 a , there is illustrated a schematic diagram of the circuitry for generating the current accurate current which provides a reference current accurate current , as will be utilized herein below , and which is mirrored to sink or source current . a voltage reference is generated , v ref . in the disclosed embodiment , this reference voltage is generated on - chip with a band gap generator , a well known type of voltage generator . this provides the band gap generator voltage , v bg . this voltage v bg is a reference voltage that is temperature and process invariant , i . e ., it provides a very stable voltage over temperature . however , it should be understood that any reference voltage can be utilized , as the determination of the unknown resistor is insensitive to variations in this voltage , as will be shown below . the voltage v ref is input to the negative input to the negative input of an operational amplifier 420 , the output thereof connected to a node 422 , which node 422 drives the gate of a p - channel transistor 425 . the p - channel transistor 425 has the source / drain path thereof connected between v dd and a node 424 . node 424 is connected to the positive input of operational amplifier 420 . node 424 is also connected to one side if an external resistor , r ext , 426 , the other side thereof connected to ground . the external resistor 426 is connected external to the integrated circuit to a pin thereon at node 424 , the other side thereof connected to ground . this resistor 426 is a resistor selected by the user in the application and it is a resistor that has a known value to set the current there through . thus , the voltage across resistor 426 is v ref at node 424 and the current through resistor 426 is v ref / r ext . the node 422 is also connected to the gate of a p - channel transistor 428 , which has the source connected to v dd and the drain connected to an output node 430 that provides the current i cac which will be mirrored to source or sink current , as will be described herein below . the transistor 428 is sized relative to transistor 425 such that the voltage i cac is ratioed to the current through resistor 426 , i ′ cac , by a factor of k ′, i . e ., i cac = k ′ cac i ′. this basically provides a current mirror of the current through resistor 426 . it is noted , as will be described herein below , that the resistor r ext is a known resistor that has a known temperature profile . it is a very tightly controlled resistor , as is the program resistor 114 , r prog . the current i cac , or a mirrored version thereof will be driven through resistor 114 or sinked therefrom . referring now to fig4 b , there is illustrated a schematic diagram of the circuit for generating i vac . the reference voltage v ref is input to the negative input of an operational amplifier 440 , the output thereof connected to a node 442 . node 442 drives the gate of p - channel transistor 444 , the source / drain path thereof connected between v dd and a node 446 . node 446 is connected to the positive input of the operational amplifier 440 and also to one side of an internal resistor , r int , 448 . resistor 448 is a resistor formed on the substrate that is of substantially the same material as resistor 306 , the variable resistor , r known . as will be described herein below , the resistor 306 is formed of a plurality of resistors , each having a value of 2 . 5k ohm . thus , the temperature and process dependencies of the resistor 448 will “ track ” those of the resistor 306 , as they are both fabricated on chip and of the same material , i . e ., polycrystalline silicon . the voltage on the node 446 is substantially the voltage v ref . as described herein above , this voltage is generated with a band gap generator . the output of operational amplifier 440 also drives the gate of a p - channel transistor 450 , the source thereof connected to v dd and the drain thereof connected to a node 452 that provides the mirrored output current i vac , which current provides a reference current that will be mirrored to a sink current and a source current , as will be described herein below . the transistor 450 is sized with respect to the transistor 444 such that the current through transistor 450 is ratioed to the current through transistor 444 , i ′ vac , by a factor k , i . e ., i vac = ki ′ vac . in order to describe the benefits and insensitivities of the two generated currents i cac and i vac , fig4 c illustrates the comparator 212 with the positive and negative inputs connected to voltages labeled v unknown on the positive input thereof and a voltage v known on the negative input . the voltage v unknown is generated from the internal resistor r known and the voltage v unknown is generated from the external program resistor 114 . the following two equations represent the relationship of the currents i vac and i cac to the respective resistors and the reference voltage v ref : i vac = v ref r int · k i cac = v ref r ext ⁢ k ′ the voltage v unknown and the voltage v known are defined by the following two equations : when the resistor r known is varied such that there is an equality on the input to the comparator 212 , v unknown will equal v known and the following equality will result : substituting the relationships of equations 1 and 2 for i cac and i vac , respectively , the following equality results . k ′ ⁢ v ref r ext · r prog = k ⁢ v ref r int · r known since the voltage v ref cancels out on both sides of the equation , the resulting equality will be as follows : it can be seen from a review of equation 7 that the ratio of r known to r int is a ratio that is temperature insensitive , since both resistors track in temperature and process dependence , since both are fabricated on chip and of the same material . similarly , the resistors r prog and r ext have a constant ratio in that they are both known values and are very tightly controlled resistors , since they are both external resistors and have similar temperature dependencies . as such , the dependency on process is taken out of the internal resistors and the dependency on voltage is also taken out , such that there is a known voltage on the input to the comparator 212 . the unknown voltage comes from known resistors with a known current there through , which resistors are tightly controlled . referring now to fig5 , there is illustrated a block diagram for the multiplexed operation wherein the comparator 212 is multiplexed between all of the pads 202 and between the current sources for both connection configurations of the external program resistor 114 . in this multiplexed configuration , each of the pads 202 has associated therewith a switch 502 connected between the pad 202 and a node 506 , node 506 connected to the positive input of the comparator 212 . the node 202 is also connected to one side of a switch 508 , the other side thereof connected to a node 510 . node 510 is operable to be connected to the current accurate current source 310 or the current accurate current source 312 . a switch 512 is connected between node 510 on one side of the current accurate current source 310 that sources current from v dd . a switch 514 is connected between node 510 and one side of the current accurate current source 412 , which current source sinks current to v ss . thus , the positive input of comparator 212 can either be connected to a current source or a current sink and one of the multiple pads 202 can be connected with the associated switches 508 and 502 . there is illustrated a single external program resistor 114 disposed between one of the paths 102 and ground , it being recognized that each of the paths will have a separate external program resistor 114 connected to either v dd or v ss , the pad 202 not being capable of being open circuited . the negative input of the comparator 212 is connected to a node 520 . node 520 is connected through a switch 522 to the node 316 associated with the voltage accurate current source 320 and the resistor 322 . a second switch 524 is operable to connect the node 520 to the node 304 associated with the voltage accurate current source 302 and the resistor 306 . in operation , it can be seen that comparator 212 can be utilized first for the voltage detection operation utilized to determine which power supply the external program resistor 114 is connected to , wherein a median level voltage is set at either node 406 or node 304 to the negative input of comparator 212 and then the switches 512 and 514 opened . this will determine whether the external program resistor 414 is present and connected to ground or v dd . referring now to fig6 , there is illustrated a schematic diagram of one of the internal resistors 322 and 306 , this being the resistor 322 that is connected on one side to v dd . however , as will be described herein below , these two resistors are identical , they each being comprised of a ladder network . the resistor 322 on one side thereof is connected to v dd at a node 602 . there is a resistive network disposed between node 602 and a tap node 604 . this is comprised of three resistors , two series connected resistors 606 and 608 connected between the node 604 and 602 and a parallel resistor connected between node 602 and 604 . these resistors are all the same size , 2 . 5k in this disclosure . node 604 is connected to one side of a second resistive network , the other side thereof connected to a tap node 612 . this second resistive network is substantially identical to the resistor network disposed between the nodes 602 and 604 , and is comprised of resistors 606 , 608 and 610 . another identical resistor network comprised of the resistors 606 , 608 and 610 is connected between node 612 and another tap node 614 . node 614 is connected through a resistive network to a tap node 618 through a resistive network comprised of three series connected resistors 620 , 622 and 624 with a parallel resistor 628 connected between node 614 and 618 , all of these resistors being identical , 2 . 5k resistors . a resistive network is disposed between node 618 and a tap node 630 comprised of two parallel resistors 632 and 634 connected between node 618 and intermediate node 636 , intermediate node 636 connected through a resistor 638 to node 630 . each of the resistors 632 , 634 and 638 are 2 . 5k resistors . an identical resistive structure is connected between the node 630 and a tap node 640 comprised of the resistors 632 , 634 and 638 . node 640 is connected to a node 650 through two series connected resistors 652 and 654 , which are both 2 . 5k resistors . the resistive structure of the ladder network of fig6 is configured such that common value resistors can be utilized . however , each resistive structure between the various tap nodes could be specifically designed for that resistive value . the result is that the resistive value between nodes 602 and 604 , 604 and 612 and 612 and 614 have a value of 1 . 667k . the resistive structure between nodes 614 and 618 has a resistive value of 1 . 875k . the resistive structure between nodes 618 and 630 and nodes 630 and 640 has a resistive value of 3 . 75k . the resistive structure between nodes 640 and 650 has a resistive value of 5k . node 604 is connected to a source reference node 660 through the source / drain path of a p - channel transistor 662 . similarly , nodes 612 , 614 and 618 are connected through the source / drain paths of respective p - channel transistors 664 , 666 and 668 to the node 660 . nodes 630 , 640 and 650 are connected to node 660 through gates 670 , 672 and 674 , all of which are configured with two parallel connected p - and n - channel transistors to form a gate . the reason that the gate comprised of p - and n - channel transistors is not required for nodes 604 , 612 , 614 and 618 is that the voltage will be sufficiently high enough that an n - channel transistor is not required to provide a pass - through of the current there through . as such , current can be passed from node 602 through the various resistors and the appropriately turned on gate to the node 660 during operation thereof . the resistor 306 is identical to the resistive ladder structure of fig6 with the exception that the node 602 is connected to v ss and the transistors associated with gates 662 , 664 , 666 and 668 are n - channel transistors . other than that , the structure is identical . additionally , in the resistor 322 of fig6 , the gates of transistors 662 , 664 , 666 and 668 are connected to control signal c 0 - bar , c 1 - bar , c 2 - bar and c 3 - bar , respectively . the gates of the n - channel transistors for the pass gates 670 , 672 and 660 are connected to c 4 , c 5 and c 6 , with the complementary p - channel transistors associated therewith connected to the inverse gate control signal . for the resistor 306 ( not shown ), the n - channel transistors that replace the p - channel transistors 662 , 664 , 666 and 668 have the non - inverted form of the control gate connected thereto . referring now to fig7 , there is illustrated a schematic diagram of the switches 522 and 524 . the switches 524 and 522 are configured of two parallel connected complementary — and p - channel transistors . an n - channel transistor 702 has the source / drain path thereof connected between the node 304 and the node 520 and the source / drain path of a p - channel transistor 704 connected between node 304 and 520 , the gate of transistor 704 connected to the control signal b 3 and the gate of transistor 702 connected to the control signal b 3 - bar . the switch 522 is comprised of an n - channel transistor 710 and the p - channel transistor 712 having the source / drain path thereof connected in parallel between nodes 316 and 520 . the gate of transistor 710 is connected to the control signal b 3 and the gate of p - channel transistor 712 is connected to the signal b 3 - bar . referring now to fig8 , there is illustrated a schematic diagram of a current source circuit used in the voltage accurate current source 302 and the voltage accurate current source 320 . a reference voltage accurate current source is received on a node 802 from the node 452 of the current source of fig4 b for mirroring thereof . node 802 is connected to one side of an n - channel transistor 804 , the other side thereof connected to one side of an n - channel transistor 806 , the other side there of connected to v ss on a node 808 . ( it will be noted herein that the sides of a transistor , whether it is a p - channel transistor or an n - channel transistor , refer to either side of the source / drain path thereof .) the gate of transistor 804 is connected to a node 810 and the gate of transistor 806 is connected to a node 812 . the current through transistors 804 and 806 is , for description herein , normalized to a value of “ 1 .” an n - channel transistor 814 is connected between the v ss node 808 and a node 816 . node 816 is connected to one side of a p - channel transistor 818 , the other side thereof connected to one side of a p - channel transistor 820 , the other side thereof connected to a v dd node 822 . the gate of transistor 818 is connected to node 816 and the gate of transistor 820 is connected to a node 824 . the current through transistor 814 is twice the current through transistor 806 , as the size of transistor 814 is twice the size of transistor 806 . an n - channel transistor 826 has one side thereof connected to node 808 and the other side thereof connected to one side of an n - channel transistor 828 , the other side thereof connected to a node 830 . node 830 is connected to one side of a p - channel transistor 832 , the other side thereof connected to one side of p - channel transistor 834 , the other side of transistor 834 connected to the v dd node 822 . the gate of transistor 826 is connected to node 812 , the gate of transistor 828 is connected to node 810 , the gate of transistor 832 is connected to node 816 and the gate of transistor 834 is connected to node 830 . the current through transistor 826 is the same as the current through transistor 806 . an n - channel transistor 836 has one side thereof connected to node 808 and the other side thereof connected to one side of an n - channel transistor 838 , the other side of transistor 838 connected to one side of a p - channel transistor 840 , the other side of p - channel transistor 840 connected to one side of a p - channel transistor 842 , and the other side of p - channel transistor 842 connected to the v dd node 822 . the gates of transistors 836 and 838 are connected to node 810 , the gate of transistor 840 is connected to node 816 and the gate of transistor 842 is connected to node 824 . two cascode n - channel transistors 844 and 846 are connected in series with the one side of transistor 844 connected to node 808 and the other side of transistor 846 is connected to node 316 to provide the output current for the voltage accurate current source 320 . the gate of transistor 844 is connected to node 812 and the gate of transistor 846 is connected to node 810 . similarly , the output of the current source 302 is provided by two series connected cascode p - channel transistors 848 and 850 connected in series between node 822 and node 304 , with the gate of transistor 848 connected to node 830 and the gate of transistor connected to node 816 . the current through transistor 836 is equal to the current through transistor 808 . the current through transistor 844 is substantially four times the current through transistor 806 , since the transistor 844 is four times the size of transistor 806 . similarly , the current through transistors 848 and 850 is also four times the current through the transistors 820 , 818 and 814 . there is provided a power - down p - channel transistor 860 that is connected between nodes 830 and v dd node 822 which has the gate thereof connected to a pdn - bar signal that is high during normal operation . a p - channel transistor 862 is connected between node 824 and node 816 with the gate thereof connected to the power - down signal , pdn , which is low during normal operation , and transistor 862 will therefore conduct and connect node 824 to node 816 . a p - channel power down transistor 864 is connected between node 824 and node 822 with the pdn - bar signal connected to the gate thereof such that it is off during normal operation . referring now to fig9 , there is illustrated a detailed schematic of a current mirror circuit utilized with the current accurate current sources 310 and 312 . a reference current accurate current source is received on a node 902 from the node 430 of the current source of fig4 a for mirroring thereof . node 902 is connected to one side of an n - channel transistor 904 , the other side thereof connected to one side of an n - channel transistor 906 , the other side there of connected to v ss on a node 908 . ( it will be noted herein that the sides of a transistor , whether it is a p - channel transistor or an n - channel transistor , refer to either side of the source / drain path thereof .) the gate of transistor 904 is connected to a node 910 and the gate of transistor 906 is connected to a node 912 . the current through transistors 904 and 906 is , for description herein , normalized to a value of “ 1 .” an n - channel transistor 914 is connected between the v ss node 908 and a node 916 . node 916 is connected to one side of a p - channel transistor 918 , the other side thereof connected to one side of a p - channel transistor 920 , the other side thereof connected to a v dd node 922 . the gate of transistor 918 is connected to node 916 and the gate of transistor 920 is connected to a node 924 . the current through transistor 914 is twice the current through transistor 906 , as the size of transistor 914 is twice the size of transistor 906 . an n - channel transistor 926 has one side thereof connected to node 908 and the other side thereof connected to one side of an n - channel transistor 928 , the other side thereof connected to a node 930 . node 930 is connected to one side of a p - channel transistor 932 , the other side thereof connected to one side of p - channel transistor 934 , the other side of transistor 934 connected to the v dd node 922 . the gate of transistor 926 is connected to node 912 , the gate of transistor 928 is connected to node 910 , the gate of transistor 932 is connected to node 916 and the gate of transistor 934 is connected to node 930 . the current through transistor 926 is the same as the current through transistor 906 . an n - channel transistor 936 has one side thereof connected to node 908 and the other side thereof connected to one side of an n - channel transistor 938 , the other side of transistor 938 connected to one side of a p - channel transistor 940 , the other side of p - channel transistor 940 connected to one side of a p - channel transistor 942 , and the other side of p - channel transistor 942 connected to the v dd node 922 . the gates of transistors 936 and 938 are connected to node 910 , the gate of transistor 940 is connected to node 916 and the gate of transistor 942 is connected to node 924 . two cascode n - channel transistors 944 and 946 are connected in series with the one side of transistor 944 connected to node 908 and the other side of transistor 846 is connected to a node 947 to provide an output current . the gate of transistor 944 is connected to node 912 and the gate of transistor 946 is connected to node 910 . similarly , an output current is provided by two series connected cascode p - channel transistors 948 and 950 connected in series between node 922 and a node 951 , with the gate of transistor 948 connected to node 930 and the gate of transistor connected to node 916 . the current through transistor 936 is equal to the current through transistor 938 . the current through transistor 944 is substantially the same as the current through transistor 946 . similarly , the current through transistors 948 and 950 is also the same as the current through the transistors 920 , 918 and 914 . there is provided a power - down p - channel transistor 960 that is connected between nodes 930 and v dd node 922 which has the gate thereof connected to a pdn - bar signal that is high during normal operation . a p - channel transistor 962 is connected between node 924 and node 916 with the gate thereof connected to the power - down signal , pdn , which is low during normal operation , and transistor 962 will therefore conduct and connect node 924 to node 916 . a p - channel power down transistor 964 is connected between node 924 and node 922 with the pdn - bar signal connected to the gate thereof such that it is off during normal operation . the above circuitry is substantially the same as the embodiment of fig8 , with the difference being the circuitry associated with the switches 512 and 514 , which are integral thereto . these are facilitated with a series p - channel transistor 962 , that is connected between node 930 and the gate of a p - channel transistor 964 , which is connected between the v dd node 922 and one side of the p - channel transistor 966 , the other side thereof connected to the output node 510 . the gate of transistor 966 is connected to the node 916 . a p - channel transistor 972 is connected between the gate of transistor 964 and the v dd node 922 , the gate thereof connected to the control signal pact , which is high when current is to be passed through transistors 964 and 966 , and the gate of transistor 962 connected to the inverse thereof , such that gate 962 conducts when current is to be passed through transistors 964 and 966 . on the opposite side of the current source , that associated with the current source 312 , there are provided two cascode n - channel transistors 980 and 982 connected in series between the node 510 and the v ss node 908 . the gate of transistor 980 , the lower transistor , is connected to one side of a series n - channel transistor 984 , the other side thereof connected to the node 912 . an n - channel transistor 986 is connected between the gate of transistor 980 and ground . the gate of transistor 986 is connected to the control signal nact - bar , which is low when current is being sinked through transistors 980 and 982 . the gate of transistor 984 is connected to the control signal nact which is high during current sinking . the size of transistors 980 , 982 , 964 and 966 is substantially four times the size of transistor 906 , such that substantially four times the current passes there through . referring now to fig1 , there is illustrated a schematic diagram of the enable switches 502 and 508 . the switch 502 is comprised of two parallel connected transistors , an n - channel transistor 1002 and a p - channel transistor 1004 , connected between node 506 and intermediate node 1004 . a resistor 1011 is connected between node 1004 and the pad 202 . the gate of p - channel transistor 1004 is connected to an enable signal en - bar , and the gate of transistor 1002 is connected to an enable signal , en . the switch 508 is comprised of two parallel connected transistors , a p - channel transistor 1008 and an n - channel transistor 1010 connected in parallel between node 510 and an intermediate node 1012 . a resistor 1014 is connected between node 1012 and the pad 202 . resistors 1011 and 1014 are resistors with a fairly small resistance such as 500 ohms . the gate of transistor 1008 is connected to the en - bar signal and the gate of transistor 1010 is connected to the en signal . this configuration of separate drive and sense switches makes measurement insensitive to switch resistance . referring now to fig1 , there is illustrated a state diagram for the operation of the resistor determination and determination of program codes . the state diagram initially resets to an idle state 1102 , which idle state is set whenever a reset is asserted , and this state is exited whenever the “ supervisor ” starts the operation of determining code . once the reset is unasserted , the state diagram will flow to a state 1104 to perform a resistor connection check . this state determines which side the resistor is connected to , i . e ., v dd or ground . depending upon which side it is connected to , the state diagram will flow to either a state 1106 to perform a positive resistor check , or to a state 1108 to perform a negative resistor check . in the positive resistor check state , indicating that the resistor connection check state 1104 had determined that the resistor was connected to v dd , the binary value for the resistor r known is incremented from the lowest value to the highest value until an equality on the output of the comparator 212 is reached . when the equality is reached , this constitutes the decoded value of the resistor 114 . when this decoded value is reached , the state diagram flows to a state 1110 to latch the decoded code for each pad having an external program resistor associated therewith . this is latched into a memory location as part of a control word . the negative resistor check state 1108 operates similar to the positive resistor check state 1106 . once a particular code is latched , a determination is made in a decision block 1112 as to whether all pads have been decoded . if not , the state diagram flows back to the idle state 1102 to go to the next pad . when all pads are done , the state diagram flows to a state 1118 , which is the terminal state of the state machine . this state is only exited after another hardware reset . referring now to fig1 , there is illustrated an alternate embodiment for determining the value of the program resistor 114 . in the above - described embodiment , the voltage across either the internal resistor or the program resistor is measured with a “ forced ” current of approximately 100 microamps in the above described embodiment . thus , by forcing a known current through both an internal resistor and the program resistor , the two voltages resulting therefrom can be compared . in the alternate embodiment , the voltage is forced across the program resistor and the internal resistor and then the current there through measured , this voltage being a constant voltage . thus , when the internal resistor is varied , the current there through will vary . by comparing the resultant currents , the internal resistor can be varied in a quantized manner to determine a code value associated with the discreet value of the external program resistor . referring further to fig1 , there is provided a voltage source 1202 that provides a constant voltage v ref . this voltage v ref is a voltage that is preferably process and temperature independent . this , as described above , can be generated with the internal band gap generator . this voltage is pressed on a node 1204 . the voltage on node 1204 is disposed across an internal resistor 1206 , which is variable . the voltage on node 1204 is also then impressed across the resistor program resistor 114 , which program resistor 114 is disposed between the node 1204 and ground . similarly , the internal resistor 1206 is disposed between the internal node and ground . this is for the condition wherein the external resistor is connected between the pad and ground , the pad connected to node 1204 . the current through resistor 1206 is measured with a current measurement device 1210 . this current is converted to voltage with a current - to - voltage converter ( not shown ) and input to the negative input of a comparator 1212 . similarly , a current measurement device 1214 is provided for measuring a current through the resistor 114 to ground and this converted to a voltage for input to the positive input of the comparator 1212 . the comparator 1212 determines the difference in currents . for the operation wherein the program resistor 114 is connected between v dd and the node 1204 , the voltage reference 102 provides a constant voltage on the node 1204 , with the exception that current flows into the positive input of the reference voltage 1202 instead of sourcing current to the node 1204 . although the preferred embodiment has been described in detail , it should be understood that various changes , substitutions and alterations can be made therein without departing from the spirit and scope of the invention as defined by the appended claims .