參數(shù)資料
型號: MC80F0216
廠商: Electronic Theatre Controls, Inc.
元件分類: 8位微控制器
英文描述: 8-BIT SINGLE-CHIP MICROCONTROLLERS
中文描述: 8位單晶片微控制器
文件頁數(shù): 40/128頁
文件大?。?/td> 1408K
代理商: MC80F0216
MC80F0208/16/24
Preliminary
36
MAR. 2005 Ver 0.2
9. I/O PORTS
The MC80F0208/16/24 has six ports (R0, R1, R3, R4, R5 and
R6). These ports pins may be multiplexed with an alternate func-
tion for the peripheral features on the device. R3 port can drive
maximum 20mA of high current in output low state, so it can di-
rectly drive LED 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 num-
bered bits as input ports, write “55
H
” to address 0C1
H
(R0 port
direction register) during initial setting as shown in Figure 9-1.
All the port direction registers in the MC80F0208/16/24 have 0
written to them by reset function. On the other hand, its initial sta-
tus is input.
Figure 9-1 Example of port I/O assignment
R0 and R0IO register:
R0 is an 8-bit CMOS bidirectional I/O
port (address 0C0
H
). Each I/O pin can independently used as an
input or an output through the R0IO register (address 0C1
H
). The
on-chip pull-up resistor can be connected to them in 1-bit units
with a pull-up selection register 0 (PU0).
R1 and R1IO register:
R1 is an 5-bit CMOS bidirectional I/O
port (address 0C2
H
). Each I/O pin can independently used as an
input or an output through the R1IO register (address 0C3
H
). The
on-chip pull-up resistor can be connected to them in 1-bit units
with a pull-up selection register 1 (PU1).
In addition, Port R1 is multiplexed with various special features.
The control register PSR0 (address 0F8
H
) and PSR1 (address
0F9
H
) controls the selection of alternate function. After reset, this
value is “0”, port may be used as normal I/O port.
To use alternate function such as external interrupt, event counter
input or timer clock output, write “1” in the corresponding bit of
PSR0 or PSR1. Regardless of the direction register R1IO, PSR0
or PSR1 is selected to use as alternate functions, port pin can be
used as a corresponding alternate features.
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
Port Pin
Alternate Function
R10
R11
R12
R13
R15
INT0 (External Interrupt 0)
INT1 (External Interrupt 1)
INT2 (External Interrupt 2)
BUZO (Square-wave output for buzzer)
EC0 (Event counter input to Counter 0)
R0 Data Register
R0
ADDRESS: 0C0
RESET VALUE: 00
H
R07 R06 R05 R04 R03 R02 R01 R00
Port Direction
0: Input
1: Output
R0 Direction Register
R0IO
ADDRESS: 0C1
RESET VALUE: 00
H
Input / Output data
R0 Pull-up
Selection Register
PU0
ADDRESS: 0FC
RESET VALUE: 00
H
0: Disable
1: Enable
Pull-up Resister Selection
相關(guān)PDF資料
PDF描述
MC80F0216K 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0216Q 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0224 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0224K 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0224Q 8-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC80F0216K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0216Q 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0224 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0224K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0224Q 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS