NEC PD75402A Manuale Utente

Pagina di 195
175
CHAPTER  9.  INSTRUCTION  SET
9.4.12 Input/Output Instructions
IN A, PORTn
Function: A 
 PORTn; n = N
3
 to N
0
 : 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 = N
3
 to N
0
 : 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.