How to write assembly language for colour code of resistors?

Asked By 10 points N/A Posted on -
qa-featured

I want to write a assembly code for resistors but I am not able to figure out the assembly language for color code of resistors.

Can I just put in the basic codes and then write a code for different values?

SHARE
Answered By 590495 points N/A #142370

How to write assembly language for colour code of resistors?

qa-featured

Writing a program that will aid users on the color-coding of the resistor should be accurate. A single incorrect value set on a particular color of the resistor will have a great impact on the actual value of the electronic device or the resistor. Calculating an incorrect value of a resistor based on the colors printed on the body of the device will result on bigger problems when applied to Printed Circuit Board or PCB.

A resistor usually has 4 colors printed on its body. The first two colors designate the first and second band or value then the third color is the multiplier or the number of zeros to be added. The fourth color on the resistor designates its tolerance value. For example, a resistor with colors brown, black, yellow, and gold will have the value of 100 kΩ 5% tolerance.

Brown is equal to 1, black is 0, yellow is 4, then gold is 5% tolerance. When you combine it, the first 2 colors stands as the first 2 digits, 10, then the third color yellow has a value of 4 which is then the number of zeros to be added. So that makes 10 + 0000 is equal to 100,000 or 100 kΩ. K is equivalent to 1 thousand.

For the exact color coding value of the resistor, you may refer to Wikipedia | The Free Encyclopaedia | Electronic color code.

Related Questions