Develop a ‘C’ program to transfer the data from port P0 to port P1.

1 Answer

Answer :

#include<reg51.h>

void main (void )

{

unsigned char X;

P0=0XFF; // P0 as input port

P1=0X00;//P1 as output port

while(1) //do forever

{

X = P0;//read port0

P1 = X;// output data to port1

}

Related questions

Description : Find parametric equation for Y-coordinates of Hermite cubic spline curve having endpoints P0[4,4]; P1[8,5] a.2u3-3u2+2u+4 b.3u3-2u2-2u-4 c.2u3-3u2-2u-4 d.2u3+3u2+2u+4

Last Answer : a.2u3-3u2+2u+4

Description : Find parametric equation for X-coordinates of hermite cubic spline curve having endpoints P0[4,4]; P1[8,5] a.-5u3+8u2+u+1 b.5u3+8u2+u+1 c.8u3-5u2-u+1 d.8u3+5u2+u+1

Last Answer : a.-5u3+8u2+u+1

Description : Write a C language program to operate port 0 and port 2 as output port and port 1 and port 3 as input port.

Last Answer : #include void main (void ) { unsigned char X,Y P0=0X00; // P0 as output port P2=0X00;// P2 as output port P1=0XFF;//P1 as input port P3=0XFF;// P3 as input port while(1) { X= P1; Y=P3; P0=X; P2=Y; }//end of while }//end of main

Description : Which of the following instruction is used to set bit port directly? a) SET P1.0 b) MOV P1.0, bit c) SETB P1.0 d) JB P1.0, bit

Last Answer : JB P1.0, bit

Description : In ADC 0808 if _______ pin high enables output. a) EOC b) I/P0-I/P7 c) SOC d) OE

Last Answer : b) I/P0-I/P7

Description : The transfer function of a phase lead compensator is found to be the form (s+z1 ) / (s + p1 ) and that of a lag compensator to be of the form (s+z2 ) / (s + p2 ). Then which of the following conditions must be satisfied?  ... (B) z1 > p1 and z2 < p2 (C) z1 < p1 and z2 < p2 (D) z1 < p1 and z2 > p2

Last Answer :

Description : ________ is a high-speed real-time interface for serial bus and it has data transfer up to 400 Mbps. A. Serial Port B. Fire wire C. Parallel Port D. None of the Above

Last Answer : B. Fire wire

Description : Explain the term ‘Deadlock’. State reason of occurance.

Last Answer : A deadlock is a situation where in two or more competing actions are each waiting for the other to finish, and thus neither ever does.  * Assume thread/process T1 has exclusive access to resource R1. ... P1 to Pn P1 waiting for the resource held by P2, P2 waiting for resource held by P3 etc.

Description : Explain the need to consider following factors in design matrix of embedded system: (i) Processor (ii) Memory (iii) Power (iv) Non- recurring engineering cost.

Last Answer : 1. Processor: Selection of processor depends upon amount of processing power and the register width required. Powerful 8bit, 16 bit, 32 bit & 64bit processors are available. The clock speed ... system is designed any number of units can be manufactured without incurring any additional design cost.

Description : Compare synchronous and asynchronous communication.

Last Answer : Synchronous communication Asynchronous communication Single clock is used for both transmitter and receiver Two different clocks are used for both transmitter and receiver Data bits are transmitted ... Character is received at a any rate Less reliable More reliable

Description : Compare features of PIC and AVR microcontrollers

Last Answer : Parameters PIC AVR Bus width 8/16/32-bit 8/32-bit Communication Protocols UART, USART, LIN, CAN, Ethernet, SPI, I2C UART, USART, SPI, I2C, (special ... Average Atmel Popular Microcontrollers PIC18fXX8, PIC16f88X, PIC32MXX Atmega8, 16, 32, Arduino Community

Description : Sketch pin-out diagram of LM35 and label its pin.

Last Answer :  pin-out diagram of LM35 and label its pin

Description : State two examples of RTOS.

Last Answer : 1. LynxOS. 2. OSE. 3. QNX. 4. RTLinux. 5. VxWorks. 6. Windows CE.

Description : State the use of MAX 232 in communication.

Last Answer : MAX 232 is line driver that converts from RS232 voltage levels to TTL voltage levels & vice versa in serial communication 

Description : State four advantages of embedded system. 

Last Answer : 1) Design and Efficiency 2) Cost 3) Accessibility 4) Maintenance 5) Redundancies

Description : List out four types of embedded systems.

Last Answer : 1. Small Scale Embedded Systems 2. Medium Scale Embedded Systems 3. Sophisticated Embedded Systems 4. Stand Alone Embedded Systems 5. Real Time Embedded Systems 6. Networked Embedded Systems 7. Mobile Embedded Systems

