參數(shù)資料
型號(hào): MC68HC05P4A
廠商: Motorola, Inc.
英文描述: 28-pin MCU (microcontroller unit) based on the MC68HC05P4(28引腳、基于MC68HC05P4升級(jí)的8位微控制器單元)
中文描述: 28引腳單片機(jī)(微控制器)的基礎(chǔ)上MC68HC05P4(28引腳,基于MC68HC05P4升級(jí)的8位微控制器單元)
文件頁數(shù): 22/102頁
文件大?。?/td> 930K
代理商: MC68HC05P4A
Advance Information
MC68HC05P4A — Rev. 6.0
22
General Description
MOTOROLA
General Description
1.7.9 PD5 and TCAP/PD7
Port D is a 2-bit port. PD5 is I/O and TCAP/PD7 is input-only shared with
the timer input capture. The address of the port D data register is $0003,
andthe datadirectionregister isataddress$0007.Resetdoesnot affect
the data registers, but clears the data direction registers, thereby
returning the ports to inputs. Writing a 1 to a DDR bit sets the
corresponding port bit to output mode. The TCAP/PD7 pin controls the
input capture feature for the on-chip programmable timer. This pin can
be read at any time even if the TCAP function is enabled.
1.8 Input/Output Programming
Port pins may be programmed as inputs or outputs under software
control. The direction of the pins is determined by the state of the
corresponding bit in the port data direction register (DDR). Each I/O port
has an associated DDR. Any I/O port pin is configured as an output if its
corresponding DDR bit is set to a logic 1. A pin is configured as an input
if its corresponding DDR bit is cleared to a logic 0.
At power-on or reset, all DDRs are cleared, which configures all pins as
inputs. The data direction registers are capable of being 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. For further information, see
Table 1-1
and
Figure 1-4
.
Table 1-1. I/O Pin Functions
R/W
(1)
1. R/W is an internal signal.
DDR
I/O Pin Function
0
0
The I/O pin is in input mode. Data is written into the
output data latch.
0
1
Data is written into the output data latch and output
to the I/O pin.
1
0
The state of the I/O pin is read.
1
1
The I/O pin is in an output mode. The output data
latch is read.
Note:
相關(guān)PDF資料
PDF描述
MC68HC05PV8A Low Cost HCMOS Microcontroller(低成本、8位HCMOS微控制器)
MC68HC05SR3 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05V7 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05X16 8-Bit Microcontroller Units (MCU).(8位微控制器)
MC68HC05X32 8-Bit Microcontroller Units (MCU).(8位微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC05P4DW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P4P 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P6 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P6_1 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P8 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT