
Z86E30/E31/E40
Z8 4K OTP Microcontroller
Zilog
28
P R E L I M I N A R Y
DS97Z8X0502
PIN FUNCTIONS
(Continued)
Port 3
(P37–P30). Port 3 is an 8-bit, CMOS-compatible
port with four fixed inputs (P33–P30) and four fixed outputs
(P37–P34). These eight lines can be configured by soft-
ware for interrupt and handshake control functions. Port 3,
Pin 0 is Schmitt- triggered. P31, P32, and P33 are stan-
dard CMOS inputs with single trip point (no Auto Latches)
and P34, P35, P36, and P37 are push-pull output lines.
Low EMI output buffers can be globally programmed by
the software. Two on-board comparators can process an-
alog signals on P31 and P32 with reference to the voltage
on P33. The analog function is enabled by setting the D1
of Port 3 Mode Register (P3M). The comparator output can
be outputted from P34 and P37, respectively, by setting
PCON register Bit D0 to 1 state. For the interrupt function,
P30 and P33 are falling edge triggered interrupt inputs.
P31 and P32 can be programmed as falling, rising or both
edges triggered interrupt inputs (Figure 21). Access to
Counter/Timer 1 is made through P31 (T
IN
) and P36
(T
OUT
). Handshake lines for Port 0, Port 1, and Port 2 are
also available on Port 3 (Table 9).
Note
: When enabling/ or disabling analog mode, the fol-
lowing is recommended:
1.
Allow two NOP delays before reading this comparator
output.
2.
Disable global interrupts, switch to analog mode, clear
interrupts, and then re-enable interrupts.
3.
IRQ register bits 3 to 0 must be cleared after enabling
analog mode.
Note:
P33–P30 differs from the Z86C30/C31/C40 in that
there is no clamping diode to V
CC
due to the EPROM high-
voltage circuits. Exceeding the V
IH
maximum specification
during standard operating mode may cause the device to
enter EPROM mode.