Port 6 Data Register (P6DR)—H'FFBB
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 timer input and output.
Pin P6
0
: This pin can be used for general-purpose input or output, and input of external clock
signals to the 16-bit free-running timer and 8-bit timer 0. External clock input is selected by the
CKS bits of the timers. When this pin is used for timer clock input, its P6DDR bit should normally
be cleared to “0;” otherwise the timer will receive the value in P6DR.
Pin P6
1
: This pin can be used for general-purpose input or output, or for 16-bit free-running timer
output (FTOA). When timer output is selected by the OEA bit of the 16-bit free-running timer, this
pin is unaffected by the values in P6DDR and P6DR.
Pin P6
2
: This pin can be used for general-purpose input or output, and input of the FTIA input
capture signal to the 16-bit free-running timer. FTIA input can operate simultaneously with
general-purpose input or output.
Pin P6
3
: This pin can be used for general-purpose input or output, input of the FTIB input capture
signal to the 16-bit free-running timer, and input of the timer reset signal to 8-bit timer 0. FTIB
input operates simultaneously with the other functions. Reset signal input is selected by the CCLR
bits of 8-bit timer 0. When this pin is used for timer reset signal input, its P6DDR bit should
normally be cleared to “0;” otherwise the timer will receive the value in P6DR.
Pin P6
4
: This pin can be used for general-purpose input or output, input of the FTIC input capture
signal to the 16-bit free-running timer, or output from 8-bit timer 0. FTIC input operates
simultaneously with the other functions. When 8-bit timer output is selected by the OS bits of 8-bit
timer 0, this pin is unaffected by the values in P6DDR and P6DR.
Bit
7
6
5
4
3
2
1
0
P6
7
P6
6
P6
5
P6
4
P6
3
P6
2
P6
1
P6
0
Initial value
0
0
0
0
0
0
0
0
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
102
Summary of Contents for H8/326 Series
Page 67: ...58 ...
Page 121: ...112 ...
Page 274: ... 3 Clock Settling Timing Ø VCC RES STBY tOSC1 tOSC1 Figure 14 8 Clock Setting Timing 265 ...
Page 279: ...270 ...