Port 0 can be used as a normal bidirectional I/O port or it can be used for address/ data interfacing
for accessing external memory when control ‘1’ the port is used for address/data interfacing, when the control is ‘0’ the port can be used as a bidirectional I/O …