參數(shù)資料
型號: GMS81516BTK
廠商: Hynix Semiconductor Inc.
元件分類: 8位微控制器
英文描述: 8-BIT SINGLE-CHIP MICROCONTROLLERS
中文描述: 8位單晶片微控制器
文件頁數(shù): 37/110頁
文件大?。?/td> 1980K
代理商: GMS81516BTK
GMS81508B/16B/24B, GMS82512/16/24
34
MAY. 2001 Ver 2.0
9. I/O PORTS
The GMS815xxB and GMS825xx have four input ports
and fifty two input/output ports(R00~R67) and the
GMS825xx has thirty five input/output ports. These ports
pins may be multiplexed with an alternate function for the
peripheral features on the device.
All pins have data direction registers which can define
these ports as output or input. A “1” in the port direction
register configure the corresponding port pin as output.
Conversely, write “0” to the corresponding bit to specify it
as input pin. For example, to use the even numbered bit of
R0 as output ports and the odd numbered bits as input
ports, write “55
H
” to address 0C1
H
(R0 port direction reg-
ister) during initial setting as shown in Figure 9-1.
All the port direction registers in the GMS815xxB and
GMS825xx have 0 written to them by reset function. On
the other hand, its initial status is input.
Figure 9-1 Example of port I/O assignment
R0 and R0DD register:
R0 is an 8-bit CMOS bidirection-
al I/O port (address 0C0
H
). Each I/O pin can independently
used as an input or an output through the R0DD register
(address 0C1
H
).
R1 and R1DD register:
R1 is an 8-bit CMOS bidirection-
al I/O port (address 0C2
H
). Each I/O pin can independently
used as an input or an output through the R1DD register
(address 0C3
H
).
R10~R17 are NOT served on GMS825xx.
R2 and R2DD register:
R2 is an 8-bit CMOS bidirection-
al I/O port (address 0C4
H
). Each I/O pin can independently
used as an input or an output through the R2DD register
(address 0C5
H
).
I: INPUT PORT
O: OUTPUT PORT
WRITE “55
H
” TO PORT R0 DIRECTION REGISTER
0 1 0 1 0 1 0 1
7 6 5 4 3 2 1 0
I O I O I O I O
7 6 5 4 3 2 1 0
R0 data
R0 direction
R1 data
R1 direction
0C0
H
0C1
H
0C2
H
0C3
H
BIT
PORT
R0 Data Register
R0
ADDRESS: 0C0
RESET VALUE: Undefined
R07 R06 R05 R04 R03 R02 R01 R00
Port Direction
0: Input
1: Output
R0 Direction Register
R0DD
ADDRESS: 0C1
RESET VALUE: 00
H
Input / Output data
R1 Data Register
R1
ADDRESS: 0C2
RESET VALUE: Undefined
R17 R16 R15 R14 R13 R12 R11 R10
Port Direction
0: Input
1: Output
R1 Direction Register
R1DD
ADDRESS: 0C3
RESET VALUE: 00
H
Input / Output data
R2 Data Register
R2
ADDRESS: 0C4
RESET VALUE: Undefined
R27 R26 R25 R24 R23 R22 R21 R20
Port Direction
0: Input
1: Output
R2 Direction Register
R2DD
ADDRESS: 0C5
RESET VALUE: 00
H
Input / Output data
相關(guān)PDF資料
PDF描述
GMS81516BTLQ 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81516BTQ 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81524 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81524BK 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81524BQ 8-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
GMS81516BTLQ 制造商:HYNIX 制造商全稱:Hynix Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81516BTQ 制造商:HYNIX 制造商全稱:Hynix Semiconductor 功能描述:HYUNDAI MICRO ELECTRONICS 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81524 制造商:HYNIX 制造商全稱:Hynix Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81524B 制造商:HYNIX 制造商全稱:Hynix Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81524BK 制造商:HYNIX 制造商全稱:Hynix Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS