HD6432670 Hitachi, HD6432670 Datasheet - Page 477

no-image

HD6432670

Manufacturer Part Number
HD6432670
Description
(HD64F267x Series) 16-Bit Microcomputer
Manufacturer
Hitachi
Datasheet
TPU channel 0
settings
MD3 to MD0
IOA3 to IOA0
CCLR2, CCLR0
Output function
x: Don’t care
Note:
10.2
Port 2 is an 8-bit I/O port that also has other functions. The port 2 has the following registers.
10.2.1
The individual bits of P2DDR specify input or output for the pins of port 2.
P2DDR cannot be read; if it is, an undefined value will be read.
Bit
7
6
5
4
3
2
1
0
Port 2 data direction register (P2DDR)
Port 2 data register (P2DR)
Port 2 register (PORT2)
Bit Name
P27DDR
P26DDR
P25DDR
P24DDR
P23DDR
P22DDR
P21DDR
P20DDR
2. TIOCB0 output disabled.
Port 2
Port 2 Data Direction Register (P2DDR)
B'0000
B'0100
B'1xxx
(2)
Initial Value
0
0
0
0
0
0
0
0
B'0001 to B'0011
B'0101 to B'0111
Output compare
B'0000
output
(1)
R/W
W
W
W
W
W
W
W
W
B'001x
B'xx00
Description
When a pin function is specified to a general purpose
I/O, setting this bit to 1 makes the corresponding port
1 pin an output pin, while clearing this bit to 0 makes
the pin an input pin.
(2)
mode 1
PWM*
B'0010
B'xx00
output
Other
than
(1)
2
Other than B'xx00
mode 2
output
Other
B'001
PWM
than
Rev. 2.0, 04/02, page 431 of 906
(1)
B'0011
B'001
(2)

Related parts for HD6432670