參數(shù)資料
型號(hào): MC80C0216Q
廠商: Electronic Theatre Controls, Inc.
元件分類: 8位微控制器
英文描述: 8-BIT SINGLE-CHIP MICROCONTROLLERS
中文描述: 8位單晶片微控制器
文件頁(yè)數(shù): 40/128頁(yè)
文件大?。?/td> 1408K
代理商: MC80C0216Q
第1頁(yè)第2頁(yè)第3頁(yè)第4頁(yè)第5頁(yè)第6頁(yè)第7頁(yè)第8頁(yè)第9頁(yè)第10頁(yè)第11頁(yè)第12頁(yè)第13頁(yè)第14頁(yè)第15頁(yè)第16頁(yè)第17頁(yè)第18頁(yè)第19頁(yè)第20頁(yè)第21頁(yè)第22頁(yè)第23頁(yè)第24頁(yè)第25頁(yè)第26頁(yè)第27頁(yè)第28頁(yè)第29頁(yè)第30頁(yè)第31頁(yè)第32頁(yè)第33頁(yè)第34頁(yè)第35頁(yè)第36頁(yè)第37頁(yè)第38頁(yè)第39頁(yè)當(dāng)前第40頁(yè)第41頁(yè)第42頁(yè)第43頁(yè)第44頁(yè)第45頁(yè)第46頁(yè)第47頁(yè)第48頁(yè)第49頁(yè)第50頁(yè)第51頁(yè)第52頁(yè)第53頁(yè)第54頁(yè)第55頁(yè)第56頁(yè)第57頁(yè)第58頁(yè)第59頁(yè)第60頁(yè)第61頁(yè)第62頁(yè)第63頁(yè)第64頁(yè)第65頁(yè)第66頁(yè)第67頁(yè)第68頁(yè)第69頁(yè)第70頁(yè)第71頁(yè)第72頁(yè)第73頁(yè)第74頁(yè)第75頁(yè)第76頁(yè)第77頁(yè)第78頁(yè)第79頁(yè)第80頁(yè)第81頁(yè)第82頁(yè)第83頁(yè)第84頁(yè)第85頁(yè)第86頁(yè)第87頁(yè)第88頁(yè)第89頁(yè)第90頁(yè)第91頁(yè)第92頁(yè)第93頁(yè)第94頁(yè)第95頁(yè)第96頁(yè)第97頁(yè)第98頁(yè)第99頁(yè)第100頁(yè)第101頁(yè)第102頁(yè)第103頁(yè)第104頁(yè)第105頁(yè)第106頁(yè)第107頁(yè)第108頁(yè)第109頁(yè)第110頁(yè)第111頁(yè)第112頁(yè)第113頁(yè)第114頁(yè)第115頁(yè)第116頁(yè)第117頁(yè)第118頁(yè)第119頁(yè)第120頁(yè)第121頁(yè)第122頁(yè)第123頁(yè)第124頁(yè)第125頁(yè)第126頁(yè)第127頁(yè)第128頁(yè)
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描述
MC80C0224 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0224K 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0224Q 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0208K 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80F0208Q 8-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC80C0224 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0224K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0224Q 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0424 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS
MC80C0424K 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT SINGLE-CHIP MICROCONTROLLERS