What is required to use PA as an input?
Answer When PA is used as an input, before reading data on the input pin, the pin must be set to a “1” level. This is executed using the SET PA.i (i=0~7) instruction to inhibit the related NMOS output from outputting data. After this instruction has been executed, the MOV A, PA instruction can be used to read the data on the pin.