Which of the following statements are correct?
A. PIN register of a port is used to bring data into CPU from pins
B. PORT register is used to send data out to pins
C. DDR register is used to control the direction of a port
D. all of the mentioned
Answer:A
Which of the following statements are correct?
A. PIN register of a port is used to bring data into CPU from pins B. PORT register is used to send data out to pins C. DDR register is used to control the direction of a port D. all of the mentioned
Explanation: There are three registers that are related to a port. They are PIN, PORT, DDR. PIN register is used to bring data into CPU from pins, PORT register is used to send data to pins and DDR register is used to control the direction of the data transfer. So all are the right options.