Datasheet

Section 8 I/O Ports
Rev. 3.00 Mar 21, 2006 page 183 of 788
REJ09B0300-0300
8.5.2 Port 4 Data Register (P4DR)
P4DR stores output data for port 4.
Bit Bit Name Initial Value R/W Description
7 P47DR 0 R/W
6 P46DR 0 R/W
5 P45DR 0 R/W
4 P44DR 0 R/W
3 P43DR 0 R/W
2 P42DR 0 R/W
1 P41DR 0 R/W
0 P40DR 0 R/W
If a port 4 read is performed while P4DDR bits are
set to 1, the P4DR values are read directly,
regardless of the actual pin states. If a port 4 read
is performed while P4DDR bits are cleared to 0,
the pin states are read.
8.5.3 Pin Functions
P47/PWX1
The pin function is switched as shown below according to the combination of the OEB bit in
DACR of the 14-bit PWM and the P47DDR bit.
OEB 0 1
P47DDR 0 1
Pin Function P47 input pin P47 output pin PWX1 output pin
P46/PWX0
The pin function is switched as shown below according to the combination of the OEA bit in
DACR of the 14-bit PWM and the P46DDR bit.
OEA 0 1
P46DDR 0 1
Pin Function P46 input pin P46 output pin PWX0 output pin