M16C/62P Group (M16C/62P, M16C/62PT)
21. Programmable I/O Ports
Rev.2.41
Jan 10, 2006
Page 265 of 390
REJ09B0185-0241
Figure 21.10
PUR0 and PUR1 Registers
Pull-up Control Register 0
(1)
After Reset
00h
Bit Symbol
RW
NOTES :
1.
2.
RW
PU05
P3_0 to P3_3 Pull-Up
P2_4 to P2_7 Pull-Up
RW
PU06
PU04
PU00
RW
RW
PU03
RW
PU02
P2_0 to P2_3 Pull-Up
RW
RW
Function
Bit Name
b3 b2 b1 b0
b7 b6 b5 b4
P1_4 to P1_7 Pull-Up
Address
03FCh
PU01
Symbol
PUR0
During memory extension and microprocessor modes, the pins are not pulled high although their corresponding register
contents can be modified.
The pin for w hich this bit is “1” (pulled high) and the direction bit is “0” (input mode) is pulled high.
P3_4 to P3_7 Pull-Up
PU07
RW
0 : Not pulled high
1 : Pulled high
(2)
P0_0 to P0_3 Pull-Up
P0_4 to P0_7 Pull-Up
P1_0 to P1_3 Pull-Up
Pull-Up Control Register 1
Af ter Reset
(5)
00000000b
00000010b
Bit Symbol
RW
NOTES :
1.
2.
3.
4.
5.
During memory extension and microprocessor modes, the pins are not pulled high although the contents of these bits
can be modif ied.
The values af ter hardw are reset 1 and low voltage detection reset (hardw are reset 2) are as f ollow s:
• 00000000b w hen input on CNVSS pin is “L”
• 00000010b w hen input on CNVSS pin is “H”
The values af ter sof tw are reset, w atchdog timer reset and oscillation stop detection reset are as f ollow s:
• 00000000b w hen PM01 to PM00 bits are “00b” (single-chip mode)
• 00000010b w hen PM01 to PM00 bits are “01b” (memory expansion mode) or “11b” (microprocessor mode)
If the PM01 to PM00 bits in the PM0 register are set to “01b” (memory expansion mode) or “11b” (microprocessor mode)
in a program during single-chip mode, the PU11 bit becomes “1”.
The P7_0 and P7_1 pins do not have pull-ups.
PU16
RW
PU15
P7_2 to P7_3 Pull-Up
(1)
P6_4 to P6_7 Pull-Up
RW
P5_4 to P5_7 Pull-Up
(2)
P6_0 to P6_3 Pull-Up
Symbol
PUR1
PU10
PU14
RW
RW
PU13
RW
b3 b2 b1 b0
Address
03FDh
The pin for w hich this bit is “1” (pulled high) and the direction bit is “0” (input mode) is pulled high.
b7 b6 b5 b4
RW
Function
Bit Name
P7_4 to P7_7 Pull-Up
PU17
RW
0 : Not pulled high
1 : Pulled high
(3)
P4_0 to P4_3 Pull-Up
(2)
P4_4 to P4_7 Pull-Up
(4)
P5_0 to P5_3 Pull-Up
(2)
PU12
PU11
RW
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655