EasyManua.ls Logo

Nuvoton NuMicro MS51PC0AE - Page 278

Default Icon
491 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MS51
Nov. 28, 2019 Page 278 of 491 Rev 1.00
MS51 32K SERIES TECHNICAL REFERENCE MANUAL
PnM2 – Port Mode Select 2
Register
SFR Address
Reset Value
P0M2
B2H, Page 0
0000_0000 b
P1M2
B4H, Page 0
0000_0000 b
P2M2
8AH, Page 2
0000_0000 b
P3M2
ADH, Page 0
0000_0000 b
7
6
5
4
3
2
1
0
PnM2.7
PnM2.6
PnM2.5
PnM2.4
PnM2.3
PnM2.2
PnM2.1
PnM2.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Description
7:0
PnM2[7:0]
Port 0 mode select 2
NOTE: PxM1 and PxM2 are used in combination to determine the I/O mode of each pin of Port.
See Table 6.4-1 Configuration for Different I/O Modes.
Input Type Select 6.4.4.3
Each I/O pin can be configured individually as TTL input or Schmitt triggered input. Note that all of PxS
registers are accessible by switching SFR page to Page 1.
PnS – Port n Schmitt Triggered Input
Register
SFR Address
Reset Value
P0S
B1H, Page 1
0000_0000 b
P1S
B3H, Page 1
0000_0000 b
P2S
8CH, Page 2
0000_0000 b
P3S
ACH, Page 1
0000_0000 b
7
6
5
4
3
2
1
0
PnS.7
PnS.6
PnS.5
PnS.4
PnS.3
PnS.2
PnS.1
PnS.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Description
7:0
PnS[7:0]
Pn Schmitt triggered input
0 = TTL level input of Pn.x.
1 = Schmitt triggered input of Pn.x.
Output Slew Rate Control 6.4.4.4
Slew rate for each I/O pin is configurable individually. By default, each pin is in normal slew rate mode.
User can set each control register bit to enable high-speed slew rate for the corresponding I/O pin.

Table of Contents