参数资料
型号: MC68HC05C5CP
厂商: MOTOROLA INC
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDIP40
封装: DIP-40
文件页数: 32/58页
文件大小: 166K
代理商: MC68HC05C5CP
Page 32
MOTOROLA
Section 5: Input/Output Ports
MC68HC05C5 Specification Rev. 1.2
registers, thereby returning the ports to inputs.
Writing a 1 to a DDR bit sets the
corresponding port bit to output mode.
5.5
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 port has an associated DDR. Any port pin is configured as an
output if its corresponding DDR bit is set to a logic one. A pin is configured as an input if
its corresponding DDR bit is cleared to a logic zero.
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. Refer to Table 5-1 and Figure 5-1.
Table 5-1: I/O Pin Functions
R/W
0
1
DDR
0
1
0
1
I/O Pin Function
The I/O pin is in input mode. Data is written into the output data latch.
Data is written into the output data latch and output of the I/O pin.
The state of the I/O pin is read.
The I/O pin is in an output mode. The output data latch is read.
R/W is an internal signal.
Data Direction
Register Bit
Latched Output
Data Bit
I/O
Pin
Input
Register
Bit
Input
I/O
Output
Internal
HC05
Connections
Figure 5-1: Port I/O Circuitry
相关PDF资料
PDF描述
MB89475PFV 8-BIT, 12.5 MHz, MICROCONTROLLER, PQFP48
MAH28151FXXXX 1 CHANNEL(S), 64K bps, SERIAL COMM CONTROLLER, CQFP68
MPC8245LZU300D 32-BIT, 300 MHz, RISC PROCESSOR, PBGA352
MPC8250AZUMHBB 32-BIT, 266 MHz, RISC PROCESSOR, PBGA480
MPC859DSLZP66 32-BIT, 66 MHz, RISC PROCESSOR, PBGA357
相关代理商/技术参数
参数描述
MC68HC05C8 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:PROGRAMMING REFRERENCE GUIDE
MC68HC05C8A 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:Microcontrollers
MC68HC05C8ACFN 制造商:Motorola Inc 功能描述:MicroController, 8-Bit, 44 Pin, Plastic, PLCC
MC68HC05C9 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:TECHNICAL DATA
MC68HC05C9A 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Microcontrollers