![](http://datasheet.mmic.net.cn/30000/M32196F8UFP_datasheet_2359476/M32196F8UFP_224.png)
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8-14
8
32192/32195/32196 Group Hardware Manual
Rev.1.10 REJ09B0123-0110 Apr.06.07
8.3.3 Port Operation Mode and Port Peripheral Function Select Registers
P0 Operation Mode Register (P0MOD)
<Address: H’0080 0740>
<Upon exiting reset: H’00>
b
Bit Name
Function
R
W
0
P00MD
0: P00/DD0 (Note 1)
R
W
Port P00 operation mode bit
1: DB0/TO21 (Note 2)
1
P01MD
0: P01/DD1 (Note 1)
R
W
Port P01 operation mode bit
1: DB1/TO22 (Note 2)
2
P02MD
0: P02/DD2 (Note 1)
R
W
Port P02 operation mode bit
1: DB2/TO23 (Note 2)
3
P03MD
0: P03/DD3 (Note 1)
R
W
Port P03 operation mode bit
1: DB3/TO24 (Note 2)
4
P04MD
0: P04/DD4 (Note 1)
R
W
Port P04 operation mode bit
1: DB4/TO25 (Note 2)
5
P05MD
0: P05/DD5 (Note 1)
R
W
Port P05 operation mode bit
1: DB5/TO26 (Note 2)
6
P06MD
0: P06/DD6 (Note 1)
R
W
Port P06 operation mode bit
1: DB6/TO27 (Note 2)
7
P07MD
0: P07/DD7 (Note 1)
R
W
Port P07 operation mode bit
1: DB7/TO28 (Note 2)
Note 1: The port and DD input functions both are effective. To use the port as DD input pin, set the port direction for input.
Note 2: Which function of the pin is used depends on how the P0 Peripheral Function Select Register is set.
Note: During processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins (DB0-DB7).
8.3 Input/Output Port Related Registers
b0
12
3456
b7
P00MD
P01MD
P02MD
P03MD
P04MD
P05MD
P06MD
P07MD
000
0000
0
P0 Peripheral Function Select Register (P0SMOD)
<Address: H’0080 0760>
<Upon exiting reset: H’00>
b
Bit Name
Function
R
W
0
P00SMD
0: DB0
R
W
Port P00 peripheral function select bit
1: TO21
1
P01SMD
0: DB1
R
W
Port P01 peripheral function select bit
1: TO22
2
P02SMD
0: DB2
R
W
Port P02 peripheral function select bit
1: TO23
3
P03SMD
0: DB3
R
W
Port P03 peripheral function select bit
1: TO24
4
P04SMD
0: DB4
R
W
Port P04 peripheral function select bit
1: TO25
5
P05SMD
0: DB5
R
W
Port P05 peripheral function select bit
1: TO26
6
P06SMD
0: DB6
R
W
Port P06 peripheral function select bit
1: TO27
7
P07SMD
0: DB7
R
W
Port P07 peripheral function select bit
1: TO28
Notes: During processor mode, settings of this register have no effect, and the ports function as external bus interface signal pins (DB0-DB7).
The value of this register can only be modified when the corresponding P0 operation mode register bit = 0 (set for port).
Then set the corresponging P0 operation mode register bit to "1."
During single-chip mode, selecting the external bus interface function is prohibited.
b0
12
3456
b7
P00SMD
P01SMD
P02SMD
P03SMD
P04SMD
P05SMD
P06SMD
P07SMD
000
0000
0