Datasheet

Section 8 I/O Ports
Rev. 6.00 Aug 04, 2006 page 236 of 680
REJ09B0145-0600
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
10
5
4376
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.7.3 Pin Functions
Table 8.18 shows the port 6 pin functions.
Table 8.18 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 PCR6
n
in PCR6 and bits SGS3 to SGS0 in
LPCR.
(n = 7 to 0)
SGS3 to SGS0 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.7.4 Pin States
Table 8.19 shows the port 6 pin states in each operating mode.
Table 8.19 Port 6 Pin States
Pins 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.