Datasheet

M16C/6S Group Programmable I/O Ports
R01DS0201EJ0502 Rev.5.02 page 145 of 203
Dec 25, 2012
Pull-up control register 0 (Note 1)
Symbol
Address
After reset
PUR0
03FC
16
00
16
Bit name Function Bit symbol RW
b7 b6 b5 b4 b3 b2 b1 b0
PU03 P1
4
to P1
7
pull-up
Pull-up control register 1
Symbol
Address
After reset(Note 5)
PUR1
03FD
16
00000000
2
00000010
2
Bit name Function Bit symbol
b7 b6 b5 b4 b3 b2 b1 b0
PU14 P6
0
to P6
3
pull-up
PU15 P6
4
to P6
7
pull-up
PU16 P7
2
to P7
3
pull-up (Note 1)
PU17 P7
4
to P7
7
pull-up
Note 1: The P7
0
and P7
1
pins do not have pull-ups.
Note 2: During memory extension and microprocessor modes, the pins are not pulled high although the contents
of these bits can be modified.
Note 3: The pin for which this bit is “1” (pulled high) and the direction bit is “0” (input mode) is pulled high.
Note 4: If the PM01 to PM00 bits are set to “01
2
” (memory expansion mode) or “11
2
” (microprocessor mode) in a
program during single-chip mode, the PU11 bit becomes “1”.
Note 5: The values after hardware reset 1 and 2 are as follows:
• 00000000
2
when input on CNVss pin is “L“
• 00000010
2
when input on CNVss pin is “H“
The values after software reset, watchdog timer reset and oscillation stop detection reset are as follows:
• 00000000
2
when PM 01 to PM00 bits of PM0 register are “00
2
“ (single-chip mode)
• 00000010
2
when PM 01 to PM00 bits of PM0 register are “01
2
“ (memory expansion mode) or
“11
2
“ (microprocessor mode)
Note 1: During memory extension and microprocessor modes, the pins are not pulled high although their
corresponding register contents can be modified.
RW
RW
RW
RW
RW
RW
Note 2: The pin for which this bit is “1” (pulled high) and the direction bit is “0” (input mode) is pulled high.
Pull-up control register 2
Symbol
Address
After reset
PUR2
03FE
16
00
16
Bit name FunctionBit symbol
b7 b6 b5 b4 b3 b2 b1 b0
PU20
P8
0
to P8
3
pull-up
PU21
P8
4
to P8
7
pull-up
PU22
P9
0
to P9
3
pull-up
Nothing is assigned. In an attempt to write to these bits, write
“0”. The value, if read, turns out to be “0”.
0 : Not pulled high
1 : Pulled high (Note 1)
RW
RW
RW
RW
Note 1: The pin for which this bit is “1” (pulled high) and the direction bit is “0” (input mode) is pulled high.
Note 2: The P8
5
pin does not have pull-up.
(Note 2)
(b2-b0)
Nothing is assigned. When write, set to
“0”.
When read, its content is indeterminate.
(b7-b4)
Nothing is assigned. When write, set to
“0”.
When read, its content is indeterminate.
(b3-b0)
Nothing is assigned. When write, set to
“0”.
When read, its content is indeterminate.
(b7-b3)
0 : Not pulled high
1 : Pulled high (Note 2)
0 : Not pulled high
1 : Pulled high (Note 3)
Figure 1.18.8. PUR0 to PUR2 Registers