參數(shù)資料
型號(hào): MC68HC05C5P
廠商: MOTOROLA INC
元件分類(lèi): 微控制器/微處理器
英文描述: 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDIP40
封裝: DIP-40
文件頁(yè)數(shù): 31/58頁(yè)
文件大?。?/td> 166K
代理商: MC68HC05C5P
Page 31
Section 5: Input/Output Ports
MOTOROLA
MC68HC05C5 Specification Rev. 1.2
SECTION 5
INPUT/OUTPUT PORTS
In single-chip mode there are 32 lines arranged as four 8-bit I/O ports. These ports are
programmable as either inputs or outputs under software control of the data direction
registers.
NOTE:
To avoid a glitch on the output pins, write data to the I/O Port Data
Register before writing a 1 to the corresponding Data Direction Register.
5.1
PORT A
Port A is an 8-bit bidirectional port which does not share any of its pins with other
subsystems. The port A data register is at $0000 and the data direction register (DDR) is
at $0004. Reset does not 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.
5.2
PORT B
Port B is an 8-bit bidirectional port. Three of the port B pins (PB5 thourgh PB7) are shared
with the SIOP subsystem. Refer to SECTION 7 SIMPLE SERIAL INPUT/OUTPUT PORT
for a detailed description of the SIOP. The port B data register is at $0001 and the data
direction register (DDR) is at $0005. Reset does not 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.
5.3
PORT C
Port C is an 8-bit bidirectional port which does not share any of its pins with other
subsystems. The port C data register is at $0002 and the data direction register (DDR) is
at $0006. Reset does not 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. Port C has a high current sink capability. To minimize current spikes,
these pins should be switched one at a time.
5.4
PORT D
Port D is an 8-bit bidirectional port. PD6 is shared with TCMP.
If the PD6 pin is
configured as TCMP by setting the COE bit in the Timer Control Register, this pin will
become an output controlled by the Timer subsection. Refer to SECTION 6 TIMER for
more information. The port D data register is at $0003 and the data direction register
(DDR) is at $0007. Reset does not affect the data registers, but clears the data direction
相關(guān)PDF資料
PDF描述
MC68HC05C8ACP 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDIP40
MC68HC05C8AFBE 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PQFP44
MC68HC05C8AVB 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDIP42
MC68HCL05C8AB 8-BIT, MROM, MICROCONTROLLER, PDIP42
MC68HCL05C8AFB 8-BIT, MROM, MICROCONTROLLER, PQFP44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC05C8 制造商:MOTOROLA 制造商全稱(chēng):Motorola, Inc 功能描述:PROGRAMMING REFRERENCE GUIDE
MC68HC05C8A 制造商:MOTOROLA 制造商全稱(chēng):Motorola, Inc 功能描述:Microcontrollers
MC68HC05C8ACFN 制造商:Motorola Inc 功能描述:MicroController, 8-Bit, 44 Pin, Plastic, PLCC
MC68HC05C9 制造商:FREESCALE 制造商全稱(chēng):Freescale Semiconductor, Inc 功能描述:TECHNICAL DATA
MC68HC05C9A 制造商:FREESCALE 制造商全稱(chēng):Freescale Semiconductor, Inc 功能描述:Microcontrollers