Description : State the methods of task synchronization. Describe semaphore with suitable example.

Last Answer : The methods of task synchronization are: Semaphore Message queue. Mutual exclusion.  Dead lock. Mailboxes. Message Queues. Semaphores: It is a system of sending message by using flags. Multiple concurrent threads of execution ...   signal(Sem);  }  in process P2  {  wait(Sem);  S2;  }

Description : Draw the block diagram of an embedded system and describe the hardware units of an embedded system.

Last Answer : OR Explanation: The embedded system consist of different components embedded into it as follows: 1) Embedded Processor 2) Power supply , reset and Oscillator circuits 3) System timers 4) ... to store data and program. Following are types of memories used in embedded system.

Description : Draw the labeled interfacing diagram to interface relay with 89C51 microcontroller.

Last Answer : the labeled interfacing diagram to interface relay with 89C51 microcontroller

Description : State four features of Zigbee.

Last Answer : Zigbee features (any4):- IEEE Standard 802.15.4 Frequency (GHz) 0.868, 0.915, 2.4 Maximum bit rate (Mbps) 0.250 or 250 Kbps, low bit rate Typical data throughput (Mbps) 0.2 ... Range (Meters) 10-100 Relative Power Consumption Very low Battery Life Months to years Network Size 64,000+ 

Description : State any four features of IDE.

Last Answer : Features of IDE 1) IDE normally consists of source code editor, a compiler, build automation tools and debugger. 2) It supports for defining a processor family and its version. 3) ... 4) Provides multiuser environment. 5) Supports conditional and unconditional break points. 6) Provides debugger.

Description : What is multicore processor? Describe in brief.

Last Answer : Multicore Processor: It is an integrated circuit in which two or more processors core have been packaged for enhanced performance, reduced power consumption and more efficient simultaneous ... Multicore processors will give the benefits to all software especially for multithreaded program.

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : The time required to develop a system to the point that it can be released and sold to customers. The main contributors are design time, manufacturing time, and testing time. This metric has become ... early can make a big difference in the system's profitability. Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Hard drives have two kinds of components: internal and external. External components are located on a printed circuit board called logic board while internal components are located in a sealed chamber called HDA or Hard ... that a Hard Disk Drive is an RTES.  Version 2 EE IIT, Kharagpur 

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : The Performance Design Metric Performance of a system is a measure of how long the system takes to execute our desired tasks. The two main measures of performance are:  Latency or ... the available processors rather than going for a custom design.  Version 2 EE IIT, Kharagpur 

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Design Metrics  A Design Metric is a measurable feature of the system's performance, cost, time for implementation and safety etc. Most of these are conflicting requirements i.e. optimizing one ... test circuitry to check that manufacturing was correct.  Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Components of an Embedded System   By this time we know where are our Embedded Systems and what makes them stand out from other systems like Calculators, Desktop Computers, and our Old Television ... account the technical as well as economic considerations.  Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Structure and Design Instructional Objectives  After going through this lesson the student will  Learn more about the numerous day-to-day real time embedded systems  Learn the ... data such as phone numbers, calendars information, games etc.  Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA. 

Last Answer : Manufacturer  Model:  Network Types:  EGSM/ GSM /CDMA  Form Factor: The industry standard that defines the physical, external dimensions of a particular device. The size, configuration, and other specifications used ...   Speaker  Phone:  USB:  Vibrate: Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA. 

Last Answer : Many embedded systems must continually react to changes in the system's environment and must compute certain results in real time without delay. For example, a car's cruise controller continually monitors and ... user, typically does not result in a system failure.  Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA. 

Last Answer : Five advantages:  1. Smaller Size  2. Smaller Weight  3. Lower Power Consumption  4. Lower Electromagnetic Interference  5. Lower Price  Five disadvantages  1. Lower Mean Time Between Failure  ... Obsolesce  4. Unmanageable Heat Loss  5. Difficult to Design  Version 2 EE IIT, Kharagpur

Description : Which of the following is a real time embedded system? Justify your answer (a) Ceiling Fan (b) Microwave Oven (c) Television Set (d) Desktop Key Board (e) Digital Camera Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA. 

Last Answer : (b) and (e) are embedded systems  (a) Ceiling Fans: These are not programmable.  (b) & (e) obey all definitions of Embedded Systems such as (i) Working in Real Time (ii) Programmable ... mass-produced, so the cost savings may be multiplied by millions of items.  Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Common Architecture of Real Time Embedded Systems  Unlike general purpose computers a generic architecture can not be defined for a Real Time Embedded Systems. There are as many architecture as the ... monitored through an ADC interfaced through this CODEC. Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Definitions  Now we are ready to take some definitions  Real Time  Real'-time usually means time as prescribed by external sources For example the time struck by clock (however ... the computer user, typically does not result in a system failure.   Version 2 EE IIT, Kharagpur

