Datasheet

Rev.6.00 Oct.28.2004 page 304 of 1016
REJ09B0138-0600H
Port A Open Drain Control Register (PAODR) (On-Chip ROM Version Only)
Bit:76543210
PA7ODR PA6ODR PA5ODR PA4ODR PA3ODR PA2ODR PA1ODR PA0ODR
Initial value : 0 0 0 0 0 0 0 0
R/W : R/W R/W R/W R/W R/W R/W R/W R/W
Note: Setting is prohibited in the H8S/2352, H8S/2394, H8S/2392, and H8S/2390.
PAODR is an 8-bit readable/writable register that controls whether PMOS is on or off for each port A pin (PA
7
to PA
0
).
All bits are valid in mode 7.
Setting a PAODR bit to 1 makes the corresponding port A pin an NMOS open-drain output, while clearing the bit to 0
makes the pin a CMOS output.
PAODR is initialized to H'00 by a power-on reset, and in hardware standby mode. It retains its prior state after a manual
reset*, and in software standby mode.
Note: * Manual reset is only supported in the H8S/2357 ZTAT.
9.8.3 Pin Functions
Mode 7 (On-Chip ROM Version Only): In mode 7, port A pins function as I/O ports and interrupt input pins. Input or
output can be specified for each pin on an individual bit basis. Setting a PADDR bit to 1 makes the corresponding port A
pin an output port, while clearing the bit to 0 makes the pin an input port.
Port A pin functions in mode 7 are shown in figure 9-8.
PA
7
(I/O)/IRQ7 (input)
PA
6
(I/O)/IRQ6 (input)
PA
5
(I/O)/IRQ5 (input)
PA
4
(I/O)/IRQ4 (input)
PA
3
(I/O)
PA
2
(I/O)
PA
1
(I/O)
PA
0
(I/O)
Port A
Figure 9-8 Port A Pin Functions (Mode 7)