參數(shù)資料
型號: MC68HC05X4DW
廠商: MOTOROLA INC
元件分類: 微控制器/微處理器
英文描述: HCMOS Microcontroller Unit
中文描述: 8-BIT, MROM, 2.2 MHz, MICROCONTROLLER, PDSO28
封裝: SOIC-28
文件頁數(shù): 64/156頁
文件大?。?/td> 926K
代理商: MC68HC05X4DW
Parallel input/output ports
MC68HC05X4 Rev 1.0
64
Parallel input/output ports
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
Input/output programming
Bi-directional port lines may be programmed as inputs or outputs under
software control. The direction of each pin is determined by the state of
the corresponding bit in the port data direction register (DDR). Each port
has an associated DDR. Any I/O port pin is configured as an output if its
corresponding DDR bit is set. A pin is configured as an input if its
corresponding DDR bit is cleared.
At power-on or reset, all DDRs are cleared, thus configuring all port pins
as inputs. The data direction registers can be written to or read by the
processor. During the programmed output state, a read of the data
register actually reads the value of the output data latch and not the I/O
pin. Refer to
Figure 1
and
Table 1
.
Port A
Port A is an 8-bit bi-directional port. The port A data register is at $0000
and the data direction register (DDR) is at $0004. Reset does not affect
the data register, but clears the data direction register, thereby returning
the ports to inputs. Writing a ‘1’ to a DDR bit sets the corresponding port
pin to output mode.
Figure 1. Standard I/O port structure
Latched data
register bit
DDRn
DATA
Input
buffer
Output
buffer
O/P
data
buffer
M
DDRn
1
1
0
0
DATA
0
1
0
1
I/O pin
0
1
tristate
tristate
I/O
Pin
Output
Input
Data direction
register bit
2-ports
F
Freescale Semiconductor, Inc.
n
.
相關(guān)PDF資料
PDF描述
MC68HC705X4 HCMOS Microcontroller Unit
MC68HC705X4CDW HCMOS Microcontroller Unit
MC68HC705X4DW HCMOS Microcontroller Unit
MC68HC08AB16A Low Cost HCMOS Microcontroller(低成本、8位HCMOS微控制器)
MC68HC08AS32AFU Microcontrollers
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC08AB16A 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC08AB16AD 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC08AZ0 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Advance Information
MC68HC08AZ0CFU 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:Advance Information
MC68HC08AZ16 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:HCMOS Microcontroller Unit