NEC PD17062 Datasheet page 197

Mos integrated circuit 4-bit single-chip microcontroller containing pll frequency synthesizer and image display controller
Table of Contents

Advertisement

15.3.6 Notes on Using I/O Ports (P0A
As shown in the example below, when pins P0A
the output latch may be overwritten.
Example:
INITFLG
NOT P0ABIO3, NOT P0ABIO2, P0ABIO1, P0ABIO0
INITFLG
NOT P0A3, NOT P0A2, P0A1, P0A0
#
;
CLR1
P0A1
; Macro expansion
AND .MF.P0A1 SHR 4, #.DF. (NOT P0A1 AND 0FH)
If the P0A
pin is externally pulled down to the low level upon execution of instruction
0
the CLR1 instruction overwrites the contents of the output latch of the P0A
15.3.7 State of I/O Port (P0A, P0B, P1B, P1C) at Reset
(1) At power-on reset
All I/O ports are set as input ports.
Since the contents of the output latch are "indefinite", the output latch must be initialized by the program
before the ports can be switched to output ports.
(2) At CE reset
All I/O ports are set as input ports.
The contents of the output latch are retained.
(3) At clock stop
All I/O ports are set as input ports.
The contents of the output latch are retained.
In I/O ports other than P1C, the RESET signal output at clock stop prevents the current drain from being
increased by noise from the input buffer, as shown in Section 15.3.1.
(4) During the halt state
The previous state is retained.
and P0A
)
1
0
and P0A
pins are used as output pins, the contents of
1
0
; Set the P0A
, P0A
pins as output pins
1
0
; Output a high level signal to the P0A
; Output a low level signal to the P0A
PD17062
and P0A
pins
1
0
pin
1
#
, above,
pin with 0.
0
197

Advertisement

Table of Contents
loading

Table of Contents