
ML62Q1000 Series User's Manual
Chapter 17 General Purpose Port
FEUL62Q1000
17-21
17.2.5 Port n Mode Register 45 (PnMOD45:n
=
0 to 2, 4 to 9, A, B)
PnMOD45 is a special function register (SFR) to choose the input/output mode, input/output status, and shared function
of Pn4 pin and Pn5 pin.
See Table 17-2 "List of Registers / Bits" to check avaible pins and bits.
Wirte "0" to the bits of PnMOD45 register that have no corresponding pin.
Address:
0xF206(P0MOD4/P0MOD45), 0xF207(P0MOD5),
0xF216(P1MOD4/P1MOD45), 0xF217(P1MOD5),
0xF226(P2MOD4/P2MOD45), 0xF227(P2MOD5),
0xF246(P4MOD4/P4MOD45), 0xF247(P4MOD5),
0xF256(P5MOD4/P5MOD45), 0xF257(P5MOD5),
0xF266(P6MOD4/P6MOD45), 0xF267(P6MOD5),
0xF276(P7MOD4/P7MOD45), 0xF277(P7MOD5),
0xF286(P8MOD4/P8MOD45), 0xF287(P8MOD5),
0xF296(P9MOD4/P9MOD45), 0xF297(P9MOD5),
0xF2A6(PAMOD4/PAMOD45), 0xF2A7(PAMOD5),
0xF2B6(PBMOD4/PBMOD45), 0xF2B7(PBMOD5)
Access:
R/W
Access size: 8/16bit
Initial value:
0x0000
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Word
PnMOD45
Byte
PnMOD5
PnMOD4
Bit
Pn5MD
3
Pn5MD
2
Pn5MD
1
Pn5MD
0
Pn5OD Pn5PU Pn5OE Pn5IE
Pn4MD
3
Pn4MD
2
Pn4MD
1
Pn4MD
0
Pn4OD Pn4PU Pn4OE Pn4IE
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial
value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bit
No.
Bit symbol
name
Description
15 to
12
Pn5MD3 to
Pn5MD0
This bit is used to choose the shared function of Pn5 pin.
For the details of the shared function, see Table 1-7 "ML62Q1300 Group Pin List", Table 1-8
"ML62Q1500 Group Pin List" and Table 1-9 "ML62Q1700 Group Pin List".
0000:
Primary function (initial value)
0001:
2
nd
function
0010:
3
rd
function
0011:
4
th
function
0100:
5
th
function
0101:
6
th
function
0110:
7
th
function
0111:
8
th
function
1XXX:
Do not use (Primary function)
X: 0 or 1 (don't care)
11
Pn5OD
This bit is used choose the output type of Pn5 pin.
An LED is directly drive-able by enlarging the current when the N-channel open drain output
mode is chosen.
See the data sheet for details about the current drive ability.
0: CMOS output (initial value)
1: N-channel open drain output
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...