Patent ID: 7863927

Claim:
A semiconductor device comprising: a pad for coupling an external resistor; a first first-type resistance adjuster whose resistance value is adjusted according to a first code signal; a second first-type resistance adjuster whose resistance value is adjusted according to the first code signal; a third first-type resistance adjuster whose resistance value is adjusted according to a first correction code signal; a first second-type resistance adjuster whose resistance value is adjusted according to a second code signal; a second second-type resistance adjuster whose resistance value is adjusted according to the second code signal; and a code generator for comparing potential of a first node determined by a resistance ratio between the external resistor and the first first-type resistance adjuster with a reference potential, adjusting the first code signal according to a comparison result, adjusting a first correction code based on the first code signal, comparing potential of a second node determined by combined resistance between the second first-type resistance adjuster and the third first-type resistance adjuster and combined resistance between the first second-type resistance adjuster and the second second-type resistance adjuster with reference potential, and adjusting a second code signal according to a comparison result, wherein a resistance value of the external resistor is between a first resistance value of the first first-type resistance adjuster when adjusted the resistance value according to the first code signal and a second resistance value of the first first-type resistance adjuster when adjusted the resistance value according to the first correction code signal.