answersLogoWhite

0


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 *

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Finding largest smallest number for 8051 microcontroller program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

C program to find the largest and smallest character in a word?

helicopter


How do you build a keyboard?

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


Write a program that randomly fills a 10 component array then prints the largest and smallest values in the array?

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.


How do you program microcontroller in Matlab?

please any one tell me how


How to write a C program for left factoring?

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


Is AT89C51 is already programmed when you buy it from market?

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


Program to convert bcd to gray code using 8051 microcontroller.?

66666


What is the program for interfacing 8952 microcontroller with PC?

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


How do you write program to read a set of real numbers and find the range is given by the difference between largest and smallest number?

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.


How can you download c compiler?

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


Write a program that will find the smallest largest and average values in a collection of N numbers Get the value of N before scanning each value in the collection of N numbers?

#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;}


In 89S51 what s means 89c51 what c means?

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....