![Hitachi H8/3152 Hardware Manual Download Page 102](http://html.mh-extra.com/html/hitachi/h8-3152/h8-3152_hardware-manual_140481102.webp)
101
Table 9.2
I/O-1/
IRQ
and I/O-2/
IRQ
Pin States
DDR Value
Operating Mode
0 (Initial Value)
1
Normal operation
Input port
Output port
Sleep mode
IRQ
input pin
Must not be set*
Note:
When sleep mode is entered or canceled, the output from the I/O ports will collide with the
IRQ
input. To avoid this, set DDR to 0 to use the pins as I/O input ports before executing a
SLEEP instruction.
These pins become interrupt input pins in sleep mode regardless of the DDR value, and the falling
edge of the logical OR of these signals is handled as an external interrupt request signal to the
CPU. Therefore, either one of these pins, or both can be used as interrupt input.
An input pull-up MOS is connected to each of I/O-1/
IRQ
and I/O-2/
IRQ
pins to avoid an
erroneous interrupt request when the input is at high-impedance. The input pull-up MOS's are
always switched on, even in sleep mode. To reduce the input pull-up MOS current, input a high
level to the I/O-1/
IRQ
and I/O-2/
IRQ
pins in sleep mode, except when requesting an interrupt. If
only one of the pins is used, the one that is not used must be left open.