![Sino Wealth SH79F3283 Скачать руководство пользователя страница 36](http://html1.mh-extra.com/html/sino-wealth/sh79f3283/sh79f3283_manual_1283063036.webp)
SH79F3283
36
7.7 I/O Port
7.7.1 Features
46/42/30 bi-directional I/O ports
Share with alternative functions
The SH79F3283 has 46 bi-directional I/O ports. The PORT data is put in Px register. The PORT control register (PxCRy)
controls the PORT as input or output. Each I/O port has an internal pull-high resistor, which is controlled by PxPCRy when the
PORT is used as input (x = 0-5, y = 0-7).
For SH79F3283, some I/O pins can share with alternative functions. There exists a priority rule in CPU to avoid these
functions conflicts when all the functions are enabled. (Refer to
Port Share
Section for details).
7.7.2 Register
Table 7.17
Port Control Register
E1H - E5H
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
P0CR (E1H, Bank0)
P0CR.7
P0CR.6
P0CR.5
P0CR.4
P0CR.3
P0CR.2
P0CR.1
P0CR.0
P1CR (E2H, Bank0)
P1CR.7
P1CR.6
P1CR.5
P1CR.4
P1CR.3
P1CR.2
P1CR.1
P1CR.0
P2CR (E3H, Bank0)
P2CR.7
P2CR.6
P2CR.5
P2CR.4
P2CR.3
P2CR.2
P2CR.1
P2CR.0
P3CR (E4H, Bank0)
P3CR.7
P3CR.6
P3CR.5
P3CR.4
P3CR.3
P3CR.2
P3CR.1
P3CR.0
P4CR (E5H, Bank0)
P4CR.7
P4CR.6
P4CR.5
P4CR.4
P4CR.3
P4CR.2
P4CR.1
P4CR.0
P5CR (E1H, Bank1)
-
-
P5CR.5
P5CR.4
P5CR.3
P5CR.2
P5CR.1
P5CR.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
(POR/WDT/LVR/PIN)
0
0
0
0
0
0
0
0
Bit Number
Bit Mnemonic
Description
7-0
PxCRy
x = 0-5, y = 0-7
Port input/output control Register
0: input mode
1: output mode
Table 7.18
Port Pull up Resistor Control Register
E9H - ECH
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
P0PCR (E9H, Bank0)
P0PCR.7
P0PCR.6
P0PCR.5
P0PCR.4
P0PCR.3
P0PCR.2
P0PCR.1
P0PCR.0
P1PCR (EAH, Bank0)
P1PCR.7
P1PCR.6
P1PCR.5
P1PCR.4
P1PCR.3
P1PCR.2
P1PCR.1
P1PCR.0
P2PCR (EBH, Bank0)
P2PCR.7
P2PCR.6
P2PCR.5
P2PCR.4
P2PCR.3
P2PCR.2
P2PCR.1
P2PCR.0
P3PCR (ECH, Bank0)
P3PCR.7
P3PCR.6
P3PCR.5
P3PCR.4
P3PCR.3
P3PCR.2
P3PCR.1
P3PCR.0
P4PCR (EDH, Bank0)
P4PCR.7
P4PCR.6
P4PCR.5
P4PCR.4
P4PCR.3
P4PCR.2
P4PCR.1
P4PCR.0
P5PCR (E9H, Bank1)
-
-
P5PCR.5
P5PCR.4
P5PCR.3
P5PCR.2
P5PCR.1
P5PCR.0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
(POR/WDT/LVR/PIN)
0
0
0
0
0
0
0
0
Bit Number
Bit Mnemonic
Description
7-0
PxPCRy
x = 0-5, y = 0-7
Input Port internal pull-high resistor enable/disable control
0: internal pull-high resistor disabled
1: internal pull-high resistor enabled