Best Answer

Clr psw.3

clr psw.4

mov r1, 05h

mov r0, #50h

dcr r1

mov 10h, @r0

up: inc r0

mov a, @r0

cjne a, 10h dn

ajmp

dn: jnc next

mov 10h,a

next: djnz r1 up

*:ajmp *

Q: Finding largest smallest number for 8051 microcontroller program?

Write your answer...

Submit

Still have questions?

Continue Learning about Other Math

k

syntax error

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html

_______ program

Programs is a noun (plural form of program) and a verb (third person singular conjugation of program).

Related questions

helicopter

Not that easy... You would need to know how to build and program a microcontroller well. You also need hardware to program a microcontroller. look at related links

please any one tell me how

final double[] ns = new double[10]; final Random rnd = new Random(System.currentTimeMillis()); // Fill... for (int i = 0; i < ns.length; ++i) { ns[i] = rnd.nextDouble(); } // Get largest/smallest... double largest = Double.MIN_VALUE; double smallest = Double.MAX_VALUE; for (double n : ns) { if (n > largest) { largest = n; } if (n < smallest) { smallest = n; } } // largest and smallest are now the proper values.

Name two variables x and y. Divide the largest by smallest. If remainder is zero then the smallest is the HCF.

No.....You have to program it and upload in the microcontroller

66666

sir,please tell us about microcontroller 8951 program for robotic car

Use the following algorithm (written in pseudocode). Let largest be the lowest possible real number. Let smallest be the greatest possible real number. Repeat while there is input... { Read real number r from input. If r is greater than largest then let largest be r. If r is less than smallest then let smallest be r. } End repeat. Let range be largest minus smallest. Output range.

write a c program to fine largest/smallest of 3no (using ?:ternary operator/conditional operator)

#include #include #include int main(int argc, char *argv[]){int n, smallest, largest, sum, temp;if(argc < 2){printf("Syntax: foo val1[val2 [val3 [...]]]\n");exit(1);}smallest = largest = sum = atoi(argv[1]);for(n = 2; n < argc; n++){temp = atoi(argv[n]);if(temp < smallest) smallest = temp;if(temp > largest) largest = temp;sum += temp;}printf("Smallest: %i\nLargest: %i\nAverage: %i\n", smallest, largest, sum / (argc - 1));return 0;}

c in 89c51 stands for cmos.. s in 89s51 stands for system programming system programming is way of burning your program into microcontroller chip... just like we write a program in c language and then burn it into microcontroller.this in system programming is another way of burning your program into microcontroller....