![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_226.png)
8
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8-24
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
P12 Operation Mode Register (P12MOD)
<Address: H’0080 074C>
<Upon exiting reset: H’00>
b
Bit Name
Function
R
W
0–3
No function assigned. Fix to "0."
00
4
P124MD
0: P124/DD3 (Note 1)
R
W
Port P124 operation mode bit (Note 3)
1: TCLK0/A9 (Note 2)
5
P125MD
0: P125/DD2 (Note 1)
R
W
Port P125 operation mode bit (Note 3)
1: TCLK1/A10 (Note 2)
6
P126MD
0: P126/DD1 (Note 1)
R
W
Port P126 operation mode bit
1: TCLK2/CS2# (Note 2)
7
P127MD
0: P127/DD0 (Note 1)
R
W
Port P127 operation mode bit
1: TCLK3/CS3# (Note 2)
Note 1: The DD input functions are effective depending on the settings of DD input pin select register (DDSEL). (For details, refer to
the Chapter 14, "Direct RAM Interface") 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 P12 Peripheral Function Select Register is set.
Note 3: During processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (A9 or A10).
8.3 Input/Output Port Related Registers
b0
12
3456
b7
P124MD
P125MD
P126MD
P127MD
000
0000
0
P12 Peripheral Function Select Register (P12SMOD)
<Address: H’0080 076C>
<Upon exiting reset: H’00>
b
Bit Name
Function
R
W
0–3
No function assigned. Fix to "0."
00
4
P124SMD
0: TCLK0
R
W
Port P124 peripheral function select bit (Note 1)
1: A9
5
P125SMD
0: TCLK1
R
W
Port P125 peripheral function select bit (Note 1)
1: A10
6
P126SMD
0: TCLK2
R
W
Port P126 peripheral function select bit
1: CS2#
7
P127SMD
0: TCLK3
R
W
Port P127 peripheral function select bit
1: CS3#
Note 1: During processor mode, settings of this bit have no effect and the port functions as external bus interface signal pin (A9 or A10).
Note: The value of this register can only be modified when the corresponding P12 operation mode register bit = 0 (set for port). Then
set the corresponging P12 operation mode register bit to "1."
b0
123456
b7
P124SMD P125SMD P126SMD P127SMD
0000000
0