![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_227.png)
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8
8-25
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
P13 Peripheral Function Select Register (P13SMOD)
<Address: H’0080 076D>
<Upon exiting reset: H’00>
b
Bit Name
Function
R
W
8–11
No function assigned. Fix to "0."
00
12
P134SMD
0: TIN20/DIN4 (Note 1)
R
W
Port P134 peripheral function select bit
1: TXD3
13
P135SMD
0: TIN21
R
W
Port P135 peripheral function select bit (Note 2)
1: RXD3
14
P136SMD
0: TIN22
R
W
Port P136 peripheral function select bit (Note 3)
1: CRX1
15
P137SMD
0: TIN23
R
W
Port P137 peripheral function select bit
1: CTX1
Note 1: TIN input and DIN input functions both are effective.
Note 2: When not using this pin as RXD3 pin, always be sure to set the bit to "0."
Note 3: When not using this pin as CRX1 pin, always be sure to set the bit to "0."
Note: The value of this register can only be modified when the corresponding P13 operation mode register bit = 0 (set for port). Then
set the corresponging P13 operation mode register bit to "1."
P13 Operation Mode Register (P13MOD)
<Address: H’0080 074D>
<Upon exiting reset: H’00>
b
Bit Name
Function
R
W
8
P130MD
0: P130
R
W
Port P130 operation mode bit
1: TIN16/PWMOFF0/DIN0 (Note 1)
9
P131MD
0: P131
R
W
Port P131 operation mode bit
1: TIN17/PWMOFF1/DIN1 (Note 1)
10
P132MD
0: P132
R
W
Port P132 operation mode bit
1: TIN18/DIN2 (Note 2)
11
P133MD
0: P133
R
W
Port P133 operation mode bit
1: TIN19/DIN3 (Note 2)
12
P134MD
0: P134
R
W
Port P134 operation mode bit
1: TIN20/TXD3/DIN4 (Note 3)
13
P135MD
0: P135
R
W
Port P135 operation mode bit
1: TIN21/RXD3 (Note 3)
14
P136MD
0: P136
R
W
Port P136 operation mode bit
1: TIN22/CRX1 (Note 3)
15
P137MD
0: P137
R
W
Port P137 operation mode bit
1: TIN23/CTX1 (Note 3)
Note 1: TIN input, DIN input, and PWMOFF input functions all are effective.
Note 2: TIN input and DIN input functions both are effective.
Note 3: Which function of the pin is used depends on how the P13 Peripheral Function Select Register is set.
b8
9
10
11121314
b15
P130MD
P131MD
P132MD
P133MD
P134MD
P135MD
P136MD
P137MD
000
0000
0
8.3 Input/Output Port Related Registers
b8
9
10
11121314
b15
P134SMD P135SMD P136SMD P137SMD
0000000
0