Description : Distributed under Creative Commons Attribution-ShareAlike - CC BY-SA.

Last Answer : Lesson 1 Introduction to Real Time Embedded Systems Part I  Example, Definitions, Common Architecture  Instructional Objectives After going through this lesson the student would be able to  Know what an ... as a Real Time Embedded System (RTES)  Version 2 EE IIT, Kharagpur

Description : Develop a program using structure to print data of three students having data members name, class, percentage.

Last Answer : #include #include void main() { struct student { char name[20]; char c[20]; int per; } s[3]; int i; clrscr(); for(i=0;i

Description : Two lines L1 and L2 having Parametric equations are P1=[3 4 7]+u[2 2 -6] and P2=[15 -2]+u[1 4 2]. Tangent vector for line L1 a.2i+2j-6k b.2i+2j+6k c.2i-2j-6k d.6-2j-2k

Last Answer : a.2i+2j-6k

Description : Two lines are parallel when a.P1 X P2=0 b.P1 . P2=0 c.P1 = P2 d.P1+ P2=0

Last Answer : a.P1 X P2=0

Description : Find coordinates of points on line having end points P1(3,5,8) and P2 (6,4,3) at u=0.25 a.[3.75 4.25 6.25] b.[3.25 4.25 6.25] c.[3.75 4.75 6.75] d.[4.25 3.75 6.25]

Last Answer : c.[3.75 4.75 6.75]

Description : Find the tangent vector of line having end points P1(3,5,8) and P2 (6,4,3) a.3i+j-5k b.3i-j-5k c.3i-j+5k d.-3i-j-5k

Last Answer : b.3i-j-5k

Description : Write parametric equation of line having end points P1(3,5,8) and P2 (6,4,3). a.[3 5 8]+u[3 -1 -5] b.[3 5 8]+u[3 1 5] c.[3 8 5]+u[3 -1 -5] d.[3 5 8]+u[-3 1 5]

Last Answer : a.[3 5 8]+u[3 -1 -5]

Description : In a 2-D CAD package, clockwise circular arc of radius, 5, specified from P1 (15,10)to P2 (10,15)will have its center at a.(10, 10) b.(15, 10) c.(15, 15) d.(10, 15)

Last Answer : a.(10, 10)

Description : The molecular formula of phosphorus is (a) P1 (b) P2 (c) P3 (d) P4

Last Answer : Ans:(d)

Description : Q No: 251 In a sludge digestion tank if the moisture content of sludge V1 litres is reduced from p1 % to p2 % the volume V2 is A. [(100 + P1)/(100 – P2)] V1 B. [(100 – P1)/(100 + P2)] V1 C. [(100 – P1)/(100 – P2)] V1 D. [(100 + P2)/(100 – P1)] V1

Last Answer : ANS: C

Description : A signal is measured at two different points. The power is P1 at the first point and P2 at the second point. The dB is 0. This means________. A) P2 is zero B) P2 equals P1 C) P2 is much larger than P1 D) P2 is much smaller than P1

Last Answer : P2 equals P1

Description : The unit vector to the points p1(0,1,0), p2(1,0,1), p3(0,0,1) is a) (-j – k)/1.414 b) (-i – k)/1.414 c) (-i – j)/1.414 d) (-i – j – k)/1.414

Last Answer : a) (-j – k)/1.414

Description : Find a vector normal to a plane consisting of points p1(0,1,0), p2(1,0,1) and p3(0,0,1) a) –j – k b) –i – j c) –i – k d) –i – j – k

Last Answer : a) –j – k

Description : Find out the price elasticity in the following example : Price Demand 5(P1) 10(Q1) 4(P2) 15(Q2) (a) – 2.5 (b) + 3.5 (c) + 4.0 (d) + 2.5

Last Answer : (a) – 2.5

Description : A short column (30 cm 20 cm) carries a load P1 at 4 cm on one side and another load P2at 8 cm on  the other side along a principal section parallel to longer dimension. If the extreme intensity on  either side is same, the ... to P2 will be  (A) 2/3  (B) 3/2  (C) 8/5  (D) 5/8 

Last Answer : (C) 8/5 

Description : If f1 and f2 are the distances from the optical centre of a convex lens of focal length to conjugate two points P1 and P2 respectively, the following relationship holds good (A) f = f1 + f2 (B) f = ½ (f1 + f2) (C) 1/f = 1/f1 + 1/f2 (D) None of these

Last Answer : (C) 1/f = 1/f1 + 1/f2