MICROPROCESSOR AND MICROCONTROLLER

AVR MICROCONTROLLER

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The data will not go from the port registers to the pin unless:
A
DDR register of that port is set to 0
B
PORT register of that port is set to 1
C
DDR register of that port is set to 1
D
PORT register of that port is set to 0
Explanation: 

Detailed explanation-1: -Explanation: The data will not go from the port registers to the pin unless the DDR register of that port is set to 1 because by doing this we make that port an output port after which data can be taken from the PORT registers to the pin.

Detailed explanation-2: -PORTx: This register is used to send the data to port pins. Writing 1’s to PORTx will make the corresponding PORTx pins as HIGH. Similarly writing 0’s to PORTx will make the corresponding PORTx pins as LOW.

Detailed explanation-3: -Data Direction Register configures the data direction of port pins. These registers are used for determining whether port pins will be used for input or output. On writing 1 to a bit in DDRx makes corresponding port pin as output, while writing 0 to a bit in DDRx makes corresponding port pin as input.

Detailed explanation-4: -DDRx register DDRx (Data Direction Register) configures data direction of port pins. Means its setting determines whether port pins will be used for input or output. Writing 0 to a bit in DDRx makes corresponding port pin as input, while writing 1 to a bit in DDRx makes corresponding port pin as output.

Detailed explanation-5: -A ‘0’ in the data direction register sets the port bit as an output, and a ‘1’ sets it as an input.

There is 1 question to complete.