I/O Ports
I/O Port Control Registers
MN102H75K/F75K/85K/F85K LSI User Manual Panasonic Semiconductor Development Company
281
Panasonic
P2MD: Port 2 Output Mode Register x’00FFF4’
P2MD is a 16-bit access register.
P2MD14: P27 function switch
To use TM0IO as an output pin, set this bit to 1 and set the P2DIR7 bit to 1.
0: P27
1: TM0IO
P2MD[13:12]: P26 output and function switch
To use TM4IOA as an out put pi n, s et thi s f iel d to b’01 ’ and s et t he P2 DIR6
bit to 1.
00:P2 6
01:TM4IOA
10:SB O1
11:Reserved
P2MD[11:10]: P25 output and function switch
If you set this field to b’10’, select SBI1 or SBD1 in bit 11 of PCNT0. To
use TM4IOB as an output pin, set this field to b’01’ an d set the P 2DIR5 bi t
to 1.
00:P2 5
01:TM4IOB
10:SBI1 or SBD1
11:Reserved
P2MD[9:8]: P24 output and function switch
To use SBT1 as an input, set this field to b’00’ and set the P2DIR4 bit to 0.
00:P2 4
01:TM4IC
10:SB T1
11:Reserved
P2MD6: P23 output switch
0: P23
1: PWM6
P2MD4: P22 output switch
0: P22
1: PWM5
P2MD2: P21 output switch
0: P21
1: PWM4
P2MD0: P20 output switch
0: P20
1: PWM3
Bit:1514131211109876543210
P2MD
14 P2MD
13 P2MD
12 P2MD
11 P2MD
10 P2MD
9P2MD
8P2MD
6P2MD
4P2MD
2P2MD
0
Reset:0000000000000000
R/W: R R/W R/W R/W R/W R/W R/W R/W R R/W R R/W R R/W R R/W