159
3. Port pull-up control register 6 (PUCR6)
Bit
Initial value
Read/Write
7
PUCR6
0
R/W
6
PUCR6
0
R/W
5
PUCR6
0
R/W
4
PUCR6
0
R/W
3
PUCR6
0
R/W
0
PUCR6
0
R/W
2
PUCR6
0
R/W
1
PUCR6
0
R/W
2
1
0
5
4
3
7
6
PUCR6 controls whether the MOS pull-up of each of the port 6 pins P6
7
to P6
0
is on or off. When
a PCR6 bit is cleared to 0, setting the corresponding PUCR6 bit to 1 turns on the MOS pull-up for
the corresponding pin, while clearing the bit to 0 turns off the MOS pull-up.
Upon reset, PUCR6 is initialized to H'00.
8.6.3
Pin Functions
Table 8.15 shows the port 6 pin functions.
Table 8.15
Port 6 Pin Functions
Pin
Pin Functions and Selection Method
P6
7
/SEG
16
to
P6
0
/SEG
9
The pin function depends on bit PCR6n in PCR6 and bits SGS3 to SGS0 in
LPCR.
(n = 7 to 0)
SEG3 to SEGS0
00
**
, 010
*
011
**
, 1
***
PCR6
n
0
1
*
Pin function
P6
n
input pin
P6
n
output pin
SEG
n+9
output pin
*
: Don’t care
8.6.4
Pin States
Table 8.16 shows the port 6 pin states in each operating mode.
Table 8.16
Port 6 Pin States
Pin
Reset
Sleep
Subsleep Standby
Watch
Subactive Active
P6
7
/SEG
16
to
P6
0
/SEG
9
High-
impedance
Retains
previous
state
Retains
previous
state
High-
impedance
*
Retains
previous
state
Functional Functional
Note:
*
A high-level signal is output when the MOS pull-up is in the on state.