![](http://datasheet.mmic.net.cn/280000/M37736MHB_datasheet_16084045/M37736MHB_46.png)
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37736MHBXXXGP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
46
INPUT / OUTPUT PINS
Ports P0 to P8, P10 all have a port direction register and each bit can
be programmed for input or output. A pin becomes an output pin
when the corresponding bit of the port direction register is set to “1”
and an input pin when the bit is cleared to “0”.
When a pin is programmed for output, the data is written to the port
latch and is output, and the contents of the port latch is read instead
of the value of the pin. Therefore, a previously output value can be
read correctly even when the output “L” voltage is raised by directly
driving an LED or others.
A pin programmed for input is floating and the value input to the pin
can be read. When a pin is programmed for input, the data is written
only in the port latch and the pin retains floating.
Ports P6
2
to P6
4
, and P10
4
to P10
7
, however, have pull-up transistors
and the port’s pull-up function can be selected by setting “1” to bits 6,
5, 3 of the port function control register (reffer to Figure 11.) A port
which corresponds to a port direction register’s bit set to “0” is pulled
up. A port which corresponds to a bit set to “1” is an output pin and it
is not pulled up.
Port P9 is output exclusive pin.
This becomes floating at reset. The contents are output at finishing
data write to the port P9 latch. After that, even when changing the
data of the port P9 latch, that port cannot be floating.
Figures 55 and 56 show the block diagram of ports P0 to P10 and
the
E
pin output format.
In the memory expansion mode and the microprocessor mode, ports
P0 to P4 are also used as address, data, and control signal pins.
Refer to the section on the processor modes for more details.
Figure 54 shows an example of a reset circuit. If the stabilized clock
is input from the external to the main-clock oscillation circuit, the reset
input voltage must be 0.9 V or less when the power source voltage
reaches 4.5 V. If a resonator/oscillator is connected to the main-clock
oscillation circuit, change the reset input voltage from “L” to “H” after
the main-clock oscillation is fully stabilized.
V
CC
RESET
RESET
V
CC
0V
0V
4.5V
0.9V
Power on
Note.
In this case, stabilized clock is input from the
external to the main-clock oscillation circuit.
Perform careful evaluation at the system design
level before using.
Fig. 54 Example of a reset circuit