I/o ports, P2md is a 16-bit access register, P23 1: pwm6 – Lucent Technologies MN10285K User Manual

Page 282: P22 1: pwm5, P21 1: pwm4, P20 1: pwm3

Advertising
background image

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 output pin, set this field to b’01’ and set the P2DIR6

bit to 1.

00: P26

01: TM4IOA
10: SBO1

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’ and set the P2DIR5 bit

to 1.

00: P25

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: P24
01: TM4IC

10: SBT1
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:

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

P2MD

14

P2MD

13

P2MD

12

P2MD

11

P2MD

10

P2MD

9

P2MD

8

P2MD

6

P2MD

4

P2MD

2

P2MD

0

Reset:

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

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

Advertising
This manual is related to the following products: