How many ports in 8051




















Suggested Exams. More Digital Electronics Questions Q1. Choose the universal gate from the following:. The fastest type of Analog to Digital converter is. Decimal number 14 may be written in Binary system as. Which of the following logic is the fastest? A decade counter requires.

Testbook Edu Solutions Pvt. In the following code, port 0 is configured first as an input port by writing Is to it, and then data is received from that port and sent to P1.

Dual role of port 0. The multiplexes address and data through port 0 to save pins. We discuss that in Chapter Port 1. Port 1 occupies a total of 8 pins pins 1 through 8. It can be used as input or output. In contrast to port 0, this port does not need any pull-up resistors since it already has pull-up resistors internally. Upon reset, port 1 is configured as an input port. The following code will continuously send out to port 1 the alternating values 55H and AAH.

Port 1 as input. If port 1 has been configured as an output port, to make it an input port again, it must programmed as such by writing 1 to all its bits. The reason for this is discussed in Appendix C. In the following code, port 1 is configured first as an input port by writing Is to it, then data is received from that port and saved in R7, R6, and R5. Port 2. Port 2 occupies a total of 8 pins pins 21 through Just like PI, port 2 does not need any pull-up resistors since it already has pull-up resistors internally.

An Engineering Graduate with a specialization in Embedded systems, who loves to dabble with IoT automation cause switching lights on with switches is to mainstream. A bibliophile who loves to travel and experience new cultures. A free course on digital electronics and digital logic design for engineers. Everything is taught from the basics in an easy to understand manner.

A free course on Microprocessors. Start from the basic concepts related to the working of general microprocessors and work upto coding the and If you have ever thought of making an electronic project but didn't know where to start, this free Arduino course will be perfect for you.

Nischay Khanna. Digital Electronics Course A free course on digital electronics and digital logic design for engineers. Arduino Course If you have ever thought of making an electronic project but didn't know where to start, this free Arduino course will be perfect for you. Moves data from a given port to the carry flag. Moves data from a given port to the accumulator. Cheks the value in the input buffer.

If the value is zero then it transfers the control to the given address. If the value is not zero then it transfers the control to the given address. Cheks the value in the input buffer of a port. The output FE transistor is turned off and the other pin remains connected to the power supply voltage over a pull-up resistor of high resistance.

When P0 port is configured as an output then other ports consisting of pins with built-in pull-up resistor connected by its end to 5V power supply, the pins of this port have this resistor left out. In order to apply logic 1 5V on this output pin, it is necessary to build an external pullup resistor. It has a built-in pull-up resistor and is completely compatible with TTL circuits.



0コメント

  • 1000 / 1000