CHAPTER 9. INSTRUCTION SET

9.4.12 Input/Output Instructions

IN A, PORTn

Function: A PORTn; n = N3 to N0 : 0 to 3, 5, 6

Transfers the contents of the port specified by PORTn (n = 0 to 3, 5, 6) to the A register.

Note Only 0 to 3, 5 or 6 can be specified at n.

Output latch data (output mode) or pin data (input mode) is fetched according to input/output mode

specification.

OUT PORTn, A

Function: PORTn A; n = N3 to N0 : 2, 3, 5, 6

Transfers the contents of the A register to the output latch of the port specified by PORTn (n = 2, 3, 5, 6)

Note Only 2, 3, 5, or 6 can be specified at n.

175

Page 186
Image 186
NEC PD75P402, PD75402A user manual Input/Output Instructions, 175