Posts

Microcontroller

Comparison between micro-controller and microprocessor Sr No. Microcontroller Microprocessor 1. Inbuilt RAM or ROM Do not have inbuilt RAM or ROM 2. Inbuilt Timer Do not have inbuilt Timer 3. I/O ports are available I/o ports are not available ,requires extra device like 8155 or 8255. 4. Inbuilt serial port Do not have inbuilt serial port , requires extra devices like 8250 or 8251 5. Separate memory to store program and data Program and data are stored in same memory 6. Few instructions to read or write data to or from external memory. Many instructions to read or write data from or to external memory. A microcontroller is an entire computer manufactured on a single chip. Microcontrollers are usually dedicated  devices embeded within an application Example microcontrollers are used as engine controllers in engine automobiles and as exposure and focus controllers in cameras . Features of 8051:- 8 bit bus and 8 bit ALU. 16 bit address ...

Computer Questions

1.When data and acknowledgement are sent in the same frame ,this is called as A) Piggy packing B) Piggy backing C) Back packing D) Good packing Answer:-B) Piggy backing 2.Encryption and Decryption is the responsibility of ________Layer. A) Physical B) Network C) Application D) Datalink Answer:- C) Application 3.An analog signal carries 4 bits in each signal unit .If 1000 signal units are sent per second ,then baud rate and bit rate of the signal are ____ and ____. A) 4000 bauds \ sec & 1000 bps B) 2000 bauds \ sec & 1000 bps C) 1000 bauds \ sec & 500 bps D) 1000 bauds \ sec & 4000 bps Answer:- D) 1000 bauds \ sec & 4000 bps 4.The VLF and LF bauds use ______ propagation for communication. A) Ground B) Sky C) Line of sight D) Space Answer:- A) Ground 5) Using the RSA public key crypto system ,if p=13 q=31 and d=7,then the value of e is A) 101 B) 103 C) 105 D) 107 Answer:- 105 6)FAN IN of a component A is defined as A) Num...

Algorithm of microprocessors programming

Microprocessor Programming 8085 and 8086:- Experiment No. 1 - Addition of Two 8-bit Numbers and Sum is 8-bit Algorithm:- 1.Initialize the memory location of first number in HL register pair. 2.Move first number/data into accumulator 3.Increment the content of HL register pair to initialize the memory location of second data 4.Add the second data with accumulator 5.Store the result in memory location 8003H Experiment No. 2 - Addition of two 8 bit numbers and sum is 16-bit Algorithm:- 1.Initialize the memory location of 1st data in HL register pair. 2.Store first data in the memory location. 3.Increment the content of HL register pair for entering next data in the next memory location. 4.Store second data in the memory location. 5.Move second number in accumulator. 6.Decrease the content of HL register pair. 7.Add the content of memory (first data) with accumulator. 8.Store the results in memory location 8503H and 8504H. Experiment No. 3 - Addition of Two 16-Bit Nu...

Happy New Year

2013 WISH YOU HAPPY AND PROSPEROUS NEW YEAR Welcome to 2014 Make this year with full of joy and happiness in this world. Let there be peace, growth and mankind with enjoyment this year. Think always Positive to change the world. Think Good and big to become Big. Thanks God. May God bless you. Happy New year 2014 Again 365 days starts in looping.

Programs of microprocessor

Microprocessor cannot understand a program written in Assembly Language . Instruction are divided into bit pattern of word in byte as op-code(operation code) and operation Instruction format has three types 1.One byte-has op-code 2.Two byte- has op-code and address 3.Three byte -has code and address lower byte and address higher byte opcode 1 byte opcode Data / address 2 byte opcode Data / address Lower byte Data Address Higher byte 3 byte Instructions set for 8085 are classified into five categories: 1.Data transfer group instructions 2.Arithmetic group of instrructions 3.Logical group 4.Branching group 5.Machine Level A program known in Assembler is used to covert a Assembly language program to machine language. I) Data transfer copy operation:- 1)Load a 8 bit number in a register 2)Copy from Register to Register 3)Copy between Register and Memory 4)Copy between Input/Output Port and Accumulator 5)Load a 16 bit number in a Register pair 6) Cop...

Solve

SOLVE  1) Find the odd man out - 49,  81 ,100 ,144 A) 49 B) 81 C) 100 D) 144 2)Which of the following numbers is different from others? A) 3156 B) 4164 C) 5255 D) 6366 3)Fill the blank 5,35,7,42,6 ,_____,9,36,4. A) 45 B) 48 C) 54 D) 56  4)Find odd man out :DFEG,  JKLM,   GHIK,   RTSU A) DFEG B)JKLM C)GHIK D)RTSU 5) find odd man out 1,3,10,21,64,129,256,778 1) 10 2) 21 3) 129 4) 256 6)The missing number in the series is: 0 , 6 , 24 , 60 , 120 , ? , 336 is A) 240 B) 220 C) 280 D)210 7)Let a means minus (-) ,b means multiplied by (*), C means divided by (/) and D means plus(+).The value of 90 D 9 a 29 C 10 b 2 A) 8 B) 10 C) 12 D) 14 8)If MOHAN is represented by the code KMFYL, then COUNT will be represented by A) AMSLR B) MSLR C) MASRL D)SAMLR 9)  32     33      37    46     62    ? Replace ...

More C++ programs

//Program to display Floyd triangle:- #include<iostream.h> main() {     int line,i,num=1,incr;     cout<<" How many lines = ";     cin>>line;     cout<<"\n \n Floyds Triangle \n \n";     for(i=1;i<=line;i++)     {         for(incr=1;incr<=i;incr++)         {             cout<<num;             cout<<"\t";             num++;         }         cout<<"\n";     } } Output:- How many lines = 7 Floyds triangle 1 2           3 4           5     ...