Hardware manual
Rev. 3.0, 09/98, page 106 of 361
Port 6 Data Register (P6DR)H'FFBB
Bit:76543210
P6
7
P6
6
P6
5
P6
4
P6
3
P6
2
P6
1
P6
0
Initial value:00000000
Read/Write: R/W R/W R/W R/W R/W R/W R/W R/W
P6DR is an 8-bit register containing the data for pins P6
7
to P6
0
. When the CPU reads P6DR, for
output pins (P6DDR = “1”) it reads the value in the P6DR latch, but for input pins (P6DDR =
“0”), it obtains the logic level directly from the pin, bypassing the P6DR latch. This also applies
to pins used for input and output of timer and interrupt signals.
Pins P6
0
, P6
2
, P6
3
, P6
4
and P6
5
: As indicated in table 6.15, these pins can be used for general-
purpose input or output, or for input of free-running timer clock and input capture signals. When a
pin is used for free-running timer input, its P6DDR bit should be cleared to “0;” otherwise the
free-running timer will receive the value in P6DR.
Pin P6
1
: This pin can be used for general-purpose input or output, or for the output compare A
signal (FTOA) of the free-running timer. When used for FTOA output, this pin is unaffected by
the values in P6DDR and P6DR.
Pin P6
6
: This pin can be used for general-purpose input or output, for the output compare B
signal (FTOB) of the free-running timer, or for IRQ
6
input. When used for FTOB output, this pin
is unaffected by the values in P6DDR and P6DR. When this pin is used for IRQ
6
input, P6
6
DDR
should normally be cleared to “0,” so that the value in P6DR will not generate interrupts.
Pin P6
7
: This pin can be used for general-purpose input or output, or IRQ
7
input. When it is used
for IRQ
7
input, P6
7
DDR should normally be cleared to “0,” so that the value in P6DR will not
generate interrupts.
Reset and Hardware Standby Mode: A reset or entry to the hardware standby mode clears
P6DDR and P6DR to all “0” and makes all pins into input port pins.
Software Standby Mode: In the software standby mode, the free-running timer control registers
are initialized but P6DDR and P6DR remain in their previous states. All pins become input or
output port pins depending on the setting of P6DDR. Output pins output the values in P6DR.